15 #ifndef __vtkMRMLSelectionNode_h 16 #define __vtkMRMLSelectionNode_h 39 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
47 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
53 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "Selection";}
59 virtual void UpdateReferenceID(
const char *oldID,
const char *newID) VTK_OVERRIDE;
66 vtkGetStringMacro (ActiveVolumeID);
67 void SetActiveVolumeID(
const char*
id);
71 vtkGetStringMacro (SecondaryVolumeID);
72 void SetSecondaryVolumeID(
const char*
id);
76 vtkGetStringMacro (ActiveLabelVolumeID);
77 void SetActiveLabelVolumeID(
const char*
id);
82 vtkGetStringMacro (ActiveFiducialListID);
85 void SetActiveFiducialListID(
const char*
id);
94 vtkGetStringMacro (ActivePlaceNodeClassName);
99 vtkSetStringMacro(ActivePlaceNodeClassName);
104 void SetReferenceActivePlaceNodeClassName (
const char *className);
109 vtkGetStringMacro (ActivePlaceNodeID);
113 void SetActivePlaceNodeID(
const char*
id);
119 { this->SetActivePlaceNodeID(
id);
123 vtkGetStringMacro (ActiveROIListID);
124 void SetActiveROIListID(
const char*
id);
128 vtkGetStringMacro (ActiveCameraID );
129 void SetActiveCameraID(
const char*
id);
133 vtkGetStringMacro (ActiveTableID);
134 void SetActiveTableID(
const char*
id);
138 vtkGetStringMacro (ActiveViewID );
139 void SetActiveViewID(
const char*
id );
143 vtkGetStringMacro (ActiveLayoutID );
144 void SetActiveLayoutID(
const char*
id);
148 vtkGetStringMacro (ActivePlotChartID );
149 void SetActivePlotChartID(
const char*
id);
166 ActivePlaceNodeIDChangedEvent = 19001,
174 void AddNewPlaceNodeClassNameToList(
const char *newID,
const char *resource = NULL,
const char *iconName =
"");
187 const char* GetUnitNodeID(
const char* quantity);
188 void SetUnitNodeID(
const char* quantity,
const char*
id);
197 void GetUnitNodes(std::vector<vtkMRMLUnitNode*>& units);
201 void GetUnitNodeIDs(std::vector<const char*>& quantities,
202 std::vector<const char*>& unitIDs);
207 void ProcessMRMLEvents(vtkObject *caller,
unsigned long event,
void *callData) VTK_OVERRIDE;
211 void RemovePlaceNodeClassNameFromList(
const char *className);
214 std::string GetPlaceNodeClassNameByIndex(
int n);
217 std::string GetPlaceNodeResourceByIndex(
int n);
220 std::string GetPlaceNodeIconNameByIndex(
int n);
223 int PlaceNodeClassNameInList(std::string className);
228 std::string GetPlaceNodeResourceByClassName(std::string className);
234 std::string GetModelHierarchyDisplayNodeClassName(
const std::string& dispayableNodeClass)
const;
238 std::map<std::string, std::string> GetModelHierarchyDisplayNodeClassNames()
const;
246 void AddModelHierarchyDisplayNodeClassName(
const std::string& dispayableNodeClass,
247 const std::string& displayNodeClass);
251 void ClearModelHierarchyDisplayNodeClassNames();
262 virtual const char* GetUnitNodeReferenceRole();
263 virtual const char* GetUnitNodeReferenceMRMLAttributeName();
void SetReferenceActiveTableID(char *id)
static const char * UnitNodeReferenceRole
void SetReferenceActiveLayoutID(const char *id)
char * ActiveLabelVolumeID
virtual void UpdateReferences()
The method should remove all pointers and observations to all nodes that are not in the scene anymore...
void SetReferenceActivePlaceNodeID(const char *id)
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
virtual void UpdateReferenceID(const char *oldID, const char *newID)
Update the stored reference to another node in the scene.
virtual void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData)
Propagate events generated in mrml.
virtual void SetSceneReferences()
Update the references of the node to the scene.
char * ActiveFiducialListID
std::vector< std::string > PlaceNodeIconNameList
static const char * UnitNodeReferenceMRMLAttributeName
void SetReferenceActiveViewID(const char *id)
void SetReferenceActiveLabelVolumeID(const char *id)
std::map< std::string, std::string > ModelHierarchyDisplayNodeClassName
void SetReferenceSecondaryVolumeID(char *id)
void SetReferenceActiveFiducialListID(const char *id)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void SetReferenceActiveROIListID(const char *id)
void SetReferenceActiveVolumeID(const char *id)
int GetNumberOfPlaceNodeClassNamesInList()
Get the number of class names in the list.
Abstract Superclass for all specific types of MRML nodes.
void SetReferenceActiveCameraID(const char *id)
Node that holds the information about a unit.
MRML node for storing information about the active nodes in the scene.
char * ActivePlaceNodeClassName
std::vector< std::string > PlaceNodeClassNameList
std::vector< std::string > PlaceNodeResourceList
void SetReferenceActivePlotChartID(const char *id)