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);
127 bool UpdateWindowLevelFromRectangle(
int layer,
int cornerPoint1[2],
int cornerPoint2[2]);
131 static const char* GetAdjustWindowLevelModeAsString(
int id);
132 static int GetAdjustWindowLevelModeFromString(
const char* name);
156 bool SetVolumeWindowLevel(
double window,
double level,
bool isAutoWindowLevel);
159 vtkGetMacro(CenteredRubberBand,
bool);
160 vtkSetMacro(CenteredRubberBand,
bool);
161 vtkBooleanMacro(CenteredRubberBand,
bool);
163 vtkWeakPointer<vtkMRMLSliceNode>
SliceNode;
168 int StartEventPosition[2];
169 int PreviousEventPosition[2];
171 double VolumeScalarRange[2];
175 double StartVolumeWindowLevel[2];
176 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.