31 #ifndef vtkXYChartRepresentation_h 32 #define vtkXYChartRepresentation_h 37 class vtkScalarsToColors;
44 void PrintSelf(ostream& os, vtkIndent indent);
59 vtkSetMacro(ChartType,
int);
60 vtkGetMacro(ChartType,
int);
63 void SetChartTypeToLine();
64 void SetChartTypeToPoints();
65 void SetChartTypeToBar();
66 void SetChartTypeToStacked();
67 void SetChartTypeToBag();
68 void SetChartTypeToFunctionalBag();
69 void SetChartTypeToArea();
76 vtkChartXY* GetChart();
82 vtkSetStringMacro(XAxisSeriesName);
83 vtkGetStringMacro(XAxisSeriesName);
91 vtkSetMacro(UseIndexForXAxis,
bool);
92 vtkGetMacro(UseIndexForXAxis,
bool);
99 void SetSeriesVisibility(
const char* seriesname,
bool visible);
100 void SetLineThickness(
const char* name,
int value);
101 void SetLineStyle(
const char* name,
int value);
102 void SetColor(
const char* name,
double r,
double g,
double b);
103 void SetAxisCorner(
const char* name,
int corner);
104 void SetMarkerStyle(
const char* name,
int style);
105 void SetLabel(
const char* name,
const char* label);
106 void SetUseColorMapping(
const char* name,
bool useColorMapping);
107 void SetLookupTable(
const char* name, vtkScalarsToColors* lut);
108 const char* GetLabel(
const char* name)
const;
111 void ClearSeriesVisibilities();
112 void ClearLineThicknesses();
113 void ClearLineStyles();
115 void ClearAxisCorners();
116 void ClearMarkerStyles();
119 vtkSetVector3Macro(SelectionColor,
double);
120 vtkGetVector3Macro(SelectionColor,
double);
126 vtkSetStringMacro(SeriesLabelPrefix);
127 vtkGetStringMacro(SeriesLabelPrefix);
146 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
159 char* XAxisSeriesName;
160 bool UseIndexForXAxis;
161 bool PlotDataHasChanged;
162 double SelectionColor[3];
163 char* SeriesLabelPrefix;
static vtkChartRepresentation * New()
virtual void PrepareForRendering()
This method is called before actual render if this->MTime was modified since the last time this metho...
vtkXYChartRepresentation is representation that is used to add vtkPlot subclasses to a vtkChartXY ins...
virtual bool Export(vtkCSVExporter *vtkNotUsed(exporter))
Called by vtkPVContextView::Export() to export the representation's data to a CSV file...
virtual void SetVisibility(bool visible)
Set visibility of the representation.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses should override this to connect inputs to the internal pipeline as necessary.
vtkChartRepresentation is the base representation for charting representations.
exporter used by certain views to export data as a CSV file.
void PrintSelf(ostream &os, vtkIndent indent)
virtual bool RemoveFromView(vtkView *view)
Removes the representation to the view.