42 #ifndef SVK_OVERLAY_VIEW_H
43 #define SVK_OVERLAY_VIEW_H
46 #include <vtkImageViewer2.h>
47 #include <vtkRenderWindow.h>
48 #include <vtkRenderWindowInteractor.h>
49 #include <vtkRenderer.h>
50 #include <vtkCamera.h>
51 #include <vtkImageMapToWindowLevelColors.h>
52 #include <vtkProp3DCollection.h>
53 #include <vtkAreaPicker.h>
54 #include <vtkImageActor.h>
55 #include <vtkObjectFactory.h>
56 #include <vtkExtractEdges.h>
57 #include <vtkCellData.h>
58 #include <vtkPointData.h>
60 #include <vtkColorTransferFunction.h>
61 #include <vtkLookupTable.h>
62 #include <vtkScalarBarActor.h>
80 #define CLIP_TOLERANCE 0.001
82 class svkDataViewController;
83 class svkSpectraReferenceViewController;
210 void SetSelection(
double* selectionArea,
bool isWorldCords = 0 );
231 void SetSliceOverlay();
234 double overlayOpacity;
235 double overlayThreshold;
254 #endif //SVK_OVERLAY_VIEW_H
bool imageInsideSpectra
Definition: svkSpectraReferenceView.h:195
double GetOverlayThreshold()
Definition: svkSpectraReferenceView.cc:849
Definition: svkSpectraReferenceView.h:143
void ToggleSelBoxVisibilityOn()
Definition: svkSpectraReferenceView.cc:1686
void TurnOrthogonalImagesOn()
Definition: svkSpectraReferenceView.cc:1444
void ToggleSelBoxVisibilityOff()
Definition: svkSpectraReferenceView.cc:1707
Definition: svkImageMapToColors.h:66
Definition: svkSpectraReferenceView.h:134
Definition: svkSpectraReferenceView.h:164
Definition: svkImageViewer2.h:71
void SetComponent(svkPlotLine::PlotComponent component)
Definition: svkSpectraReferenceView.cc:778
Definition: svkSpectraReferenceView.h:149
svkLookupTable * GetLookupTable()
Definition: svkSpectraReferenceView.cc:1299
void SetupMsInput(bool firstInput)
Definition: svkSpectraReferenceView.cc:220
Definition: svkDataView.h:73
svkImageViewer2 * imageViewer
the vtkImageViewer2 object used to display the image
Definition: svkSpectraReferenceView.h:189
Definition: svkSpectraReferenceView.h:163
Definition: svkSpectraReferenceView.h:147
int FindCenterImageSlice(int spectraSlice, svkDcmHeader::Orientation orientation)
Definition: svkSpectraReferenceView.cc:576
void TurnOrthogonalImagesOff()
Definition: svkSpectraReferenceView.cc:1453
virtual void SetSlice(int slice)
Definition: svkSpectraReferenceView.cc:442
~svkSpectraReferenceView()
Definition: svkSpectraReferenceView.cc:161
svkPlotLineGrid * plotGrid
Represents the plotted lines of the grid.
Definition: svkSpectraReferenceView.h:186
bool IsImageInsideSpectra()
Definition: svkSpectraReferenceView.cc:1752
svkDcmHeader::Orientation orientation
Definition: svkDataView.h:162
svkImageMapToColors * windowLevelerAxial
Object used to window livel the overlay.
Definition: svkSpectraReferenceView.h:198
bool AreAllSatBandsOn(svkDcmHeader::Orientation orientation)
Definition: svkSpectraReferenceView.cc:1613
void SetOverlayOpacity(double opacity)
Definition: svkSpectraReferenceView.cc:808
Definition: svkSatBandSet.h:71
Definition: svkSpectraReferenceView.h:153
void UpdateImageSlice(bool centerImage)
Definition: svkSpectraReferenceView.cc:608
Definition: svkPlotLineGrid.h:84
void SetInterpolationType(int interpolationType)
Definition: svkSpectraReferenceView.cc:1268
virtual void GetWindowLevelRange(double &lower, double &upper, int index)
Definition: svkSpectraReferenceView.cc:759
Definition: svkSpectraReferenceView.h:150
Definition: svkSpectraReferenceView.h:93
string GetDataCompatibility(svkImageData *data, int targetIndex)
Definition: svkSpectraReferenceView.cc:1356
Definition: svkSpectraReferenceView.h:158
double GetOverlayOpacity()
Definition: svkSpectraReferenceView.cc:824
void ResetWindowLevel()
Resets the window level, source taken from vtkImageViewer2.
Definition: svkSpectraReferenceView.cc:1425
void SetSelection(double *selectionArea, bool isWorldCords=0)
Definition: svkSpectraReferenceView.cc:671
Definition: svkSpectraReferenceView.h:151
Definition: svkSpectraReferenceView.h:142
Definition: svkSpectraReferenceView.h:146
virtual void SetRWInteractor(vtkRenderWindowInteractor *)
Definition: svkSpectraReferenceView.cc:647
Definition: svkSpectraReferenceView.h:154
Definition: svkSpectraReferenceView.h:178
int FindSpectraSlice(int imageSlice, svkDcmHeader::Orientation orientation)
Definition: svkSpectraReferenceView.cc:592
WindowLevelRanges
Enum represents different color schemes. Used for printing.
Definition: svkSpectraReferenceView.h:126
vtkRenderWindow * myRenderWindow
the render window in which the view is to be displayed
Definition: svkSpectraReferenceView.h:192
static svkSpectraReferenceView * New()
PropType
Enum represents objects in the scene.
Definition: svkSpectraReferenceView.h:140
enum svk::svkSpectraReferenceView::@10 ColorSchema
Enum represents color schema, used for printing.
void SetTlcBrc(int *tlcBrc)
Definition: svkSpectraReferenceView.cc:724
int slice
Definition: svkDataView.h:166
svkLookupTableType
Definition: svkLookupTable.h:63
vtkTypeMacro(svkSpectraReferenceView, svkDataView)
int * HighlightSelectionVoxels()
Definition: svkSpectraReferenceView.cc:790
Definition: svkSpectraReferenceView.h:157
Definition: svkSpectraReferenceView.h:127
bool IsSatBandForSliceOn(svkDcmHeader::Orientation orientation)
Definition: svkSpectraReferenceView.cc:1559
bool toggleSelBoxVisibility
Definition: svkSpectraReferenceView.h:194
Definition: svkSpectraReferenceView.h:170
Definition: svkSpectraReferenceView.h:136
void SetOrientation(svkDcmHeader::Orientation orientation)
Definition: svkSpectraReferenceView.cc:1462
Definition: svkSpectraReferenceView.h:145
Definition: svkSpectraReferenceView.h:177
void GenerateClippingPlanes()
Definition: svkSpectraReferenceView.cc:860
Definition: svkSpectraReferenceView.h:165
Definition: svkSpectraReferenceView.h:144
void AlignCamera()
Definition: svkSpectraReferenceView.cc:1721
virtual void SetWindowLevelRange(double lower, double upper, int index)
Definition: svkSpectraReferenceView.cc:745
Definition: svkSpectraReferenceView.h:148
Definition: svkSpectraReferenceView.h:141
PlotComponent
Definition: svkPlotLine.h:68
Definition: svkSpectraReferenceView.h:156
Definition: svkSpectraReferenceView.h:135
svkLookupTable * colorTransfer
Definition: svkSpectraReferenceView.h:203
svkImageMapToColors * windowLevelerSagittal
Definition: svkSpectraReferenceView.h:200
Definition: svkSpectraReferenceViewController.h:101
void SetupMrInput(bool firstInput)
Definition: svkSpectraReferenceView.cc:327
virtual void SetInput(svkImageData *data, int index=0)
Definition: svkSpectraReferenceView.cc:403
Definition: svkImageData.h:107
bool IsSatBandOutlineForSliceOn(svkDcmHeader::Orientation orientation)
Definition: svkSpectraReferenceView.cc:1586
InterpolationType
Enum represents interpolation methods for the overlay.
Definition: svkSpectraReferenceView.h:162
RendererType
Enum represents renderers in the window.
Definition: svkSpectraReferenceView.h:169
void SetOverlayThreshold(double threshold)
Definition: svkSpectraReferenceView.cc:835
void SetupOverlay()
Definition: svkSpectraReferenceView.cc:1085
Definition: svkSpectraReferenceView.h:155
Definition: svkSpectraReferenceView.h:172
bool AreAllSatBandOutlinesOn(svkDcmHeader::Orientation orientation)
Definition: svkSpectraReferenceView.cc:1649
void SetLUT(svkLookupTable::svkLookupTableType type)
Definition: svkSpectraReferenceView.cc:1310
DataInputs
Enum represents input indecies.
Definition: svkSpectraReferenceView.h:133
Definition: svkSpectraReferenceView.h:171
Definition: svkSpectraReferenceView.h:128
Definition: svkSpectraReferenceView.h:152
int tlcBrc[2]
the top left, bottom right corners of the current view
Definition: svkDataView.h:165
Definition: svkLookupTable.h:58
svkSpectraReferenceView()
Definition: svkSpectraReferenceView.cc:57
svkImageMapToColors * windowLevelerCoronal
Definition: svkSpectraReferenceView.h:199