Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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
30class VTK_MRML_EXPORT vtkMRMLPlotViewNode : public vtkMRMLAbstractViewNode
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38 enum
39 {
44 InteractionMode_Last // must be last
45 };
46
47 //--------------------------------------------------------------------------
49 //--------------------------------------------------------------------------
50
52
55 void ReadXMLAttributes(const char** atts) override;
56
59 void WriteXML(ostream& of, int indent) override;
60
64
67 const char* GetNodeTagName() override { return "PlotView"; };
68
71 virtual void SetPlotChartNodeID(const char* PlotChartNodeID);
72
75 const char* GetPlotChartNodeID();
76
80
88
94 vtkGetMacro(InteractionMode, int);
95 vtkSetMacro(InteractionMode, int);
96
99 vtkBooleanMacro(EnablePointMoveAlongX, bool);
100 vtkGetMacro(EnablePointMoveAlongX, bool);
101 vtkSetMacro(EnablePointMoveAlongX, bool);
102
105 vtkBooleanMacro(EnablePointMoveAlongY, bool);
106 vtkGetMacro(EnablePointMoveAlongY, bool);
107 vtkSetMacro(EnablePointMoveAlongY, bool);
108
111 static const char* GetInteractionModeAsString(int id);
112 static int GetInteractionModeFromString(const char* name);
113
116 void ProcessMRMLEvents(vtkObject* caller, unsigned long event, void* callData) override;
117
126 enum
127 {
129 };
130
131 virtual const char* GetPlotChartNodeReferenceRole();
132
133protected:
138
140
141 static const char* PlotChartNodeReferenceRole;
143
147
151
155
157
161};
162
163#endif
Class to hold information about a node reference.
MRML node for referencing a collection of data to plot.
vtkMRMLPlotChartNode * GetPlotChartNode()
Get the PlotChart node displayed in this PlotView.
vtkMRMLPlotViewNode(const vtkMRMLPlotViewNode &)
static const char * PlotChartNodeReferenceMRMLAttributeName
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
Method to propagate events generated in mrml.
virtual const char * GetPlotChartNodeReferenceMRMLAttributeName()
~vtkMRMLPlotViewNode() override
void operator=(const vtkMRMLPlotViewNode &)
void OnNodeReferenceModified(vtkMRMLNodeReference *reference) override
Called when a node reference ID is modified.
static vtkMRMLPlotViewNode * New()
virtual const char * GetPlotChartNodeReferenceRole()
static int GetInteractionModeFromString(const char *name)
vtkMRMLCopyContentMacro(vtkMRMLPlotViewNode)
static const char * PlotChartNodeReferenceRole
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model).
void OnNodeReferenceRemoved(vtkMRMLNodeReference *reference) override
Called after a node reference ID is removed (list size decreased).
virtual void SetPlotChartNodeID(const char *PlotChartNodeID)
Set and Update the PlotChart node id displayed in this PlotView.
static const char * GetInteractionModeAsString(int id)
Convert between interaction mode ID and name.
const char * GetPlotChartNodeID()
Get the PlotChart node id displayed in this PlotView.
void PrintSelf(ostream &os, vtkIndent indent) override
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
void OnNodeReferenceAdded(vtkMRMLNodeReference *reference) override
Called when a node reference ID is added (list size increased).
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.