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

#include <svkPlotLineGrid.h>

Inheritance diagram for svkPlotLineGrid:

Public Member Functions

 vtkTypeMacro (svkPlotLineGrid, vtkObject)
 
 svkPlotLineGrid ()
 Constructor. More...
 
 ~svkPlotLineGrid ()
 Destructor. More...
 
void SetInput (svk4DImageData *data)
 
svk4DImageDataGetInput ()
 
void Update (int tlcBrc[2])
 
void SetTlcBrc (int tlcBrc[2])
 
int * GetTlcBrc ()
 
void SetSlice (int slice)
 
void SetPlotPoints ()
 
int GetSlice ()
 
void SetFrequencyWLRange (int lower, int range, int tlcBrc[2])
 
void GetFrequencyWLRange (int &lower, int &range)
 
void SetIntensityWLRange (double lower, double range, int tlcBrc[2])
 
void GetIntensityWLRange (double &lower, double &range)
 
void AlignCamera (bool invertView=1)
 
void SetComponent (svkPlotLine::PlotComponent component)
 
svkPlotLine::PlotComponent GetComponent ()
 
vtkstd::vector< int > GetVolumeIndexVector ()
 
void SetVolumeIndexVector (vtkstd::vector< int >)
 
void SetVolumeIndex (int index, int volumeIndex=0)
 
int GetVolumeIndex (int volumeIndex=0)
 
void UpdateDataArrays (int tlc, int brc)
 
void SetOrientation (svkDcmHeader::Orientation orientation)
 
vtkActor * GetPlotGridActor ()
 
void CalculateTlcBrcBounds (double bounds[6], int tlcBrc[2])
 
void SetColor (double rgb[3])
 
double * GetColor ()
 

Static Public Member Functions

static svkPlotLineGridNew ()
 

Constructor & Destructor Documentation

Constructor.

References svkDcmHeader::AXIAL, and svkPlotLine::REAL.

Destructor.

Member Function Documentation

void AlignCamera ( bool  invertView = 1)
void CalculateTlcBrcBounds ( double  bounds[6],
int  tlcBrc[2] 
)

This calculates the boundaries for a given top left/ bottom right corners

TODO: Make this a utility method in svk4DImageData and make it use cell points

Parameters
boundsthis is to be populated by the method
tlcBrcthe top left/ bottom right corners of the query

References svkPlotLine::plotAreaBounds.

double * GetColor ( )

Get the color for the plot lines

svkPlotLine::PlotComponent GetComponent ( )

Gets the current component.

Returns
component the current component: REAL, IMAGINARY, or MAGNITUDE
void GetFrequencyWLRange ( int &  lower,
int &  range 
)
svk4DImageData * GetInput ( )
void GetIntensityWLRange ( double &  lower,
double &  upper 
)

Gets the current intensity range.

Parameters
loweroutput value
upperoutput value

Referenced by svkSpectraReferenceView::GetWindowLevelRange().

vtkActor * GetPlotGridActor ( )
int GetSlice ( )

Get the slice number to plot in the data object.

Referenced by svkSpectraReferenceView::SetOrientation().

int * GetTlcBrc ( )

Return the indecies of the top left corner, and bottom right corner

Referenced by svkSpectraReferenceView::SetOrientation().

int GetVolumeIndex ( int  volumeIndex = 0)
Parameters
volumeIndex
Returns
vector< int > GetVolumeIndexVector ( )
Returns
static svkPlotLineGrid* New ( )
static
void SetColor ( double  rgb[3])

Set the color for the plot lines

void SetComponent ( svkPlotLine::PlotComponent  component)

Sets the component to be displayed.

Parameters
componentthe component you wish to view, REAL, IMAGINARY, or MAGNITUDE

Referenced by svkSpectraReferenceView::SetComponent().

void SetFrequencyWLRange ( int  lower,
int  upper,
int  tlcBrc[2] 
)

Sets the frequency range to be between lower and upper.

Parameters
lowerthe minimum frequency
upperthe maximum frequency

TODO: Currently this method only works with points, it should be modified for Hz, and PPM.

Referenced by svkSpectraReferenceView::SetWindowLevelRange().

void SetInput ( svk4DImageData data)

Set input data and initialize default range values. Then it generates the actors for the entire dataset upfront, to allow for fast SetSlice operations.

Parameters
datathe data to be viewed

References svkImageData::GetDataRange(), and svk4DImageData::GetNumberOfVolumeDimensions().

Referenced by svkSpectraReferenceView::SetupMsInput().

void SetIntensityWLRange ( double  lower,
double  upper,
int  tlcBrc[2] 
)

Sets the intesity range to be between lower and upper.

Parameters
lowerthe minimum amplitude
upperthe maximum amplitude

Referenced by svkSpectraReferenceView::SetWindowLevelRange().

void SetOrientation ( svkDcmHeader::Orientation  orientation)

Sets the orientation of the plots.

Parameters
orientationorientation to be viewed

References svkDataView::IsTlcBrcWithinData(), and svkDataView::ResetTlcBrcForNewOrientation().

Referenced by svkSpectraReferenceView::SetOrientation().

void SetPlotPoints ( )

This method sets the point pointers in the individual svkPlotLine objects.

References svkPlotLine::SetDataPoints(), and svkPlotLine::SetGeneratePolyData().

void SetSlice ( int  slice)

Set the slice number to plot in the data object.

Parameters
slicethe slice to be viewed

Referenced by svkSpectraReferenceView::SetSlice().

void SetTlcBrc ( int  tlcBrc[2])

Set the plot indices corresponding to the tlc and brc voxels to plot in the current slice (i.e. 2D space). This together with the slice index defines the corresponding data in data.

Parameters
tlcIDthe id of the top left corner
brcIDthe id of the bottom right corner

Referenced by svkSpectraReferenceView::SetSlice(), and svkSpectraReferenceView::SetTlcBrc().

void SetVolumeIndex ( int  index,
int  volumeIndex = 0 
)
Parameters
volumeIndex
index
void SetVolumeIndexVector ( vtkstd::vector< int >  )
Returns
void Update ( int  tlcBrc[2])

Update the view based on voxelIndexTLC/BRC. This regenerates poly data if the anything has changed.

Parameters
tlcBrcthe top left / bottom right corner range to update

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

Referenced by svkSpectraReferenceView::SetSlice(), and svkSpectraReferenceView::SetTlcBrc().

void UpdateDataArrays ( int  tlc,
int  brc 
)

Updates arrays for each svkPlotLine in the given range.

Parameters
tlcthe index of the top left voxel
brcthe index of the bottom right voxel

References svkPlotLine::SetData().

vtkTypeMacro ( svkPlotLineGrid  ,
vtkObject   
)

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