28 #ifndef vtkMRMLWindowLevelWidget_h 29 #define vtkMRMLWindowLevelWidget_h 31 #include "vtkMRMLDisplayableManagerExport.h" 36 #include <vtkCallbackCommand.h> 37 #include <vtkCollection.h> 38 #include <vtkSmartPointer.h> 39 #include <vtkWeakPointer.h> 41 class vtkSliceIntersectionRepresentation2D;
67 void PrintSelf(ostream& os, vtkIndent indent)
override;
73 void CreateDefaultRepresentation();
80 vtkGetMacro(BackgroundVolumeEditable,
bool);
81 vtkSetMacro(BackgroundVolumeEditable,
bool);
82 vtkBooleanMacro(BackgroundVolumeEditable,
bool);
84 vtkGetMacro(ForegroundVolumeEditable,
bool);
85 vtkSetMacro(ForegroundVolumeEditable,
bool);
86 vtkBooleanMacro(ForegroundVolumeEditable,
bool);
120 bool UpdateWindowLevelFromRectangle(
int layer,
int cornerPoint1[2],
int cornerPoint2[2]);
124 static const char* GetAdjustWindowLevelModeAsString(
int id);
125 static int GetAdjustWindowLevelModeFromString(
const char* name);
153 bool VolumeWindowLevelEditable(
const char* volumeNodeID);
157 bool SetVolumeWindowLevel(
double window,
double level,
bool isAutoWindowLevel);
160 vtkGetMacro(CenteredRubberBand,
bool);
161 vtkSetMacro(CenteredRubberBand,
bool);
162 vtkBooleanMacro(CenteredRubberBand,
bool);
164 vtkWeakPointer<vtkMRMLSliceNode>
SliceNode;
169 int StartEventPosition[2];
170 int PreviousEventPosition[2];
172 double VolumeScalarRange[2];
176 double StartVolumeWindowLevel[2];
177 double LastVolumeWindowLevel[2];
MRML node for storing a slice through RAS space.
MRML node for representing segmentation display attributes.
MRML node for representing a volume (image stack).
Slicer logic class for slice manipulation.