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 Member Functions | Protected Attributes | Friends | List of all members
svkPlotLine Class Reference

#include <svkPlotLine.h>

Inheritance diagram for svkPlotLine:

Public Types

enum  PlotComponent { REAL = 0, IMAGINARY, MAGNITUDE }
 
enum  PlotDirection {
  ROW_COLUMN = 0, COLUMN_ROW, SLICE_ROW, ROW_SLICE,
  SLICE_COLUMN, COLUMN_SLICE
}
 

Public Member Functions

 vtkTypeMacro (svkPlotLine, vtkObject)
 
 svkPlotLine ()
 
 ~svkPlotLine ()
 
void SetData (vtkDataArray *plotData)
 
void SetPointRange (int startPt, int endPt)
 
void SetValueRange (double minValue, double maxValue)
 
double * GetBounds ()
 
void SetComponent (PlotComponent component)
 
float * GetDataPoints ()
 
void SetDataPoints (float *polyLinePoints)
 
double * GetOrigin ()
 
void SetOrigin (double *origin)
 
double * GetSpacing ()
 
void SetSpacing (double *spacing)
 
void GetDcos (double dcos[3][3])
 
void SetInvertPlots (bool invertPlots)
 
void SetMirrorPlots (bool mirrorPlots)
 
void SetPlotDirection (int amplitudeDirection, int plotDirection)
 
void Modified ()
 
void SetDcos (vector< vector< double > > *dcos)
 
void SetGeneratePolyData (bool generatePolyData)
 
bool GetGeneratePolyData ()
 
template<class T >
void GeneratePolyDataTemplated (T *castDataPtr)
 

Static Public Member Functions

static svkPlotLineNew ()
 

Protected Member Functions

void GeneratePolyData ()
 
void RecalculateScale ()
 
void RecalculatePlotAreaBounds ()
 

Protected Attributes

bool generatePolyData
 when modified should this object regenerate the poly data. More...
 
double plotAreaBounds [6]
 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...
 
int numComponents
 The number of components. More...
 
int componentOffset
 
double minValue
 The minimum value to be plotted. More...
 
double maxValue
 The maximum value to be plotted. More...
 
vtkDataArray * plotData
 The data to be plotted. More...
 
void * dataPtr
 
int dataType
 
float * polyLinePoints
 The points that make up the line. More...
 
bool invertPlots
 Should the plots be inverted? More...
 
bool mirrorPlots
 Should the plots be flipped Left-Right? More...
 
PlotDirection plotDirection
 
int amplitudeIndex
 Which index should map to amplitude. More...
 
int pointIndex
 Which index should map to frequency/points. More...
 
float scale [2]
 the scale More...
 
PlotComponent plotComponent
 Which component should we plot? More...
 
double origin [3]
 Origin from which to start drawing the line. More...
 
double spacing [3]
 Size of the box to fill. More...
 
vector< vector< double > > * dcos
 The dcos of the dataset. More...
 

Friends

class svkPlotLineGrid
 

Detailed Description

svkPlotLine is a utility class that manipulates values in an array of x-y-z floating point values. It can be used to manipulate the points in a vtkPolyData object to to represent a vtkDataArray.

Member Enumeration Documentation

Enumerator
REAL 
IMAGINARY 
MAGNITUDE 
Enumerator
ROW_COLUMN 
COLUMN_ROW 
SLICE_ROW 
ROW_SLICE 
SLICE_COLUMN 
COLUMN_SLICE 

Constructor & Destructor Documentation

Destructor.

References svkPlotLine::plotData.

Member Function Documentation

void GeneratePolyData ( )
protected
void GeneratePolyDataTemplated ( T *  castDataPtr)
double * GetBounds ( )

Returns the bounds of the line.

References svkPlotLine::plotAreaBounds.

float * GetDataPoints ( )

Get the vtkPoints object used by this class

References svkPlotLine::polyLinePoints.

void GetDcos ( double  dcos[3][3])

Get Dcos

bool GetGeneratePolyData ( )

Set to true if you want the poly data to be regenerating when modifying.

References svkPlotLine::generatePolyData.

double * GetOrigin ( )

Gets the origin,

References svkPlotLine::origin.

double * GetSpacing ( )

Get Spacing

References svkPlotLine::spacing.

void Modified ( )
static svkPlotLine* New ( )
static
void RecalculatePlotAreaBounds ( )
protected

Recalculates the bounds of the the object

References svkPlotLine::dcos, svkPlotLine::origin, svkPlotLine::plotAreaBounds, and svkPlotLine::spacing.

Referenced by svkPlotLine::SetOrigin(), and svkPlotLine::SetSpacing().

void RecalculateScale ( )
protected
void SetComponent ( PlotComponent  component)
void SetData ( vtkDataArray *  plotData)
void SetDataPoints ( float *  polyLinePoints)

Set the vtkPoints object that will be used by this class

References svkPlotLine::Modified(), and svkPlotLine::polyLinePoints.

Referenced by svkPlotLineGrid::SetPlotPoints().

void SetDcos ( vector< vector< double > > *  dcos)

Set Dcos

References svkPlotLine::dcos, and svkPlotLine::Modified().

void SetGeneratePolyData ( bool  generatePolyData)

Set to true if you want the poly data to be regenerated when modifying. As a side effect poly data will be generated if it is changed from false to true.

References svkPlotLine::generatePolyData, and svkPlotLine::GeneratePolyData().

Referenced by svkPlotLineGrid::SetPlotPoints(), and svkPlotLineGrid::Update().

void SetInvertPlots ( bool  invertPlots)
void SetMirrorPlots ( bool  mirrorPlots)
void SetOrigin ( double *  origin)
void SetPlotDirection ( int  amplitudeDirection,
int  plotDirection 
)
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 svkPlotLine::endPt, svkPlotLine::Modified(), svkPlotLine::numPoints, svkPlotLine::RecalculateScale(), and svkPlotLine::startPt.

void SetSpacing ( double *  spacing)
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 svkPlotLine::maxValue, svkPlotLine::minValue, svkPlotLine::Modified(), and svkPlotLine::RecalculateScale().

vtkTypeMacro ( svkPlotLine  ,
vtkObject   
)

Friends And Related Function Documentation

friend class svkPlotLineGrid
friend

Member Data Documentation

int amplitudeIndex
protected
int componentOffset
protected
void* dataPtr
protected
int dataType
protected
vector< vector<double> >* dcos
protected
int endPt
protected

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

Referenced by svkPlotLine::GeneratePolyDataTemplated(), svkPlotLine::RecalculateScale(), svkPlotLine::SetPointRange(), and svkPlotLine::svkPlotLine().

bool generatePolyData
protected

when modified should this object regenerate the poly data.

Referenced by svkPlotLine::GetGeneratePolyData(), svkPlotLine::Modified(), svkPlotLine::SetGeneratePolyData(), and svkPlotLine::svkPlotLine().

bool invertPlots
protected
double maxValue
protected
double minValue
protected
bool mirrorPlots
protected

Should the plots be flipped Left-Right?

Referenced by svkPlotLine::GeneratePolyDataTemplated(), svkPlotLine::SetMirrorPlots(), and svkPlotLine::svkPlotLine().

int numComponents
protected
int numPoints
protected
double origin[3]
protected
double plotAreaBounds[6]
protected
PlotComponent plotComponent
protected
vtkDataArray* plotData
protected
PlotDirection plotDirection
protected
int pointIndex
protected
float* polyLinePoints
protected
float scale[2]
protected
double spacing[3]
protected
int startPt
protected

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

Referenced by svkPlotLine::GeneratePolyDataTemplated(), svkPlotLine::RecalculateScale(), svkPlotLine::SetPointRange(), and svkPlotLine::svkPlotLine().


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