43 #ifndef SVK_OVERLAY_VIEW_CONTROLLER_H
44 #define SVK_OVERLAY_VIEW_CONTROLLER_H
53 #include <vtkImageData.h>
54 #include <vtkRenderWindow.h>
55 #include <vtkRenderWindowInteractor.h>
56 #include <vtkActorCollection.h>
57 #include <vtkImageViewer2.h>
59 #include <vtkActor2D.h>
60 #include <vtkCallbackCommand.h>
61 #include <vtkRenderer.h>
62 #include <vtkCommand.h>
63 #include <vtkCamera.h>
64 #include <vtkCollectionIterator.h>
65 #include <vtkCoordinate.h>
66 #include <vtkInteractorStyleImage.h>
67 #include <vtkInteractorObserver.h>
68 #include <vtkImageMapToWindowLevelColors.h>
69 #include <vtkCornerAnnotation.h>
70 #include <vtkPolyDataMapper2D.h>
71 #include <vtkPolyData.h>
72 #include <vtkCubeSource.h>
73 #include <vtkObjectFactory.h>
74 #include <vtkProperty2D.h>
75 #include <vtkTextActor.h>
76 #include <vtkTextProperty.h>
77 #include <vtkAxesActor.h>
78 #include <vtkPointPicker.h>
92 class svkSpectraReferenceView;
117 virtual void SetInput(
svkImageData* data,
int index = 0 );
118 virtual void SetSlice(
int slice );
119 virtual void SetSlice(
int slice,
bool centerImage );
122 virtual void SetRWInteractor(vtkRenderWindowInteractor*);
123 virtual void TurnPropOn(
int propIndex );
124 virtual void TurnPropOff(
int propIndex );
125 virtual int* GetTlcBrc();
126 virtual void SetTlcBrc(
int* tlcBrc );
127 void SetOverlayOpacity(
double opacity);
128 void SetOverlayThreshold(
double threshold);
129 double GetOverlayThreshold();
130 double GetOverlayThresholdValue();
131 int GetCurrentStyle();
132 void SetCurrentStyle(
int style );
133 void UseWindowLevelStyle();
134 void UseColorOverlayStyle();
135 void UseSelectionStyle();
136 void UseRotationStyle();
137 void ResetWindowLevel();
138 void HighlightSelectionVoxels();
140 string GetDataCompatibility(
svkImageData* data,
int targetIndex );
141 void SetInterpolationType(
int interpolationType);
143 void TurnOrthogonalImagesOn();
144 void TurnOrthogonalImagesOff();
145 bool IsImageInsideSpectra();
186 double initialColorWindowLevel[2];
196 static void UpdateCursorLocation( vtkObject* subject,
unsigned long eid,
void* thisObject,
void *calldata);
197 static void UpdateInteractor( vtkObject* subject,
unsigned long eid,
void* thisObject,
void *calldata);
198 static void UpdateSelection( vtkObject* subject,
unsigned long eid,
void* thisObject,
void *calldata);
199 static void ColorWindowLevel( vtkObject* subject,
unsigned long eid,
void* thisObject,
void *calldata);
206 #endif //SVK_OVERLAY_VIEW_CONTROLLER_H
vtkRenderWindow * myRenderWindow
the views render window
Definition: svkSpectraReferenceViewController.h:163
vtkInteractorObserver * colorOverlayStyle
interactor style for window leveling
Definition: svkSpectraReferenceViewController.h:179
vtkInteractorObserver * rotationStyle
interactor style for 3D rotation
Definition: svkSpectraReferenceViewController.h:181
Definition: svkSpectraReferenceViewController.h:114
bool visualizationCreated
enum represents data indicies
Definition: svkSpectraReferenceViewController.h:161
InteractorStyle
Definition: svkSpectraReferenceViewController.h:114
vtkInteractorObserver * windowLevelStyle
interactor style for window leveling
Definition: svkSpectraReferenceViewController.h:177
DataInputs
enum represents data indicies
Definition: svkSpectraReferenceViewController.h:152
double startOpacity
Definition: svkSpectraReferenceViewController.h:188
vtkCallbackCommand * colorOverlayCB
callback that responds to left click to highlight voxels
Definition: svkSpectraReferenceViewController.h:169
vtkActor * scanBoundryActor
actor that represents the scan boundry
Definition: svkSpectraReferenceViewController.h:185
svkOverlaySelector * dragSelectStyle
interactor style for selecting voxels
Definition: svkSpectraReferenceViewController.h:183
int currentInteractorStyle
Definition: svkSpectraReferenceViewController.h:189
svkLookupTableType
Definition: svkLookupTable.h:63
Definition: svkDataViewController.h:72
vtkCallbackCommand * interactorSwitchCB
Definition: svkSpectraReferenceViewController.h:170
vtkCallbackCommand * cursorLocationCB
callback that responds to mouse movements to update cursor location display
Definition: svkSpectraReferenceViewController.h:165
Definition: svkSpectraReferenceViewController.h:101
Definition: svkOverlaySelector.h:70
vtkRenderer * mouseLocRenderer
the renderer used to display the mouse location
Definition: svkSpectraReferenceViewController.h:175
vtkTextActor * mousePositionText
the actor that represents the mouse location
Definition: svkSpectraReferenceViewController.h:173
Definition: svkImageData.h:107
vtkCallbackCommand * dragSelectionCB
callback that responds to left click to highlight voxels
Definition: svkSpectraReferenceViewController.h:167