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;
32 void StartPlaceMode(
bool persistent=
false);
35 void StopPlaceMode(
bool persistent=
false);
38 void AddAnnotationNode(
const char * nodeDescriptor,
bool persistent=
false);
44 void CancelCurrentOrRemoveLastAddedAnnotationNode();
56 bool IsAnnotationNode(const
char*
id);
58 bool IsAnnotationHierarchyNode(const
char*
id);
74 const
char * GetAnnotationName(const
char *
id);
77 vtkStdString GetAnnotationText(const
char*
id);
79 void SetAnnotationText(const
char*
id, const
char * newtext);
82 double GetAnnotationTextScale(const
char*
id);
84 void SetAnnotationTextScale(const
char*
id,
double textScale);
87 double * GetAnnotationTextSelectedColor(const
char*
id);
89 void SetAnnotationTextSelectedColor(const
char*
id,
double * color);
92 double * GetAnnotationTextUnselectedColor(const
char*
id);
94 void SetAnnotationTextUnselectedColor(const
char*
id,
double * color);
97 double * GetAnnotationColor(const
char *
id);
99 void SetAnnotationColor(const
char *
id,
double *color);
102 double * GetAnnotationUnselectedColor(const
char *
id);
104 void SetAnnotationUnselectedColor(const
char *
id,
double *color);
107 double * GetAnnotationPointColor(const
char *
id);
109 void SetAnnotationPointColor(const
char *
id,
double *color);
112 double * GetAnnotationPointUnselectedColor(const
char *
id);
114 void SetAnnotationPointUnselectedColor(const
char *
id,
double *color);
118 const
char * GetAnnotationPointGlyphTypeAsString(const
char *
id);
120 int GetAnnotationPointGlyphType(const
char *
id);
122 void SetAnnotationPointGlyphTypeFromString(const
char *
id, const
char *glyphType);
124 void SetAnnotationPointGlyphType(const
char *
id,
int glyphType);
127 double * GetAnnotationLineColor(const
char *
id);
129 void SetAnnotationLineColor(const
char *
id,
double *color);
132 double * GetAnnotationLineUnselectedColor(const
char *
id);
134 void SetAnnotationLineUnselectedColor(const
char *
id,
double *color);
138 const
char * GetAnnotationMeasurement(const
char *
id,
bool showUnits);
141 const
char * GetAnnotationIcon(const
char *
id);
142 const
char * GetAnnotationIcon(
vtkMRMLNode* mrmlNode);
145 int GetAnnotationLockedUnlocked(const
char *
id);
147 void SetAnnotationLockedUnlocked(const
char *
id);
150 int GetAnnotationVisibility(const
char *
id);
152 void SetAnnotationVisibility(const
char *
id);
155 void SetAnnotationSelected(const
char *
id,
bool selected);
157 void SetAllAnnotationsSelected(
bool selected);
160 void BackupAnnotationNode(const
char *
id);
162 void RestoreAnnotationNode(const
char *
id);
164 void DeleteBackupNodes(const
char *
id);
167 void JumpSlicesToAnnotationCoordinate(const
char*
id);
169 const
char * MoveAnnotationUp(const
char*
id);
170 const
char * MoveAnnotationDown(const
char*
id);
176 void CreateSnapShot(const
char* name, const
char* description,
int screenshotType,
double scaleFactor, vtkImageData* screenshot);
179 void ModifySnapShot(vtkStdString
id, const
char* name, const
char* description,
int screenshotType,
double scaleFactor, vtkImageData* screenshot);
182 vtkStdString GetSnapShotName(const
char*
id);
185 vtkStdString GetSnapShotDescription(const
char*
id);
188 int GetSnapShotScreenshotType(const
char*
id);
191 double GetSnapShotScaleFactor(const
char*
id);
194 vtkImageData* GetSnapShotScreenshot(const
char*
id);
197 bool IsSnapshotNode(const
char*
id);
213 char * GetTopLevelHierarchyNodeID(
vtkMRMLNode* node=0);
222 vtkGetStringMacro(ActiveHierarchyNodeID);
223 vtkSetStringMacro(ActiveHierarchyNodeID);
249 char *LoadFiducialList(const
char *filename);
254 char *LoadAnnotation(const
char *filename, const
char *name,
int fileType);
268 char *AddFiducial(
double r=0.0,
double a=0.0,
double s=0.0,
const char *label=NULL);
281 virtual
void OnMRMLSceneNodeAdded(
vtkMRMLNode* node) VTK_OVERRIDE;
282 virtual
void OnMRMLSceneEndClose() VTK_OVERRIDE;
283 virtual
void ProcessMRMLNodesEvents(vtkObject *caller,
285 void *callData ) VTK_OVERRIDE;
286 virtual
void OnMRMLAnnotationNodeModifiedEvent(
vtkMRMLNode* node);
294 std::
string m_StringHolder;
296 char* m_MeasurementFormat;
297 char* m_CoordinateFormat;
300 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.