20 #ifndef __vtkMRMLPlotDataNode_h 21 #define __vtkMRMLPlotDataNode_h 58 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
68 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
72 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
76 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "PlotData"; };
81 virtual bool SetAndObserveTableNodeID(
const char *TableNodeID);
87 virtual bool SetAndObserveTableNodeID(
const std::string& TableNodeID);
97 void *callData) VTK_OVERRIDE;
103 TableModifiedEvent = 15000
108 const char *GetTableNodeID();
123 virtual
void UpdateReferenceID(const
char *oldID, const
char *newID) VTK_OVERRIDE;
129 virtual
void SetSceneReferences() VTK_OVERRIDE;
138 virtual
void SetAndObservePlot(vtkPlot* plot);
143 vtkGetObjectMacro(Plot, vtkPlot);
147 vtkGetMacro(Type,
int);
151 virtual
void SetType(
int type);
156 virtual
void SetType(const
char* type);
161 vtkGetMacro(XColumnName, vtkStdString);
169 virtual
void SetXColumnName(vtkStdString xColumnName);
174 vtkGetMacro(YColumnName, vtkStdString);
180 virtual
void SetYColumnName(vtkStdString yColumnName);
184 virtual const
char *GetPlotTypeAsString(
int id);
185 virtual
int GetPlotTypeFromString(const
char *name);
190 virtual
void SetMarkerStyle(
int style);
191 virtual
int GetMarkerStyle();
195 const
char *GetMarkersStyleAsString(
int id);
196 int GetMarkersStyleFromString(const
char *name);
201 virtual
void SetMarkerSize(
float size);
202 virtual
float GetMarkerSize();
207 virtual
void SetLineWidth(
float width);
208 virtual
float GetLineWidth();
212 virtual
void SetPlotColor(
double color[4]);
213 virtual
void SetPlotColor(
unsigned char color[4]);
214 virtual
void GetPlotColor(
double color[4]);
215 virtual
void GetPlotColor(
unsigned char color[4]);
222 ~vtkMRMLPlotDataNode();
223 vtkMRMLPlotDataNode(const vtkMRMLPlotDataNode&);
224 void operator=(const vtkMRMLPlotDataNode&);
226 static const
char* TableNodeReferenceRole;
227 static const
char* TableNodeReferenceMRMLAttributeName;
229 virtual const
char* GetTableNodeReferenceRole();
230 virtual const
char* GetTableNodeReferenceMRMLAttributeName();
236 Superclass::OnNodeReferenceAdded(reference);
237 if (std::string(reference->GetReferenceRole()) == this->TableNodeReferenceRole)
247 Superclass::OnNodeReferenceModified(reference);
248 if (std::string(reference->GetReferenceRole()) == this->TableNodeReferenceRole)
258 Superclass::OnNodeReferenceRemoved(reference);
259 if (std::string(reference->GetReferenceRole()) == this->TableNodeReferenceRole)
277 vtkStdString xColumnName,
278 vtkStdString yColumnName);
virtual void OnNodeReferenceRemoved(vtkMRMLNodeReference *reference) VTK_OVERRIDE
Called after a node reference ID is removed (list size decreased).
virtual void OnNodeAddedToScene()
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 Copy(vtkMRMLNode *node)
Copy parameters (not including ID and Scene) from another node of the same type.
A set of MRML Nodes that supports serialization and undo/redo.
virtual void OnNodeReferenceModified(vtkMRMLNodeReference *reference) VTK_OVERRIDE
Called when a node reference ID is modified.
int Type
Type of Plot (Line, Scatter, Bar).
MRML node to represent a vtkPlot object.
A supercalss for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void InvokeCustomModifiedEvent(int eventId, void *callData=NULL)
This method allows the node to compress events.
MRML node to represent a table object.
Abstract Superclass for all specific types of MRML nodes.
Class to hold information about a node reference.
virtual void UpdateScene(vtkMRMLScene *)