SurfacePlot Class Reference

#include <SurfacePlot.hpp>

Inheritance diagram for SurfacePlot:

Inheritance graph
[legend]
Collaboration diagram for SurfacePlot:

Collaboration graph
[legend]
List of all members.

Detailed Description

Examples:

example13.cpp.

Definition at line 62 of file SurfacePlot.hpp.

Public Member Functions

 SurfacePlot (int iwidth, int iheight, const Palette &p)
 Constructor.
 ~SurfacePlot ()
 Destructor.
void setColorLabel (const char *str)
 Set the label for the color axis.
void draw (Frame *frame, int dir)
 Draw the Plot to this frame, with the key on the dir side.
void drawPlot (Frame *frame)
 Draw the Plot to this frame.
void drawKey (Frame *frame)
 Draw the Palette key to this frame.
void set (int row, int col, double d)
 Set the color at row,col to the color at d on the palette.
double get (int row, int col)
 Get the index for a row and column.
void oversample (int scale)
 Set up oversampling.
void oversample (int rscale, int cscale)
 Set up oversampling.
void useBoxes (bool b=true)
 Use boxes when rendering the surface.

Public Attributes

AxisStyle axis_color
 Style for the right axis.


Constructor & Destructor Documentation

SurfacePlot int  iwidth,
int  iheight,
const Palette p
 

Constructor.

Parameters:
iwidth Width of color map
iheight Height of the color map
p Palette for the elements in this surface map

~SurfacePlot  ) 
 

Destructor.


Member Function Documentation

void draw Frame frame,
int  dir
 

Draw the Plot to this frame, with the key on the dir side.

void drawKey Frame frame  ) 
 

Draw the Palette key to this frame.

dir is the direction from negative to positive for the key. You probably want to supply a tall, skinny frame for North or South directions and a short and wide frame for East and West directions.

void drawPlot Frame frame  ) 
 

Draw the Plot to this frame.

double get int  row,
int  col
[inline]
 

Get the index for a row and column.

Definition at line 104 of file SurfacePlot.hpp.

References InterpolatedColorMap::getIndex().

void oversample int  rscale,
int  cscale
[inline]
 

Set up oversampling.

Definition at line 113 of file SurfacePlot.hpp.

void oversample int  scale  )  [inline]
 

Set up oversampling.

Definition at line 110 of file SurfacePlot.hpp.

void set int  row,
int  col,
double  d
[inline]
 

Set the color at row,col to the color at d on the palette.

Definition at line 98 of file SurfacePlot.hpp.

References InterpolatedColorMap::setColor().

void setColorLabel const char *  str  )  [inline]
 

Set the label for the color axis.

Definition at line 81 of file SurfacePlot.hpp.

void useBoxes bool  b = true  )  [inline]
 

Use boxes when rendering the surface.

Definition at line 116 of file SurfacePlot.hpp.


Member Data Documentation

AxisStyle axis_color
 

Style for the right axis.

Definition at line 123 of file SurfacePlot.hpp.


The documentation for this class was generated from the following file:
Generated on Wed May 22 03:31:43 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1