Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 {
43 InteractionMode_Last // must be last
44 };
45
46 //--------------------------------------------------------------------------
48 //--------------------------------------------------------------------------
49
51
54 void ReadXMLAttributes( const char** atts) override;
55
58 void WriteXML(ostream& of, int indent) override;
59
63
66 const char* GetNodeTagName() override { return "PlotView"; };
67
70 virtual void SetPlotChartNodeID(const char *PlotChartNodeID);
71
74 const char* GetPlotChartNodeID();
75
79
85 vtkSetMacro (DoPropagatePlotChartSelection, bool );
86 vtkGetMacro (DoPropagatePlotChartSelection, bool );
87
93 vtkGetMacro(InteractionMode, int);
94 vtkSetMacro(InteractionMode, int);
95
98 vtkBooleanMacro(EnablePointMoveAlongX, bool);
99 vtkGetMacro(EnablePointMoveAlongX, bool);
100 vtkSetMacro(EnablePointMoveAlongX, bool);
101
104 vtkBooleanMacro(EnablePointMoveAlongY, bool);
105 vtkGetMacro(EnablePointMoveAlongY, bool);
106 vtkSetMacro(EnablePointMoveAlongY, bool);
107
110 static const char *GetInteractionModeAsString(int id);
111 static int GetInteractionModeFromString(const char *name);
112
115 void ProcessMRMLEvents(vtkObject *caller,
116 unsigned long event,
117 void *callData) override;
118
127 enum
128 {
130 };
131
132 virtual const char* GetPlotChartNodeReferenceRole();
133
134protected:
139
141
142 static const char* PlotChartNodeReferenceRole;
144
148
152
156
158
162};
163
164#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.