20 #ifndef __vtkMRMLPlotChartNode_h 21 #define __vtkMRMLPlotChartNode_h 43 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
53 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
61 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "PlotChart";};
67 void *callData) VTK_OVERRIDE;
79 PlotModifiedEvent = 17000,
98 const char *GetPlotSeriesNodeID();
107 const char *GetNthPlotSeriesNodeID(
int n);
118 int GetPlotSeriesNodeIndexFromID(
const char* plotSeriesNodeID);
122 virtual int GetPlotSeriesNodeIDs(std::vector<std::string> &plotSeriesNodeIDs);
126 virtual int GetPlotSeriesNodeNames(std::vector<std::string> &plotSeriesNodeNames);
131 int GetNumberOfPlotSeriesNodes();
136 void AddAndObservePlotSeriesNodeID(
const char *plotSeriesNodeID);
141 void SetAndObservePlotSeriesNodeID(
const char *plotSeriesNodeID);
150 void SetAndObserveNthPlotSeriesNodeID(
int n,
const char *plotSeriesNodeID);
155 void RemovePlotSeriesNodeID(
const char *plotSeriesNodeID);
160 void RemoveNthPlotSeriesNodeID(
int n);
164 void RemoveAllPlotSeriesNodeIDs();
168 bool HasPlotSeriesNodeID(
const char* plotSeriesNodeID);
172 vtkSetStringMacro(Title);
173 vtkGetStringMacro(Title);
176 vtkSetMacro(TitleFontSize,
int);
177 vtkGetMacro(TitleFontSize,
int);
180 vtkBooleanMacro(TitleVisibility,
bool);
181 vtkGetMacro(TitleVisibility,
bool);
182 vtkSetMacro(TitleVisibility,
bool);
185 vtkBooleanMacro(GridVisibility,
bool);
186 vtkGetMacro(GridVisibility,
bool);
187 vtkSetMacro(GridVisibility,
bool);
190 vtkBooleanMacro(LegendVisibility,
bool);
191 vtkGetMacro(LegendVisibility,
bool);
192 vtkSetMacro(LegendVisibility,
bool);
195 vtkSetMacro(LegendFontSize,
int);
196 vtkGetMacro(LegendFontSize,
int);
198 vtkGetMacro(XAxisRangeAuto,
bool);
199 vtkSetMacro(XAxisRangeAuto,
bool);
200 vtkBooleanMacro(XAxisRangeAuto,
bool);
202 vtkGetMacro(YAxisRangeAuto,
bool);
203 vtkSetMacro(YAxisRangeAuto,
bool);
204 vtkBooleanMacro(YAxisRangeAuto,
bool);
206 vtkGetVector2Macro(XAxisRange,
double);
207 vtkSetVector2Macro(XAxisRange,
double);
209 vtkGetVector2Macro(YAxisRange,
double);
210 vtkSetVector2Macro(YAxisRange,
double);
214 vtkGetMacro(XAxisLogScale,
bool);
215 vtkSetMacro(XAxisLogScale,
bool);
216 vtkBooleanMacro(XAxisLogScale,
bool);
220 vtkGetMacro(YAxisLogScale,
bool);
221 vtkSetMacro(YAxisLogScale,
bool);
222 vtkBooleanMacro(YAxisLogScale,
bool);
225 vtkSetStringMacro(XAxisTitle);
226 vtkGetStringMacro(XAxisTitle);
229 vtkBooleanMacro(XAxisTitleVisibility,
bool);
230 vtkGetMacro(XAxisTitleVisibility,
bool);
231 vtkSetMacro(XAxisTitleVisibility,
bool);
234 vtkSetStringMacro(YAxisTitle);
235 vtkGetStringMacro(YAxisTitle);
238 vtkBooleanMacro(YAxisTitleVisibility,
bool);
239 vtkGetMacro(YAxisTitleVisibility,
bool);
240 vtkSetMacro(YAxisTitleVisibility,
bool);
243 vtkSetMacro(AxisTitleFontSize,
int);
244 vtkGetMacro(AxisTitleFontSize,
int);
247 vtkSetMacro(AxisLabelFontSize,
int);
248 vtkGetMacro(AxisLabelFontSize,
int);
251 vtkSetStringMacro(FontType);
252 vtkGetStringMacro(FontType);
256 vtkBooleanMacro(EnablePointMoveAlongX,
bool);
257 vtkGetMacro(EnablePointMoveAlongX,
bool);
258 vtkSetMacro(EnablePointMoveAlongX,
bool);
262 vtkBooleanMacro(EnablePointMoveAlongY,
bool);
263 vtkGetMacro(EnablePointMoveAlongY,
bool);
264 vtkSetMacro(EnablePointMoveAlongY,
bool);
267 virtual const char* GetPlotSeriesNodeReferenceRole();
270 void SetPropertyToAllPlotSeriesNodes(PlotSeriesNodeProperty plotProperty,
const char* value);
275 bool GetPropertyFromAllPlotSeriesNodes(PlotSeriesNodeProperty plotProperty, std::string& value);
308 double XAxisRange[2];
309 double YAxisRange[2];
bool EnablePointMoveAlongX
MRML node for referencing a collection of data to plot.
MRML node to represent a vtkPlot object.
void operator=(const vtkMRMLNode &)
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.
virtual void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData)
Propagate events generated in mrml.
bool YAxisTitleVisibility
bool EnablePointMoveAlongY
virtual void OnNodeReferenceRemoved(vtkMRMLNodeReference *reference)
Called when a referenced node pointer is removed (set to NULL).
PlotSeriesNodeProperty
Properties used by SetPropertyToAllPlotSeriesNodes() and GetPropertyFromAllPlotSeriesNodes() methods...
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void OnNodeReferenceAdded(vtkMRMLNodeReference *reference)
Abstract Superclass for all specific types of MRML nodes.
static const char * PlotSeriesNodeReferenceRole
bool XAxisTitleVisibility