20#ifndef __vtkMRMLPlotViewNode_h
21#define __vtkMRMLPlotViewNode_h
35 void PrintSelf(ostream& os, vtkIndent indent)
override;
58 void WriteXML(ostream& of,
int indent)
override;
85 vtkSetMacro (DoPropagatePlotChartSelection,
bool );
86 vtkGetMacro (DoPropagatePlotChartSelection,
bool );
93 vtkGetMacro(InteractionMode,
int);
94 vtkSetMacro(InteractionMode,
int);
98 vtkBooleanMacro(EnablePointMoveAlongX,
bool);
99 vtkGetMacro(EnablePointMoveAlongX,
bool);
100 vtkSetMacro(EnablePointMoveAlongX,
bool);
104 vtkBooleanMacro(EnablePointMoveAlongY,
bool);
105 vtkGetMacro(EnablePointMoveAlongY,
bool);
106 vtkSetMacro(EnablePointMoveAlongY,
bool);
117 void *callData)
override;
129 PlotChartNodeChangedEvent = 18000
157 bool DoPropagatePlotChartSelection{
true};
159 int InteractionMode{InteractionModePanView};
160 bool EnablePointMoveAlongX{
true};
161 bool EnablePointMoveAlongY{
true};
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D,...
Class to hold information about a node reference.
Abstract Superclass for all specific types of MRML nodes.
MRML node for referencing a collection of data to plot.
MRML node to represent Plot view parameters.
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.
@ InteractionModeMovePoints
@ InteractionModeSelectPoints
@ InteractionModeFreehandSelectPoints
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.