Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLFiducial.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkMRMLFiducial.h,v $
10  Date: $Date: 2006/03/19 17:12:28 $
11  Version: $Revision: 1.6 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLFiducial_h
16 #define __vtkMRMLFiducial_h
17 
18 // MRML includes
19 #include "vtkMRML.h"
20 
21 // VTK includes
22 #include "vtkObject.h"
23 class vtkMatrix4x4;
24 
29 class VTK_MRML_EXPORT vtkMRMLFiducial : public vtkObject
30 {
31 public:
35  static vtkMRMLFiducial *New();
36  vtkTypeMacro(vtkMRMLFiducial,vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 
39  //--------------------------------------------------------------------------
41  //--------------------------------------------------------------------------
42 
45  virtual void ReadXMLAttributes( const char** atts);
46 
49  virtual void ReadXMLString(const char *keyValuePairs);
50 
53  virtual void WriteXML(ostream& of, int indent);
54 
57  virtual void Copy(vtkObject *node);
58 
61  vtkSetVector3Macro(XYZ,float);
62  vtkGetVectorMacro(XYZ,float,3);
63 
66  vtkSetVector4Macro(OrientationWXYZ,float);
67  vtkGetVectorMacro(OrientationWXYZ,float,4);
68  void SetOrientationWXYZFromMatrix4x4(vtkMatrix4x4 *mat);
69 
72  vtkSetStringMacro(LabelText);
73  vtkGetStringMacro(LabelText);
74 
77  vtkGetStringMacro(ID);
78  vtkSetStringMacro(ID);
79 
82  vtkGetMacro(Selected, bool);
83  vtkSetMacro(Selected, bool);
84 
87  vtkGetMacro(Visibility, bool);
88  vtkSetMacro(Visibility, bool);
89 
90 protected:
92  ~vtkMRMLFiducial();
94  void operator=(const vtkMRMLFiducial&);
95 
97  float XYZ[3];
98  float OrientationWXYZ[4];
99  char *LabelText;
100  bool Selected;
102  char *ID;
103 };
104 
105 #endif
MRML object to represent a 3D point.