Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLPlotViewNode.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Copyright (c) Kapteyn Astronomical Institute
4  University of Groningen, Groningen, Netherlands. All Rights Reserved.
5 
6  See COPYRIGHT.txt
7  or http://www.slicer.org/copyright/copyright.txt for details.
8 
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14 
15  This file was originally developed by Davide Punzo, Kapteyn Astronomical Institute,
16  and was supported through the European Research Council grant nr. 291531.
17 
18 ==============================================================================*/
19 
20 #ifndef __vtkMRMLPlotViewNode_h
21 #define __vtkMRMLPlotViewNode_h
22 
24 
26 
30 class VTK_MRML_EXPORT vtkMRMLPlotViewNode : public vtkMRMLAbstractViewNode
31 {
32 public:
33  static vtkMRMLPlotViewNode *New();
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
37  //--------------------------------------------------------------------------
39  //--------------------------------------------------------------------------
40 
41  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
42 
45  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
46 
49  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
50 
53  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
54 
57  virtual const char* GetNodeTagName() VTK_OVERRIDE { return "PlotView"; };
58 
61  virtual void SetPlotChartNodeID(const char *PlotChartNodeID);
62 
65  const char* GetPlotChartNodeID();
66 
69  vtkMRMLPlotChartNode* GetPlotChartNode();
70 
76  vtkSetMacro (DoPropagatePlotChartSelection, bool );
77  vtkGetMacro (DoPropagatePlotChartSelection, bool );
78 
81  virtual void ProcessMRMLEvents(vtkObject *caller,
82  unsigned long event,
83  void *callData) VTK_OVERRIDE;
84 
93  enum
94  {
95  PlotChartNodeChangedEvent = 18000
96  };
97 
98  virtual const char* GetPlotChartNodeReferenceRole();
99 
100 protected:
104  void operator=(const vtkMRMLPlotViewNode&);
105 
106  virtual const char* GetPlotChartNodeReferenceMRMLAttributeName();
107 
108  static const char* PlotChartNodeReferenceRole;
110 
113  virtual void OnNodeReferenceAdded(vtkMRMLNodeReference *reference) VTK_OVERRIDE;
114 
117  virtual void OnNodeReferenceModified(vtkMRMLNodeReference *reference) VTK_OVERRIDE;
118 
121  virtual void OnNodeReferenceRemoved(vtkMRMLNodeReference *reference) VTK_OVERRIDE;
122 
124 };
125 
126 #endif
MRML node to represent Plot view parameters.
MRML node for referencing a collection of data to plot.
static const char * PlotChartNodeReferenceRole
void operator=(const vtkMRMLAbstractViewNode &)
static const char * PlotChartNodeReferenceMRMLAttributeName
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
virtual void OnNodeReferenceModified(vtkMRMLNodeReference *reference)
Called when a referenced node pointer is modified.
Definition: vtkMRMLNode.h:853
virtual void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData)
Propagate events generated in mrml.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
virtual void OnNodeReferenceRemoved(vtkMRMLNodeReference *reference)
Called when a referenced node pointer is removed (set to NULL).
Definition: vtkMRMLNode.h:859
virtual void OnNodeReferenceAdded(vtkMRMLNodeReference *reference)
Definition: vtkMRMLNode.h:847
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
Class to hold information about a node reference.
Definition: vtkMRMLNode.h:723
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE