Slicer  4.10
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) VTK_OVERRIDE;
45 
46  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
47 
50  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
51 
54  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
55 
58  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
59 
62  virtual const char* GetNodeTagName() VTK_OVERRIDE
63  {return "Chart";}
64 
67  virtual void ProcessMRMLEvents ( vtkObject *caller, unsigned long event, void *callData ) VTK_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  virtual void SetSceneReferences() VTK_OVERRIDE;
162 
166  virtual void UpdateReferences() VTK_OVERRIDE;
167 
170  virtual void UpdateReferenceID(const char *oldID, const char *newID) VTK_OVERRIDE;
171 
172  protected:
173  //----------------------------------------------------------------
175  //----------------------------------------------------------------
177  ~vtkMRMLChartNode();
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.
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
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.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138