SIVIC API
0.9.26
|
#include <svkSpectraReferenceViewController.h>
Public Types | |
enum | InteractorStyle { SELECTION, WINDOW_LEVEL, COLOR_OVERLAY, ROTATION } |
Public Member Functions | |
vtkTypeMacro (svkSpectraReferenceViewController, svkDataViewController) | |
svkSpectraReferenceViewController () | |
~svkSpectraReferenceViewController () | |
virtual void | SetInput (svkImageData *data, int index=0) |
virtual void | SetSlice (int slice) |
virtual void | SetSlice (int slice, bool centerImage) |
virtual void | SetSlice (int slice, svkDcmHeader::Orientation orientation) |
virtual int | GetImageSlice (svkDcmHeader::Orientation sliceOrientation=svkDcmHeader::UNKNOWN_ORIENTATION) |
virtual void | SetRWInteractor (vtkRenderWindowInteractor *) |
virtual void | TurnPropOn (int propIndex) |
virtual void | TurnPropOff (int propIndex) |
virtual int * | GetTlcBrc () |
virtual void | SetTlcBrc (int *tlcBrc) |
void | SetOverlayOpacity (double opacity) |
void | SetOverlayThreshold (double threshold) |
double | GetOverlayThreshold () |
double | GetOverlayThresholdValue () |
int | GetCurrentStyle () |
void | SetCurrentStyle (int style) |
void | UseWindowLevelStyle () |
Switches to the window level style interactor. More... | |
void | UseColorOverlayStyle () |
Switches to the window level style interactor. More... | |
void | UseSelectionStyle () |
Switches to the selection style interactor. More... | |
void | UseRotationStyle () |
Switches to the rotation style interactor. More... | |
void | ResetWindowLevel () |
Resets the window level, source taken from vtkImageViewer2. More... | |
void | HighlightSelectionVoxels () |
void | Reset () |
string | GetDataCompatibility (svkImageData *data, int targetIndex) |
void | SetInterpolationType (int interpolationType) |
void | SetLUT (svkLookupTable::svkLookupTableType type) |
void | TurnOrthogonalImagesOn () |
void | TurnOrthogonalImagesOff () |
bool | IsImageInsideSpectra () |
Public Member Functions inherited from svkDataViewController | |
vtkTypeMacro (svkDataViewController, vtkObject) | |
svkDataViewController () | |
Constructor. More... | |
~svkDataViewController () | |
Destructor. More... | |
virtual svkImageData * | GetData (int index=0) |
virtual void | SetView (svkDataView *view) |
Set input data and initialize default range values. More... | |
virtual svkDataView * | GetView () |
virtual int | GetSlice () |
virtual void | SetWindowLevelRange (double lower, double upper, int index) |
virtual vtkRenderWindowInteractor * | GetRWInteractor () |
Static Public Member Functions | |
static svkSpectraReferenceViewController * | New () |
Protected Types | |
enum | DataInputs { MRI = 0, MRS = 1, MET = 2 } |
enum represents data indicies More... | |
Protected Attributes | |
bool | visualizationCreated |
enum represents data indicies More... | |
vtkRenderWindow * | myRenderWindow |
the views render window More... | |
vtkCallbackCommand * | cursorLocationCB |
callback that responds to mouse movements to update cursor location display More... | |
vtkCallbackCommand * | dragSelectionCB |
callback that responds to left click to highlight voxels More... | |
vtkCallbackCommand * | colorOverlayCB |
callback that responds to left click to highlight voxels More... | |
vtkCallbackCommand * | interactorSwitchCB |
vtkTextActor * | mousePositionText |
the actor that represents the mouse location More... | |
vtkRenderer * | mouseLocRenderer |
the renderer used to display the mouse location More... | |
vtkInteractorObserver * | windowLevelStyle |
interactor style for window leveling More... | |
vtkInteractorObserver * | colorOverlayStyle |
interactor style for window leveling More... | |
vtkInteractorObserver * | rotationStyle |
interactor style for 3D rotation More... | |
svkOverlaySelector * | dragSelectStyle |
interactor style for selecting voxels More... | |
vtkActor * | scanBoundryActor |
actor that represents the scan boundry More... | |
double | initialColorWindowLevel [2] |
int | pickPos [2] |
double | startOpacity |
int | currentInteractorStyle |
Protected Attributes inherited from svkDataViewController | |
vector< svkImageData * > | dataVector |
svkDataView * | view |
vtkRenderWindowInteractor * | rwi |
svkSpectraReferenceViewController is a concrete implementation of DataViewController. It is designed to work with the svkSpectraReferenceView to create a workspace for overlaying the spatial location of spectroscopy voxels, with the anatomical image from the same scan.
|
protected |
enum InteractorStyle |
Constructor initializes the associated DataView and initializes callbacks.
References svkSpectraReferenceViewController::colorOverlayCB, svkSpectraReferenceViewController::colorOverlayStyle, svkSpectraReferenceView::COORDINATES, svkSpectraReferenceViewController::cursorLocationCB, svkDataViewController::dataVector, svkSpectraReferenceViewController::dragSelectionCB, svkSpectraReferenceViewController::dragSelectStyle, svkDataView::GetProp(), svkDataView::GetRenderer(), svkSpectraReferenceViewController::interactorSwitchCB, svkSpectraReferenceView::MOUSE_LOCATION, svkOverlaySelector::New(), svkSpectraReferenceView::New(), svkSpectraReferenceView::PRIMARY, svkSpectraReferenceViewController::rotationStyle, svkDataViewController::rwi, svkSpectraReferenceViewController::scanBoundryActor, svkDataView::SetController(), svkSpectraReferenceViewController::SetInput(), svkDataView::SetProp(), svkDataView::SetRenderer(), svkDataViewController::view, and svkSpectraReferenceViewController::windowLevelStyle.
Destructor.
References svkSpectraReferenceViewController::colorOverlayCB, svkSpectraReferenceViewController::colorOverlayStyle, svkSpectraReferenceViewController::cursorLocationCB, svkSpectraReferenceViewController::dragSelectionCB, svkSpectraReferenceViewController::dragSelectStyle, svkSpectraReferenceViewController::interactorSwitchCB, svkSpectraReferenceViewController::rotationStyle, svkDataViewController::rwi, svkSpectraReferenceViewController::scanBoundryActor, svkDataViewController::view, and svkSpectraReferenceViewController::windowLevelStyle.
int GetCurrentStyle | ( | ) |
string GetDataCompatibility | ( | svkImageData * | data, |
int | targetIndex | ||
) |
References svkDataViewController::view.
|
virtual |
Getter for the current image slice, as opposed to the spectroscopic slice.
References svkDataView::GetOrientation(), svkDataView::GetSlice(), svkDataViewController::GetView(), and svkDcmHeader::UNKNOWN_ORIENTATION.
double GetOverlayThreshold | ( | ) |
References svkDataViewController::view.
double GetOverlayThresholdValue | ( | ) |
References svkDataViewController::view.
|
virtual |
Used to get the current Top Left and Bottom Right Corners of the display
References svkDataViewController::view.
Referenced by svkSpectraReferenceViewController::SetTlcBrc(), svkSpectraReferenceViewController::TurnPropOff(), and svkSpectraReferenceViewController::TurnPropOn().
void HighlightSelectionVoxels | ( | ) |
References svkDataViewController::view.
bool IsImageInsideSpectra | ( | ) |
References svkDataViewController::view.
|
static |
void Reset | ( | ) |
References svkSpectraReferenceViewController::colorOverlayCB, svkSpectraReferenceView::COORDINATES, svkSpectraReferenceViewController::cursorLocationCB, svkDataViewController::dataVector, svkSpectraReferenceViewController::dragSelectionCB, svkDataView::GetProp(), svkSpectraReferenceViewController::MET, svkSpectraReferenceView::MOUSE_LOCATION, svkSpectraReferenceViewController::MRI, svkSpectraReferenceViewController::MRS, svkSpectraReferenceView::New(), svkSpectraReferenceView::PRIMARY, svkDataViewController::rwi, svkDataView::SetController(), svkDataView::SetProp(), svkDataView::SetRenderer(), svkSpectraReferenceViewController::SetRWInteractor(), and svkDataViewController::view.
void ResetWindowLevel | ( | ) |
Resets the window level, source taken from vtkImageViewer2.
References svkSpectraReferenceView::ResetWindowLevel(), and svkDataViewController::view.
void SetCurrentStyle | ( | int | style | ) |
References svkSpectraReferenceViewController::COLOR_OVERLAY, svkSpectraReferenceViewController::ROTATION, svkSpectraReferenceViewController::SELECTION, svkSpectraReferenceViewController::UseColorOverlayStyle(), svkSpectraReferenceViewController::UseRotationStyle(), svkSpectraReferenceViewController::UseSelectionStyle(), svkSpectraReferenceViewController::UseWindowLevelStyle(), and svkSpectraReferenceViewController::WINDOW_LEVEL.
|
virtual |
Setter method. Also calls the SetInput method of its view. svkSpectraReferenceView has two inputs, an image and a spectroscopy data set.
data | the data you wish to view |
index | the index of the input you wish to set. |
Implements svkDataViewController.
References svkDataViewController::dataVector, svkDataViewController::GetSlice(), svkDataViewController::GetView(), svkSpectraReferenceViewController::MET, svkSpectraReferenceView::MOUSE_LOCATION, svkSpectraReferenceViewController::MRI, svkSpectraReferenceViewController::MRS, svkDataView::SetInput(), svkSpectraReferenceViewController::SetSlice(), svkDataView::TurnRendererOn(), and svkDataViewController::view.
Referenced by svkSpectraReferenceViewController::svkSpectraReferenceViewController().
void SetInterpolationType | ( | int | interpolationType | ) |
References svkDataViewController::view.
void SetLUT | ( | svkLookupTable::svkLookupTableType | type | ) |
References svkDataViewController::view.
void SetOverlayOpacity | ( | double | opacity | ) |
References svkDataViewController::view.
void SetOverlayThreshold | ( | double | threshold | ) |
References svkDataViewController::view.
|
virtual |
Setter method. Also gets the render window from the render window actor. Once these have been set, CreateDataVisualization() is called and starts the actual create of the visualization.
rwi | the vtkRenderWindowInteractor you want the View to use |
Reimplemented from svkDataViewController.
References svkSpectraReferenceViewController::cursorLocationCB, svkSpectraReferenceViewController::dragSelectionCB, svkSpectraReferenceViewController::interactorSwitchCB, svkSpectraReferenceViewController::myRenderWindow, svkDataViewController::rwi, svkDataViewController::SetRWInteractor(), and svkSpectraReferenceViewController::windowLevelStyle.
Referenced by svkSpectraReferenceViewController::Reset().
|
virtual |
Setter. Should be modified to take action once the slice is set, and to modify its View to do the same.
slice | the slice you want to view |
the | image you want to change the slice of, 0 is primary 1 and 2 are orthogonal |
Reimplemented from svkDataViewController.
References svkDataView::SetSlice(), and svkDataViewController::view.
Referenced by svkSpectraReferenceViewController::SetInput(), and svkSpectraReferenceViewController::SetSlice().
|
virtual |
Setter. Should be modified to take action once the slice is set, and to modify its View to do the same.
slice | the slice you want to view |
the | image you want to change the slice of, 0 is primary 1 and 2 are orthogonal |
References svkDataViewController::view.
|
virtual |
Setter. Should be modified to take action once the slice is set, and to modify its View to do the same.
slice | the slice you want to view |
the | image you want to change the slice of, 0 is primary 1 and 2 are orthogonal |
References svkSpectraReferenceViewController::SetSlice(), and svkDataViewController::view.
|
virtual |
Used to set externally the Top Left and Bottom Right Corners of the display
tlcBrc | pointer to a length two vector, the first element being the l cell id of the top left corner and the second the bottom right corner. |
References svkSpectraReferenceViewController::GetTlcBrc(), and svkDataViewController::view.
Referenced by svkSpectraReferenceViewController::TurnPropOff(), and svkSpectraReferenceViewController::TurnPropOn().
void TurnOrthogonalImagesOff | ( | ) |
References svkDataViewController::view.
void TurnOrthogonalImagesOn | ( | ) |
References svkDataViewController::view.
|
virtual |
Turn off the vtkActorCollection representing a given topology for a given image.
actorIndex | the index of the topology you want to turn off |
imageIndex | the index of the image who's topology you want turned off |
References svkSpectraReferenceViewController::GetTlcBrc(), svkSpectraReferenceViewController::SetTlcBrc(), svkDataView::TurnPropOff(), and svkDataViewController::view.
|
virtual |
Turn on the vtkActorCollection representing a given topology for a given image.
actorIndex | the index of the topology you want to turn on |
imageIndex | the index of the image who's topology you want turned on |
References svkSpectraReferenceViewController::GetTlcBrc(), svkSpectraReferenceViewController::SetTlcBrc(), svkDataView::TurnPropOn(), and svkDataViewController::view.
void UseColorOverlayStyle | ( | ) |
Switches to the window level style interactor.
References svkSpectraReferenceViewController::COLOR_OVERLAY, svkSpectraReferenceViewController::colorOverlayStyle, svkSpectraReferenceViewController::currentInteractorStyle, svkDataView::GetRenderer(), svkSpectraReferenceView::MOUSE_LOCATION, svkSpectraReferenceView::PRIMARY, svkDataView::Refresh(), svkDataViewController::rwi, svkDataView::TurnRendererOff(), and svkDataViewController::view.
Referenced by svkSpectraReferenceViewController::SetCurrentStyle().
void UseRotationStyle | ( | ) |
Switches to the rotation style interactor.
References svkDcmHeader::AXIAL, svkDcmHeader::CORONAL, svkSpectraReferenceViewController::currentInteractorStyle, svkDataView::GetOrientation(), svkDataView::GetRenderer(), svkDataView::IsPropOn(), svkSpectraReferenceView::MOUSE_LOCATION, svkSpectraReferenceView::PRIMARY, svkSpectraReferenceViewController::ROTATION, svkSpectraReferenceViewController::rotationStyle, svkDataViewController::rwi, svkDcmHeader::SAGITTAL, svkSpectraReferenceView::SAT_BANDS_AXIAL, svkSpectraReferenceView::SAT_BANDS_AXIAL_OUTLINE, svkSpectraReferenceView::SAT_BANDS_CORONAL, svkSpectraReferenceView::SAT_BANDS_CORONAL_OUTLINE, svkSpectraReferenceView::SAT_BANDS_SAGITTAL, svkSpectraReferenceView::SAT_BANDS_SAGITTAL_OUTLINE, svkSpectraReferenceView::ToggleSelBoxVisibilityOff(), svkDataView::TurnPropOn(), svkDataView::TurnRendererOff(), and svkDataViewController::view.
Referenced by svkSpectraReferenceViewController::SetCurrentStyle().
void UseSelectionStyle | ( | ) |
Switches to the selection style interactor.
References svkDcmHeader::AXIAL, svkDcmHeader::CORONAL, svkSpectraReferenceViewController::currentInteractorStyle, svkSpectraReferenceViewController::dragSelectStyle, svkDataView::GetRenderer(), svkDataViewController::GetView(), svkDataView::IsPropOn(), svkSpectraReferenceView::MOUSE_LOCATION, svkSpectraReferenceViewController::myRenderWindow, svkSpectraReferenceView::PRIMARY, svkDataViewController::rwi, svkDcmHeader::SAGITTAL, svkSpectraReferenceView::SAT_BANDS_AXIAL, svkSpectraReferenceView::SAT_BANDS_AXIAL_OUTLINE, svkSpectraReferenceView::SAT_BANDS_CORONAL, svkSpectraReferenceView::SAT_BANDS_CORONAL_OUTLINE, svkSpectraReferenceView::SAT_BANDS_SAGITTAL, svkSpectraReferenceView::SAT_BANDS_SAGITTAL_OUTLINE, svkSpectraReferenceViewController::SELECTION, svkDataView::TurnPropOff(), svkDataView::TurnPropOn(), svkDataView::TurnRendererOn(), and svkDataViewController::view.
Referenced by svkSpectraReferenceViewController::SetCurrentStyle().
void UseWindowLevelStyle | ( | ) |
Switches to the window level style interactor.
References svkSpectraReferenceViewController::currentInteractorStyle, svkSpectraReferenceView::MOUSE_LOCATION, svkDataViewController::rwi, svkDataView::TurnRendererOff(), svkDataViewController::view, svkSpectraReferenceViewController::WINDOW_LEVEL, and svkSpectraReferenceViewController::windowLevelStyle.
Referenced by svkSpectraReferenceViewController::SetCurrentStyle().
vtkTypeMacro | ( | svkSpectraReferenceViewController | , |
svkDataViewController | |||
) |
|
protected |
callback that responds to left click to highlight voxels
Referenced by svkSpectraReferenceViewController::Reset(), svkSpectraReferenceViewController::svkSpectraReferenceViewController(), and svkSpectraReferenceViewController::~svkSpectraReferenceViewController().
|
protected |
interactor style for window leveling
Referenced by svkSpectraReferenceViewController::svkSpectraReferenceViewController(), svkSpectraReferenceViewController::UseColorOverlayStyle(), and svkSpectraReferenceViewController::~svkSpectraReferenceViewController().
|
protected |
|
protected |
callback that responds to mouse movements to update cursor location display
Referenced by svkSpectraReferenceViewController::Reset(), svkSpectraReferenceViewController::SetRWInteractor(), svkSpectraReferenceViewController::svkSpectraReferenceViewController(), and svkSpectraReferenceViewController::~svkSpectraReferenceViewController().
|
protected |
callback that responds to left click to highlight voxels
Referenced by svkSpectraReferenceViewController::Reset(), svkSpectraReferenceViewController::SetRWInteractor(), svkSpectraReferenceViewController::svkSpectraReferenceViewController(), and svkSpectraReferenceViewController::~svkSpectraReferenceViewController().
|
protected |
interactor style for selecting voxels
Referenced by svkSpectraReferenceViewController::svkSpectraReferenceViewController(), svkSpectraReferenceViewController::UseSelectionStyle(), and svkSpectraReferenceViewController::~svkSpectraReferenceViewController().
|
protected |
|
protected |
|
protected |
the renderer used to display the mouse location
|
protected |
the actor that represents the mouse location
|
protected |
the views render window
Referenced by svkSpectraReferenceViewController::SetRWInteractor(), and svkSpectraReferenceViewController::UseSelectionStyle().
|
protected |
|
protected |
interactor style for 3D rotation
Referenced by svkSpectraReferenceViewController::svkSpectraReferenceViewController(), svkSpectraReferenceViewController::UseRotationStyle(), and svkSpectraReferenceViewController::~svkSpectraReferenceViewController().
|
protected |
actor that represents the scan boundry
Referenced by svkSpectraReferenceViewController::svkSpectraReferenceViewController(), and svkSpectraReferenceViewController::~svkSpectraReferenceViewController().
|
protected |
|
protected |
enum represents data indicies
determines of the visualization has been initialized
|
protected |
interactor style for window leveling
Referenced by svkSpectraReferenceViewController::SetRWInteractor(), svkSpectraReferenceViewController::svkSpectraReferenceViewController(), svkSpectraReferenceViewController::UseWindowLevelStyle(), and svkSpectraReferenceViewController::~svkSpectraReferenceViewController().