24 #ifndef __vtkSlicerMarkupsLogic_h 25 #define __vtkSlicerMarkupsLogic_h 35 #include "vtkSlicerMarkupsModuleLogicExport.h" 48 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
52 void *callData ) VTK_OVERRIDE;
58 std::string GetSelectionNodeID();
63 std::string GetActiveListID();
76 std::string AddNewDisplayNodeForMarkupsNode(
vtkMRMLNode *mrmlNode);
83 std::string AddNewFiducialNode(
const char *name =
"F",
vtkMRMLScene *scene = NULL);
89 int AddFiducial(
double r=0.0,
double a=0.0,
double s=0.0);
94 void JumpSlicesToLocation(
double x,
double y,
double z,
bool centered,
int viewGroup = -1);
97 void JumpSlicesToNthPointInMarkup(
const char *
id,
int n,
bool centered =
false,
int viewGroup = -1);
100 void FocusCamerasOnNthPointInMarkup(
const char *
id,
int n);
104 void FocusCameraOnNthPointInMarkup(
const char *cameraNodeID,
const char *markupNodeID,
int n);
109 char *LoadMarkupsFiducials(
const char *fileName,
const char *fidsName);
120 int GetDefaultMarkupsDisplayNodeGlyphType();
121 void SetDefaultMarkupsDisplayNodeGlyphType(
int glyphType);
122 void SetDefaultMarkupsDisplayNodeGlyphTypeFromString(
const char *glyphType);
123 std::string GetDefaultMarkupsDisplayNodeGlyphTypeAsString();
125 double GetDefaultMarkupsDisplayNodeGlyphScale();
126 void SetDefaultMarkupsDisplayNodeGlyphScale(
double scale);
128 double GetDefaultMarkupsDisplayNodeTextScale();
129 void SetDefaultMarkupsDisplayNodeTextScale(
double scale);
131 double GetDefaultMarkupsDisplayNodeOpacity();
132 void SetDefaultMarkupsDisplayNodeOpacity(
double opacity);
134 double *GetDefaultMarkupsDisplayNodeColor();
135 void SetDefaultMarkupsDisplayNodeColor(
double *color);
136 void SetDefaultMarkupsDisplayNodeColor(
double r,
double g,
double b);
138 double *GetDefaultMarkupsDisplayNodeSelectedColor();
139 void SetDefaultMarkupsDisplayNodeSelectedColor(
double *color);
140 void SetDefaultMarkupsDisplayNodeSelectedColor(
double r,
double g,
double b);
142 int GetDefaultMarkupsDisplayNodeSliceProjection();
143 void SetDefaultMarkupsDisplayNodeSliceProjection(
int projection);
145 double *GetDefaultMarkupsDisplayNodeSliceProjectionColor();
146 void SetDefaultMarkupsDisplayNodeSliceProjectionColor(
double *color);
147 void SetDefaultMarkupsDisplayNodeSliceProjectionColor(
double r,
double g,
double b);
149 double GetDefaultMarkupsDisplayNodeSliceProjectionOpacity();
150 void SetDefaultMarkupsDisplayNodeSliceProjectionOpacity(
double opacity);
177 void ConvertAnnotationFiducialsToMarkups();
189 bool StartPlaceMode(
bool persistent);
194 int GetSliceIntersectionsVisibility();
197 void SetSliceIntersectionsVisibility(
bool flag);
208 virtual
void RegisterNodes() VTK_OVERRIDE;
209 virtual
void UpdateFromMRMLScene() VTK_OVERRIDE;
210 virtual
void OnMRMLSceneNodeAdded(
vtkMRMLNode* node) VTK_OVERRIDE;
211 virtual
void OnMRMLSceneNodeRemoved(
vtkMRMLNode* node) VTK_OVERRIDE;
216 void operator=(const vtkSlicerMarkupsLogic&);
static vtkSlicerModuleLogic * New()
The Usual vtk class functions.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void ProcessMRMLNodesEvents(vtkObject *caller, unsigned long event, void *callData)
MRML node to represent a list of markups Markups nodes contains a list of markups that each contain a...
A set of MRML Nodes that supports serialization and undo/redo.
virtual void ObserveMRMLScene()
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
Abstract Superclass for all specific types of MRML nodes.