1 #ifndef __vtkSlicerAnnotationModuleLogic_h 2 #define __vtkSlicerAnnotationModuleLogic_h 5 #include "vtkSlicerAnnotationsModuleLogicExport.h" 24 RefreshRequestEvent = vtkCommand::UserEvent,
25 HierarchyNodeAddedEvent
29 virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 void AddAnnotationNode(
const char * nodeDescriptor,
bool persistent=
false);
59 bool IsAnnotationNode(const
char*
id);
61 bool IsAnnotationHierarchyNode(const
char*
id);
77 const
char * GetAnnotationName(const
char *
id);
80 vtkStdString GetAnnotationText(const
char*
id);
82 void SetAnnotationText(const
char*
id, const
char * newtext);
85 double GetAnnotationTextScale(const
char*
id);
87 void SetAnnotationTextScale(const
char*
id,
double textScale);
90 double * GetAnnotationTextSelectedColor(const
char*
id);
92 void SetAnnotationTextSelectedColor(const
char*
id,
double * color);
95 double * GetAnnotationTextUnselectedColor(const
char*
id);
97 void SetAnnotationTextUnselectedColor(const
char*
id,
double * color);
100 double * GetAnnotationColor(const
char *
id);
102 void SetAnnotationColor(const
char *
id,
double *color);
105 double * GetAnnotationUnselectedColor(const
char *
id);
107 void SetAnnotationUnselectedColor(const
char *
id,
double *color);
110 double * GetAnnotationPointColor(const
char *
id);
112 void SetAnnotationPointColor(const
char *
id,
double *color);
115 double * GetAnnotationPointUnselectedColor(const
char *
id);
117 void SetAnnotationPointUnselectedColor(const
char *
id,
double *color);
121 const
char * GetAnnotationPointGlyphTypeAsString(const
char *
id);
123 int GetAnnotationPointGlyphType(const
char *
id);
125 void SetAnnotationPointGlyphTypeFromString(const
char *
id, const
char *glyphType);
127 void SetAnnotationPointGlyphType(const
char *
id,
int glyphType);
130 double * GetAnnotationLineColor(const
char *
id);
132 void SetAnnotationLineColor(const
char *
id,
double *color);
135 double * GetAnnotationLineUnselectedColor(const
char *
id);
137 void SetAnnotationLineUnselectedColor(const
char *
id,
double *color);
141 const
char * GetAnnotationMeasurement(const
char *
id,
bool showUnits);
144 const
char * GetAnnotationIcon(const
char *
id);
145 const
char * GetAnnotationIcon(
vtkMRMLNode* mrmlNode);
148 int GetAnnotationLockedUnlocked(const
char *
id);
150 void SetAnnotationLockedUnlocked(const
char *
id);
153 int GetAnnotationVisibility(const
char *
id);
155 void SetAnnotationVisibility(const
char *
id);
158 void SetAnnotationSelected(const
char *
id,
bool selected);
160 void SetAllAnnotationsSelected(
bool selected);
163 void BackupAnnotationNode(const
char *
id);
165 void RestoreAnnotationNode(const
char *
id);
167 void DeleteBackupNodes(const
char *
id);
170 void JumpSlicesToAnnotationCoordinate(const
char*
id);
172 const
char * MoveAnnotationUp(const
char*
id);
173 const
char * MoveAnnotationDown(const
char*
id);
179 void CreateSnapShot(const
char* name, const
char* description,
int screenshotType,
double scaleFactor, vtkImageData* screenshot);
182 void ModifySnapShot(vtkStdString
id, const
char* name, const
char* description,
int screenshotType,
double scaleFactor, vtkImageData* screenshot);
185 vtkStdString GetSnapShotName(const
char*
id);
188 vtkStdString GetSnapShotDescription(const
char*
id);
191 int GetSnapShotScreenshotType(const
char*
id);
194 double GetSnapShotScaleFactor(const
char*
id);
197 vtkImageData* GetSnapShotScreenshot(const
char*
id);
200 bool IsSnapshotNode(const
char*
id);
216 char * GetTopLevelHierarchyNodeID(
vtkMRMLNode* node=0);
225 vtkGetStringMacro(ActiveHierarchyNodeID);
226 vtkSetStringMacro(ActiveHierarchyNodeID);
252 char *LoadFiducialList(const
char *filename);
257 char *LoadAnnotation(const
char *filename, const
char *name,
int fileType);
271 char *AddFiducial(
double r=0.0,
double a=0.0,
double s=0.0,
const char *label=NULL);
284 virtual
void OnMRMLSceneNodeAdded(
vtkMRMLNode* node) VTK_OVERRIDE;
285 virtual
void OnMRMLSceneEndClose() VTK_OVERRIDE;
286 virtual
void ProcessMRMLNodesEvents(vtkObject *caller,
288 void *callData ) VTK_OVERRIDE;
289 virtual
void OnMRMLAnnotationNodeModifiedEvent(
vtkMRMLNode* node);
295 std::
string m_StringHolder;
297 char* m_MeasurementFormat;
298 char* m_CoordinateFormat;
301 char *ActiveHierarchyNodeID;
static vtkSlicerModuleLogic * New()
The Usual vtk class functions.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
A set of MRML Nodes that supports serialization and undo/redo.
virtual void RegisterNodes()
virtual void ObserveMRMLScene()
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
Abstract Superclass for all specific types of MRML nodes.