15 #ifndef __vtkMRMLFiducialListNode_h 16 #define __vtkMRMLFiducialListNode_h 54 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
63 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
66 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
73 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "FiducialList";}
83 void SetSymbolScale(
double scale);
84 vtkGetMacro(SymbolScale,
double);
89 void SetVisibility(
int visible);
90 vtkGetMacro(Visibility,
int);
94 void SetTextScale(
double scale);
95 vtkGetMacro(TextScale,
double);
99 void SetColor(
double r,
double g,
double b);
100 void SetColor(
double c[3]);
101 vtkGetVectorMacro(Color,
double,3);
104 void SetSelectedColor(
double r,
double g,
double b);
105 void SetSelectedColor(
double c[3]);
106 vtkGetVectorMacro(SelectedColor,
double,3);
110 int GetNumberOfFiducials();
114 int SetNthFiducialXYZ(
int n,
float x,
float y,
float z);
115 int SetNthFiducialOrientation(
int n,
float w,
float x,
float y,
float z);
116 int SetNthFiducialLabelText(
int n, const
char *text);
117 int SetNthFiducialSelected(
int n,
int flag);
118 int SetNthFiducialSelectedNoModified(
int n,
int flag);
119 int SetNthFiducialVisibility(
int n,
int flag);
120 int SetNthFiducialVisibilityNoModified(
int n,
int flag);
121 int SetNthFiducialID(
int n, const
char *
id);
126 int SetNthFiducialXYZWorld(
int n,
float x,
float y,
float z);
130 int SetFiducialXYZ(
std::
string fiducialID,
float x,
float y,
float z);
134 int GetFiducialIndex(
std::
string fiducialID);
137 int SetAllFiducialsSelected(
int flag);
140 int SetAllFiducialsVisibility(
int flag);
144 float *GetNthFiducialXYZ(
int n);
150 int GetNthFiducialXYZWorld(
int n,
double *worldxyz);
152 float *GetNthFiducialOrientation(
int n);
154 const
char *GetNthFiducialLabelText(
int n);
156 int GetNthFiducialSelected(
int n);
158 int GetNthFiducialVisibility(
int n);
160 const
char *GetNthFiducialID(
int n);
166 int AddFiducialWithXYZ(
float x,
float y,
float z,
int selected);
168 int AddFiducialWithLabelXYZSelectedVisibility(const
char *label,
float x,
float y,
float z,
int selected,
int visibility);
173 void RemoveFiducial(
int i);
175 void RemoveAllFiducials();
180 void ProcessMRMLEvents ( vtkObject *caller,
unsigned long event,
void *callData ) VTK_OVERRIDE;
186 DisplayModifiedEvent = 19000,
187 PolyDataModifiedEvent = 19001,
188 FiducialModifiedEvent = 19002,
189 FiducialIndexModifiedEvent = 19003
193 void SetOpacity(
double opacity);
194 vtkGetMacro(Opacity,
double);
197 void SetAmbient(
double val);
198 vtkGetMacro(Ambient,
double);
201 void SetDiffuse(
double val);
202 vtkGetMacro(Diffuse,
double);
205 void SetSpecular(
double val);
206 vtkGetMacro(Specular,
double);
209 void SetPower(
double val);
210 vtkGetMacro(Power,
double);
213 void SetLocked(
int locked);
214 vtkGetMacro(Locked,
int);
243 void SetGlyphType(
int type);
244 vtkGetMacro(GlyphType,
int);
246 int GlyphTypeIs3D(
int glyphType);
250 const char* GetGlyphTypeAsString();
251 const char* GetGlyphTypeAsString(
int g);
252 void SetGlyphTypeFromString(
const char *glyphString);
256 virtual
void ApplyTransform(vtkAbstractTransform* transform) VTK_OVERRIDE;
264 int MoveFiducialUp(
int fidIndex);
265 int MoveFiducialDown(
int fidIndex);
270 void RenumberFiducials(
int startFrom = 0);
274 void RenameFiducials(const
char *newName);
283 SchemeMax = UsePrevious
287 vtkSetMacro(NumberingScheme,
int);
288 vtkGetMacro(NumberingScheme,
int);
291 const char* GetNumberingSchemeAsString();
292 const char* GetNumberingSchemeAsString(
int g);
293 void SetNumberingSchemeFromString(
const char *schemeString);
318 double SelectedColor[3];
MRML node for handling fiducial list storage.
int GetMinimumGlyphType()
Return the min/max glyph types, for iterating over them in tcl.
NumberingSchemes
Flags to determine how the next fiducial added to the list is labelled.
MRML node to represent a list of points in 3D.
virtual void UpdateReferences()
The method should remove all pointers and observations to all nodes that are not in the scene anymore...
double Opacity
Numbers relating to the display of the fiducials.
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.
MRML object to represent a 3D point.
int GetMaximumGlyphType()
vtkCollection * FiducialList
The collection of fiducial points that make up this list.
Abstract Superclass for all specific types of MRML nodes.
virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data
int NumberingScheme
How the next added fiducial will be numbered in it's LabelText field.