SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
svkBoxPlot Class Reference

#include <svkBoxPlot.h>

Inheritance diagram for svkBoxPlot:

Public Types

enum  PlotComponent { REAL = 0, IMAGINARY, MAGNITUDE }
 

Public Member Functions

 vtkTypeMacro (svkBoxPlot, vtkOpenGLActor)
 
 svkBoxPlot ()
 
 ~svkBoxPlot ()
 
void Initialize ()
 
void GeneratePolyData ()
 
vtkTransform * GetTransform ()
 
void SetData (vtkFloatArray *plotData)
 
void SetPlotAreaBounds (double *bounds)
 
void SetPointRange (int startPt, int endPt)
 
void SetValueRange (double minValue, double maxValue)
 
double * GetBounds ()
 
void SetComponent (PlotComponent component)
 

Static Public Member Functions

static svkBoxPlotNew ()
 

Protected Attributes

double * plotAreaBounds
 The bounds in which the plot is to be placed. More...
 
int startPt
 The index of the first point in the plotData to be plotted. More...
 
int endPt
 The index of the last point in the plotData to be plotted. More...
 
int numPoints
 The number of points in the plotData. More...
 
double minValue
 The minimum value to be plotted. More...
 
double maxValue
 The maximum value to be plotted. More...
 
vtkFloatArray * plotData
 The data to be plotted. More...
 
vtkFloatArray * pointData
 The data point values used to make up the line. More...
 
vtkPoints * polyLinePoints
 The points that make up the line. More...
 

Detailed Description

svkBoxPlot generates and handles an actor to be used in a plot grid.\ This actor is a poly line, and its orginal coordinate system is inherently maintained. This mean that its x range is 0-npoints and y range is the min and max magnitudes of the data array that is input. The actor is then scaled to match the geometry of the current range, and location of the voxel in the given scan. It has a method called "initialize" which will create a legitimate actor, with all values zero– to be used for testing purposes.

TODO: This class extends vtkActor, and overrides its RenderOpaqueGeometry. this allows the object to be added to collections, and renders (where it renders properly, but the actor still does not behave exactly as it should. It has an internal actor that is rendered for the RenderOpaqueGemoetry, but when you use Get/SetProperty it has to be manually passed to this internal actor. This may be the only way to do it, but it may be worth checking out to see if there is a better way.

NOTE: This class is deprecated and no longer in use.

Member Enumeration Documentation

Enumerator
REAL 
IMAGINARY 
MAGNITUDE 

Constructor & Destructor Documentation

~svkBoxPlot ( )

Member Function Documentation

void GeneratePolyData ( )

Generates the poly data object that is used to represent the data. This method will copy the current plotData into the pointData, then call modified on the polyLine object so that it nows to sync with the new data.

TODO: Find a way to Not Copy the new data, and just change a data reference.

References svkBoxPlot::IMAGINARY, svkBoxPlot::numPoints, svkBoxPlot::plotData, svkBoxPlot::pointData, svkBoxPlot::polyLinePoints, and svkBoxPlot::REAL.

Referenced by svkBoxPlot::Initialize(), and svkBoxPlot::SetData().

double * GetBounds ( )

Returns the bounds of the actor.

vtkTransform* GetTransform ( )
void Initialize ( )

Initialize a default object. This can be used as a test, it fully generates a functional svkBoxPlot. All elements have value zero.

References svkBoxPlot::GeneratePolyData(), svkBoxPlot::numPoints, svkBoxPlot::SetData(), svkBoxPlot::SetPlotAreaBounds(), svkBoxPlot::SetPointRange(), and svkBoxPlot::SetValueRange().

static svkBoxPlot* New ( )
static
void SetComponent ( PlotComponent  component)
void SetData ( vtkFloatArray *  plotData)

Set the Data Array to be plotted.

Parameters
plotDataa vtkFloatArray that contains the data to be plotted

References svkBoxPlot::endPt, svkBoxPlot::GeneratePolyData(), svkBoxPlot::maxValue, svkBoxPlot::minValue, svkBoxPlot::numPoints, svkBoxPlot::plotData, svkBoxPlot::pointData, svkBoxPlot::polyLinePoints, and svkBoxPlot::startPt.

Referenced by svkBoxPlot::Initialize().

void SetPlotAreaBounds ( double *  plotAreaBounds)

Sets the PHYSICAL BOUNDS of the plot, NOT the range of the data. Use SetPointRange, and SetValueRange for that! Said in another way this is the space the plot will fill.

Parameters
plotAreaBoundsthe boundries in which you want the plot to be located [xmin, xmax, ymin, ymax, zmin, zmax]

References svkBoxPlot::plotData.

Referenced by svkBoxPlot::Initialize().

void SetPointRange ( int  startPt,
int  endPt 
)

Set the start point and end point of the array to be plotted. This essentially sets the x-range.

Parameters
startPtthe index of the first point to plot in the data array
endPtthe index of the last point to plot in the data array

References svkBoxPlot::endPt, svkBoxPlot::maxValue, svkBoxPlot::minValue, svkBoxPlot::numPoints, svkBoxPlot::plotData, svkBoxPlot::pointData, svkBoxPlot::polyLinePoints, and svkBoxPlot::startPt.

Referenced by svkBoxPlot::Initialize().

void SetValueRange ( double  minValue,
double  maxValue 
)

Set the value (Y) range of the data set to be plotted.

Parameters
minValuethe minimum value you wish to plot
maxValuethe maximum value you wish to plot

References svkBoxPlot::endPt, svkBoxPlot::maxValue, svkBoxPlot::minValue, svkBoxPlot::numPoints, svkBoxPlot::plotData, svkBoxPlot::pointData, svkBoxPlot::polyLinePoints, and svkBoxPlot::startPt.

Referenced by svkBoxPlot::Initialize().

vtkTypeMacro ( svkBoxPlot  ,
vtkOpenGLActor   
)

Member Data Documentation

int endPt
protected

The index of the last point in the plotData to be plotted.

Referenced by svkBoxPlot::SetData(), svkBoxPlot::SetPointRange(), svkBoxPlot::SetValueRange(), and svkBoxPlot::svkBoxPlot().

double maxValue
protected
double minValue
protected
int numPoints
protected
double* plotAreaBounds
protected

The bounds in which the plot is to be placed.

Referenced by svkBoxPlot::svkBoxPlot(), and svkBoxPlot::~svkBoxPlot().

vtkFloatArray* plotData
protected
vtkFloatArray* pointData
protected
vtkPoints* polyLinePoints
protected
int startPt
protected

The index of the first point in the plotData to be plotted.

Referenced by svkBoxPlot::SetData(), svkBoxPlot::SetPointRange(), svkBoxPlot::SetValueRange(), and svkBoxPlot::svkBoxPlot().


The documentation for this class was generated from the following files: