Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Plot::MatrixImage Template Class Reference

Image based on a rectangular matrix with an optional border. More...

#include <matriximage.h>

Inheritance diagram for Plot::MatrixImage

Inheritance graph

[legend]
Collaboration diagram for Plot::MatrixImage:

Collaboration graph

[legend]
List of all members.

Public Methods

void draw_bar_on_matrix_element (const MatrixSubscript row, const MatrixSubscript col, double angle, double length, double width=1, PixelType p=default_fg)
 Calls AARImage<>::draw_bar for a line centered on the given matrix element. More...

template<classT> void outline_boundary<T> (const BoundingBox<T>& bb, unsigned thickness, PixelType p=default_fg)
 Draws a line of the indicated thickness around the matrix area enclosed by the given BoundingBox. More...

Constructors and Destructors
 MatrixImage ()
 Empty image constructor. More...

template<classMatrix>  MatrixImage<Matrix> (const Matrix &A, double scale=1.0, int borderwidth=0, const ColorLookup<PixelType>& L=RYWColorLookup<PixelType>() )
 Constructor taking a single matrix, to plot one dimension. More...

template<classMatrix>  MatrixImage<Matrix> (const Matrix &H, const Matrix &S, const Matrix &V, double scale=1.0, int borderwidth=0 )
 Constructor taking matrices for Hue, Saturation, and Value. More...


Detailed Description

template<class PixelType = RGBPixel<>, class PixelMatrix = MatrixType<PixelType>::rectangular> template class Plot::MatrixImage

Image based on a rectangular matrix with an optional border.

Member functions take coordinates in the original matrix rather than (scaled and offset) pixel coordinates.

The border was deliberately included in this class rather than simply having an operation that takes an existing image and adds a border. The reason is that certain outlining operations supported by this class will deliberately overwrite part of the border so that they enclose the precise area included in the outline, without losing any enclosed area to the nonzero width of the outline itself.

Definition at line 37 of file matriximage.h.


Constructor & Destructor Documentation

template<classPixelType = RGBPixel<>, classPixelMatrix = MatrixType<PixelType>::rectangular>
Plot::MatrixImage<PixelType, PixelMatrix>::MatrixImage<PixelType, PixelMatrix> ( ) [inline]
 

Empty image constructor.

Definition at line 105 of file matriximage.h.

template<classPixelType, classPixelMatrix>
template<classMatrix>
Plot::MatrixImage< PixelType,PixelMatrix >::MatrixImage<PixelType, PixelMatrix> ( const Matrix & A,
double scale = 1.0,
int borderwidth = 0,
const ColorLookup< PixelType >& L = RYWColorLookup<PixelType>() )
 

Constructor taking a single matrix, to plot one dimension.

L determines the mapping from a magnitude to a color

Definition at line 136 of file matriximage.h.

template<classPixelType, classPixelMatrix>
template<classMatrix>
Plot::MatrixImage< PixelType,PixelMatrix >::MatrixImage<PixelType, PixelMatrix> ( const Matrix & H,
const Matrix & S,
const Matrix & V,
double scale = 1.0,
int borderwidth = 0 )
 

Constructor taking matrices for Hue, Saturation, and Value.

Definition at line 155 of file matriximage.h.


Member Function Documentation

template<classPixelType = RGBPixel<>, classPixelMatrix = MatrixType<PixelType>::rectangular>
void Plot::MatrixImage<PixelType, PixelMatrix>::draw_bar_on_matrix_element ( const MatrixSubscript row,
const MatrixSubscript col,
double angle,
double length,
double width = 1,
PixelType p = default_fg ) [inline]
 

Calls AARImage<>::draw_bar for a line centered on the given matrix element.

Definition at line 117 of file matriximage.h.

template<classPixelType, classPixelMatrix>
template<classT>
void Plot::MatrixImage< PixelType,PixelMatrix >::outline_boundary ( const BoundingBox< T >& bb,
unsigned thickness,
PixelType pixel = default_fg ) [inline]
 

Draws a line of the indicated thickness around the matrix area enclosed by the given BoundingBox.

Definition at line 173 of file matriximage.h.


The documentation for this class was generated from the following file:
Generated at Mon Aug 21 00:31:19 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000