SIVIC API
0.9.26
|
#include <svkOverlayViewController.h>
Public Types | |
enum | InteractorStyle { SELECTION, WINDOW_LEVEL, COLOR_OVERLAY, ROTATION } |
enum | WindowLevelTarget { REFERENCE_IMAGE = 0, IMAGE_OVERLAY } |
Enum for window level targets. More... | |
Public Member Functions | |
vtkTypeMacro (svkOverlayViewController, svkDataViewController) | |
svkOverlayViewController () | |
~svkOverlayViewController () | |
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 () |
void | SetLevel (double level, WindowLevelTarget target=REFERENCE_IMAGE) |
double | GetLevel (WindowLevelTarget target=REFERENCE_IMAGE) |
void | SetWindow (double window, WindowLevelTarget target=REFERENCE_IMAGE) |
double | GetWindow (WindowLevelTarget target=REFERENCE_IMAGE) |
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 svkOverlayViewController * | New () |
Protected Types | |
enum | DataInputs { MRI = 0, MR4D = 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 |
svkOverlayViewController is a concrete implementation of DataViewController. It is designed to work with the svkOverlayView to create a workspace for overlaying the spatial location of spectroscopy voxels, with the anatomical image from the same scan.
|
protected |
enum InteractorStyle |
enum WindowLevelTarget |
Constructor initializes the associated DataView and initializes callbacks.
References svkOverlayViewController::colorOverlayCB, svkOverlayViewController::colorOverlayStyle, svkOverlayView::COORDINATES, svkOverlayViewController::cursorLocationCB, svkDataViewController::dataVector, svkOverlayViewController::dragSelectionCB, svkOverlayViewController::dragSelectStyle, svkDataView::GetProp(), svkOverlayViewController::interactorSwitchCB, svkOverlayView::MOUSE_LOCATION, svkOverlaySelector::New(), svkOverlayView::New(), svkOverlayView::PRIMARY, svkOverlayViewController::rotationStyle, svkDataViewController::rwi, svkOverlayViewController::scanBoundryActor, svkDataView::SetController(), svkDataView::SetProp(), svkDataView::SetRenderer(), svkDataViewController::view, svkOverlayViewController::visualizationCreated, and svkOverlayViewController::windowLevelStyle.
Destructor.
References svkOverlayViewController::colorOverlayCB, svkOverlayViewController::colorOverlayStyle, svkOverlayViewController::cursorLocationCB, svkOverlayViewController::dragSelectionCB, svkOverlayViewController::dragSelectStyle, svkOverlayViewController::interactorSwitchCB, svkOverlayViewController::rotationStyle, svkDataViewController::rwi, svkOverlayViewController::scanBoundryActor, svkDataViewController::view, and svkOverlayViewController::windowLevelStyle.
int GetCurrentStyle | ( | ) |
References svkOverlayViewController::currentInteractorStyle.
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 GetLevel | ( | WindowLevelTarget | target = REFERENCE_IMAGE | ) |
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 svkOverlayViewController::SetTlcBrc(), svkOverlayViewController::TurnPropOff(), and svkOverlayViewController::TurnPropOn().
double GetWindow | ( | WindowLevelTarget | target = REFERENCE_IMAGE | ) |
void HighlightSelectionVoxels | ( | ) |
References svkDataViewController::view.
bool IsImageInsideSpectra | ( | ) |
References svkDataViewController::view.
|
static |
void Reset | ( | ) |
References svkOverlayViewController::colorOverlayCB, svkOverlayView::COORDINATES, svkOverlayViewController::cursorLocationCB, svkDataViewController::dataVector, svkOverlayViewController::dragSelectionCB, svkDataView::GetProp(), svkOverlayViewController::MET, svkOverlayView::MOUSE_LOCATION, svkOverlayViewController::MR4D, svkOverlayViewController::MRI, svkOverlayView::New(), svkOverlayView::PRIMARY, svkDataViewController::rwi, svkDataView::SetController(), svkDataView::SetProp(), svkDataView::SetRenderer(), svkOverlayViewController::SetRWInteractor(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
void ResetWindowLevel | ( | ) |
Resets the window level, source taken from vtkImageViewer2.
References svkOverlayView::ResetWindowLevel(), and svkDataViewController::view.
void SetCurrentStyle | ( | int | style | ) |
References svkOverlayViewController::COLOR_OVERLAY, svkOverlayViewController::ROTATION, svkOverlayViewController::SELECTION, svkOverlayViewController::UseColorOverlayStyle(), svkOverlayViewController::UseRotationStyle(), svkOverlayViewController::UseSelectionStyle(), svkOverlayViewController::UseWindowLevelStyle(), and svkOverlayViewController::WINDOW_LEVEL.
|
virtual |
Setter method. Also calls the SetInput method of its view. svkOverlayView 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(), svkOverlayViewController::MET, svkOverlayView::MR4D, svkOverlayViewController::MR4D, svkOverlayViewController::MRI, svkDataView::SetInput(), svkOverlayViewController::SetSlice(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
void SetInterpolationType | ( | int | interpolationType | ) |
References svkDataViewController::view.
void SetLevel | ( | double | level, |
WindowLevelTarget | target = REFERENCE_IMAGE |
||
) |
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 svkDataViewController::dataVector, svkOverlayViewController::MRI, svkOverlayViewController::myRenderWindow, svkDataViewController::rwi, and svkDataViewController::SetRWInteractor().
Referenced by svkOverlayViewController::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(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
Referenced by svkOverlayViewController::SetInput(), and svkOverlayViewController::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, and svkOverlayViewController::visualizationCreated.
|
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 svkOverlayViewController::SetSlice(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
|
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 svkOverlayViewController::GetTlcBrc(), and svkDataViewController::view.
Referenced by svkOverlayViewController::TurnPropOff(), and svkOverlayViewController::TurnPropOn().
void SetWindow | ( | double | window, |
WindowLevelTarget | target = REFERENCE_IMAGE |
||
) |
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 svkOverlayViewController::GetTlcBrc(), svkOverlayViewController::SetTlcBrc(), svkDataView::TurnPropOff(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
|
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 svkOverlayViewController::GetTlcBrc(), svkOverlayViewController::SetTlcBrc(), svkDataView::TurnPropOn(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
void UseColorOverlayStyle | ( | ) |
Switches to the window level style interactor.
References svkOverlayViewController::COLOR_OVERLAY, svkOverlayViewController::colorOverlayStyle, svkOverlayViewController::currentInteractorStyle, svkDataView::GetRenderer(), svkOverlayView::MOUSE_LOCATION, svkOverlayViewController::myRenderWindow, svkOverlayView::PRIMARY, svkDataView::Refresh(), svkDataViewController::rwi, svkDataView::TurnRendererOff(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
Referenced by svkOverlayViewController::SetCurrentStyle().
void UseRotationStyle | ( | ) |
Switches to the rotation style interactor.
References svkDcmHeader::AXIAL, svkDcmHeader::CORONAL, svkOverlayViewController::currentInteractorStyle, svkDataView::GetOrientation(), svkDataView::GetRenderer(), svkDataView::IsPropOn(), svkOverlayView::MOUSE_LOCATION, svkOverlayViewController::myRenderWindow, svkOverlayView::PRIMARY, svkOverlayViewController::ROTATION, svkOverlayViewController::rotationStyle, svkDataViewController::rwi, svkDcmHeader::SAGITTAL, svkOverlayView::SAT_BANDS_AXIAL, svkOverlayView::SAT_BANDS_AXIAL_OUTLINE, svkOverlayView::SAT_BANDS_CORONAL, svkOverlayView::SAT_BANDS_CORONAL_OUTLINE, svkOverlayView::SAT_BANDS_SAGITTAL, svkOverlayView::SAT_BANDS_SAGITTAL_OUTLINE, svkDataView::TurnPropOn(), svkDataView::TurnRendererOff(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
Referenced by svkOverlayViewController::SetCurrentStyle().
void UseSelectionStyle | ( | ) |
Switches to the selection style interactor.
References svkDcmHeader::AXIAL, svkDcmHeader::CORONAL, svkOverlayViewController::currentInteractorStyle, svkOverlayViewController::dragSelectStyle, svkDataView::GetRenderer(), svkDataViewController::GetView(), svkDataView::IsPropOn(), svkOverlayView::MOUSE_LOCATION, svkOverlayViewController::myRenderWindow, svkOverlayView::PRIMARY, svkDataViewController::rwi, svkDcmHeader::SAGITTAL, svkOverlayView::SAT_BANDS_AXIAL, svkOverlayView::SAT_BANDS_AXIAL_OUTLINE, svkOverlayView::SAT_BANDS_CORONAL, svkOverlayView::SAT_BANDS_CORONAL_OUTLINE, svkOverlayView::SAT_BANDS_SAGITTAL, svkOverlayView::SAT_BANDS_SAGITTAL_OUTLINE, svkOverlayViewController::SELECTION, svkDataView::TurnPropOff(), svkDataView::TurnPropOn(), svkDataView::TurnRendererOn(), svkDataViewController::view, and svkOverlayViewController::visualizationCreated.
Referenced by svkOverlayViewController::SetCurrentStyle().
void UseWindowLevelStyle | ( | ) |
Switches to the window level style interactor.
References svkOverlayViewController::currentInteractorStyle, svkOverlayView::MOUSE_LOCATION, svkOverlayViewController::myRenderWindow, svkDataViewController::rwi, svkDataView::TurnRendererOff(), svkDataViewController::view, svkOverlayViewController::visualizationCreated, svkOverlayViewController::WINDOW_LEVEL, and svkOverlayViewController::windowLevelStyle.
Referenced by svkOverlayViewController::SetCurrentStyle().
vtkTypeMacro | ( | svkOverlayViewController | , |
svkDataViewController | |||
) |
|
protected |
callback that responds to left click to highlight voxels
Referenced by svkOverlayViewController::Reset(), svkOverlayViewController::svkOverlayViewController(), and svkOverlayViewController::~svkOverlayViewController().
|
protected |
interactor style for window leveling
Referenced by svkOverlayViewController::svkOverlayViewController(), svkOverlayViewController::UseColorOverlayStyle(), and svkOverlayViewController::~svkOverlayViewController().
|
protected |
|
protected |
callback that responds to mouse movements to update cursor location display
Referenced by svkOverlayViewController::Reset(), svkOverlayViewController::svkOverlayViewController(), and svkOverlayViewController::~svkOverlayViewController().
|
protected |
callback that responds to left click to highlight voxels
Referenced by svkOverlayViewController::Reset(), svkOverlayViewController::svkOverlayViewController(), and svkOverlayViewController::~svkOverlayViewController().
|
protected |
interactor style for selecting voxels
Referenced by svkOverlayViewController::svkOverlayViewController(), svkOverlayViewController::UseSelectionStyle(), and svkOverlayViewController::~svkOverlayViewController().
|
protected |
|
protected |
|
protected |
the renderer used to display the mouse location
|
protected |
the actor that represents the mouse location
|
protected |
|
protected |
|
protected |
interactor style for 3D rotation
Referenced by svkOverlayViewController::svkOverlayViewController(), svkOverlayViewController::UseRotationStyle(), and svkOverlayViewController::~svkOverlayViewController().
|
protected |
actor that represents the scan boundry
Referenced by svkOverlayViewController::svkOverlayViewController(), and svkOverlayViewController::~svkOverlayViewController().
|
protected |
|
protected |
enum represents data indicies
determines of the visualization has been initialized
Referenced by svkOverlayViewController::Reset(), svkOverlayViewController::SetInput(), svkOverlayViewController::SetSlice(), svkOverlayViewController::svkOverlayViewController(), svkOverlayViewController::TurnPropOff(), svkOverlayViewController::TurnPropOn(), svkOverlayViewController::UseColorOverlayStyle(), svkOverlayViewController::UseRotationStyle(), svkOverlayViewController::UseSelectionStyle(), and svkOverlayViewController::UseWindowLevelStyle().
|
protected |
interactor style for window leveling
Referenced by svkOverlayViewController::svkOverlayViewController(), svkOverlayViewController::UseWindowLevelStyle(), and svkOverlayViewController::~svkOverlayViewController().