Slicer  4.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLChartNode.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: vtkMRMLChartNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.3 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLChartNode_h
16 #define __vtkMRMLChartNode_h
17 
18 #include "vtkMRMLNode.h"
19 
20 class vtkDataObject;
21 class vtkStringArray;
22 class DoubleArrayIDMap;
23 class ChartPropertyMap;
24 
25 #include <string>
26 
28 class VTK_MRML_EXPORT vtkMRMLChartNode : public vtkMRMLNode
29 {
30  public:
31  //----------------------------------------------------------------
33  //----------------------------------------------------------------
34 
35 
36 
37  //----------------------------------------------------------------
39  //----------------------------------------------------------------
40 
41  static vtkMRMLChartNode *New();
43 
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
46  vtkMRMLNode* CreateNodeInstance() override;
47 
50  void ReadXMLAttributes( const char** atts) override;
51 
54  void WriteXML(ostream& of, int indent) override;
55 
58  void Copy(vtkMRMLNode *node) override;
59 
62  const char* GetNodeTagName() override
63  {return "Chart";}
64 
67  void ProcessMRMLEvents ( vtkObject *caller, unsigned long event, void *callData ) override;
68 
69  //----------------------------------------------------------------
71  //----------------------------------------------------------------
72 
77  void AddArray(const char *name, const char * id);
78 
81  void RemoveArray(const char *name);
82 
85  void ClearArrays();
86 
89  const char *GetArray(const char *name);
90 
93  vtkStringArray* GetArrayNames();
94 
97  vtkStringArray* GetArrays();
98 
144  void SetProperty(const char *arrname, const char *property, const char *value);
145  const char* GetProperty(const char *arrname, const char *property);
146 
149  void ClearProperty(const char *arrname, const char *property);
150 
153  void ClearProperties(const char *arrname);
154 
157  void ClearProperties();
158 
161  void SetSceneReferences() override;
162 
166  void UpdateReferences() override;
167 
170  void UpdateReferenceID(const char *oldID, const char *newID) override;
171 
172  protected:
173  //----------------------------------------------------------------
175  //----------------------------------------------------------------
177  ~vtkMRMLChartNode() override;
179  void operator=(const vtkMRMLChartNode&);
180 
181 
182  protected:
183  //----------------------------------------------------------------
185  //----------------------------------------------------------------
186  DoubleArrayIDMap *DoubleArrayIDs;
187  vtkStringArray *Arrays; // only valid when GetArrays() is called
188  vtkStringArray *ArrayNames; // only valid when GetArrayNames() is called
189  ChartPropertyMap *Properties;
190 };
191 
192 
193 
194 #endif
195 
MRML node for referencing a collection of data to plot.
ChartPropertyMap * Properties
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
virtual void UpdateReferences()
The method should remove all pointers and observations to all nodes that are not in the scene anymore...
vtkStringArray * ArrayNames
virtual void ReadXMLAttributes(const char **atts)
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.
virtual void Copy(vtkMRMLNode *node)
Copy node contents from another node of the same type. Does not copy node ID and Scene. Performs deep copy - an independent copy is created from all data, including bulk data.
vtkStringArray * Arrays
virtual void WriteXML(ostream &of, int indent)
void PrintSelf(ostream &os, vtkIndent indent) override
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
DoubleArrayIDMap * DoubleArrayIDs
Data.