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>
63 #include <vtkImageGaussianSmooth.h>
64 #include <vtkCleanPolyData.h>
81 #define SINC_MAX_EXTENT 512
86 class svkDataViewController;
87 class svkOverlayViewController;
226 void SetSelection(
double* selectionArea,
bool isWorldCords = 0 );
249 void SetSliceOverlay();
255 double overlayOpacity;
256 double overlayThreshold;
276 #endif //SVK_OVERLAY_VIEW_H
Definition: svkOverlayView.h:146
virtual void SetInput(svkImageData *data, int index=0)
Definition: svkOverlayView.cc:397
svkSincInterpolationFilter * sincInterpolation
Definition: svkOverlayView.h:214
InterpolationType
Enum represents interpolation methods for the overlay.
Definition: svkOverlayView.h:172
void SetLUT(svkLookupTable::svkLookupTableType type)
Definition: svkOverlayView.cc:1589
void GenerateClippingPlanes()
Definition: svkOverlayView.cc:1032
double GetOverlayThreshold()
Definition: svkOverlayView.cc:939
DataInputs
Enum represents input indecies.
Definition: svkOverlayView.h:144
Definition: svkOverlayView.h:154
static svkOverlayView * New()
Definition: svkImageMapToColors.h:66
double GetWindow()
Definition: svkOverlayView.cc:973
vtkRenderWindow * myRenderWindow
the render window in which the view is to be displayed
Definition: svkOverlayView.h:201
void SetLevel(double level)
Definition: svkOverlayView.cc:946
Definition: svkOverlayView.h:158
void SetColorOverlayWindow(double window)
Definition: svkOverlayView.cc:992
Definition: svkImageViewer2.h:71
void SetupOverlay()
Definition: svkOverlayView.cc:1246
Definition: svkOverlayView.h:156
double GetOverlayOpacity()
Definition: svkOverlayView.cc:914
bool AreAllSatBandOutlinesOn(svkDcmHeader::Orientation orientation)
Definition: svkOverlayView.cc:2210
svkMriImageData * interpOverlay
Definition: svkOverlayView.h:217
Definition: svkOverlayView.h:159
Definition: svkDataView.h:73
svkImageMapToColors * windowLevelerAxial
Object used to window livel the overlay.
Definition: svkOverlayView.h:208
int FindSpectraSlice(int imageSlice, svkDcmHeader::Orientation orientation)
Definition: svkOverlayView.cc:676
bool imageInsideSpectra
Definition: svkOverlayView.h:205
virtual void SetRWInteractor(vtkRenderWindowInteractor *)
Definition: svkOverlayView.cc:767
void SetWindow(double window)
Definition: svkOverlayView.cc:956
Definition: svkOverlayView.h:175
virtual void RemoveInput(int index)
Definition: svkOverlayView.cc:478
Definition: svkOverlayView.h:145
Definition: svkOverlayView.h:97
void ToggleSelBoxVisibilityOff()
Definition: svkOverlayView.cc:2269
svkDcmHeader::Orientation orientation
Definition: svkDataView.h:162
void ResetWindowLevel()
Resets the window level, source taken from vtkImageViewer2.
Definition: svkOverlayView.cc:1895
void UpdateSincInterpolation()
Definition: svkOverlayView.cc:1514
int FindCenterImageSlice(int spectraSlice, svkDcmHeader::Orientation orientation)
Definition: svkOverlayView.cc:658
Definition: svkOverlayView.h:152
vtkTypeMacro(svkOverlayView, svkDataView)
svkImageMapToColors * windowLevelerSagittal
Definition: svkOverlayView.h:210
Definition: svkSatBandSet.h:71
enum svk::svkOverlayView::@9 ColorSchema
Enum represents color schema, used for printing.
Definition: svkSincInterpolationFilter.h:82
double GetColorOverlayWindow()
Definition: svkOverlayView.cc:1017
#define CLIP_TOLERANCE
Definition: svkSpectraReferenceView.h:80
svkLookupTable * GetLookupTable()
Definition: svkOverlayView.cc:1578
void SetInterpolationType(int interpolationType)
Definition: svkOverlayView.cc:1474
Definition: svkOverlayView.h:190
PropType
Enum represents objects in the scene.
Definition: svkOverlayView.h:151
Definition: svkOverlayView.h:153
void TurnOrthogonalImagesOff()
Definition: svkOverlayView.cc:1962
Definition: svkOverlayView.h:166
bool AreOrthogonalImagesOn()
Definition: svkOverlayView.cc:2017
int FindOverlaySlice(int slice, svkDcmHeader::Orientation orientation)
Definition: svkOverlayView.cc:699
Definition: svkOverlayView.h:157
Definition: svkOverlayView.h:168
bool CheckDataOrientations()
Definition: svkOverlayView.cc:1868
bool IsImageInsideSpectra()
Definition: svkOverlayView.cc:2330
void SetCameraZoom(double zoom)
Definition: svkOverlayView.cc:2320
double GetColorOverlayLevel()
Definition: svkOverlayView.cc:1005
Definition: svkOverlayView.h:162
int slice
Definition: svkDataView.h:166
Definition: svkOverlayView.h:182
svkLookupTableType
Definition: svkLookupTable.h:63
Definition: svkOverlayView.h:164
void SetTlcBrc(int *tlcBrc)
Definition: svkOverlayView.cc:852
virtual void SetInputPostReslice(svkImageData *data, int index)
Definition: svkOverlayView.cc:442
virtual void SetSlice(int slice)
Definition: svkOverlayView.cc:492
RendererType
Enum represents renderers in the window.
Definition: svkOverlayView.h:179
Definition: svkOverlayView.h:165
bool IsSatBandOutlineForSliceOn(svkDcmHeader::Orientation orientation)
Definition: svkOverlayView.cc:2147
Definition: svkOverlayView.h:189
void SetupMsInput(bool firstInput)
Definition: svkOverlayView.cc:225
void SetOverlayOpacity(double opacity)
Definition: svkOverlayView.cc:898
Definition: svkOverlayView.h:147
Definition: svkOverlayView.h:167
string GetDataCompatibility(svkImageData *data, int targetIndex)
Definition: svkOverlayView.cc:1634
void SetOrientation(svkDcmHeader::Orientation orientation)
Definition: svkOverlayView.cc:2025
Definition: svkOverlayView.h:173
Definition: svkOverlayView.h:163
void ToggleSelBoxVisibilityOn()
Definition: svkOverlayView.cc:2247
Definition: svkOverlayView.h:174
svkImageMapToColors * windowLevelerCoronal
Definition: svkOverlayView.h:209
void UpdateImageSlice(bool centerImage)
Definition: svkOverlayView.cc:723
Definition: svkOverlayView.h:155
void TurnOrthogonalImagesOn()
Definition: svkOverlayView.cc:1926
double GetLevel()
Definition: svkOverlayView.cc:966
Definition: svkOverlayView.h:160
Definition: svkOverlayViewController.h:101
virtual void SetActiveImageVolume(int volume)
Definition: svkOverlayView.cc:630
Definition: svkMriImageData.h:72
bool IsSatBandForSliceOn(svkDcmHeader::Orientation orientation)
Definition: svkOverlayView.cc:2120
Definition: svkOverlayView.h:180
Definition: svkImageData.h:107
virtual void SetActiveOverlayVolume(int volume)
Definition: svkOverlayView.cc:641
void SetColorOverlayLevel(double level)
Definition: svkOverlayView.cc:980
void SetOverlayThreshold(double threshold)
Definition: svkOverlayView.cc:925
bool AreAllSatBandsOn(svkDcmHeader::Orientation orientation)
Definition: svkOverlayView.cc:2174
void SetSelection(double *selectionArea, bool isWorldCords=0)
Definition: svkOverlayView.cc:789
svkOverlayView()
Definition: svkOverlayView.cc:59
Definition: svkOverlayView.h:161
bool toggleSelBoxVisibility
Definition: svkOverlayView.h:204
~svkOverlayView()
Definition: svkOverlayView.cc:163
svkLookupTable * colorTransfer
Definition: svkOverlayView.h:220
int tlcBrc[2]
the top left, bottom right corners of the current view
Definition: svkDataView.h:165
void SetupMrInput(bool firstInput)
Definition: svkOverlayView.cc:317
Definition: svkLookupTable.h:58
Definition: svkOverlayView.h:181
void AlignCamera()
Definition: svkOverlayView.cc:2283
int * HighlightSelectionVoxels()
Definition: svkOverlayView.cc:867
svkImageViewer2 * imageViewer
the vtkImageViewer2 object used to display the image
Definition: svkOverlayView.h:198