24 #ifndef vtkPVXYChartView_h 25 #define vtkPVXYChartView_h 28 #include "vtkPVClientServerCoreRenderingModule.h" 35 #define GENERATE_AXIS_FUNCTIONS(name, type) \ 36 void SetLeft##name(type value) { Set##name(vtkAxis::LEFT, value); } \ 37 void SetBottom##name(type value) { Set##name(vtkAxis::BOTTOM, value); } \ 38 void SetRight##name(type value) { Set##name(vtkAxis::RIGHT, value); } \ 39 void SetTop##name(type value) { Set##name(vtkAxis::TOP, value); } 41 #define GENERATE_AXIS_FUNCTIONS2(name, type1, type2) \ 42 void SetLeft##name(type1 value1, type2 value2) { Set##name(vtkAxis::LEFT, value1, value2); } \ 43 void SetBottom##name(type1 value1, type2 value2) { Set##name(vtkAxis::BOTTOM, value1, value2); } \ 44 void SetRight##name(type1 value1, type2 value2) { Set##name(vtkAxis::RIGHT, value1, value2); } \ 45 void SetTop##name(type1 value1, type2 value2) { Set##name(vtkAxis::TOP, value1, value2); } 47 #define GENERATE_AXIS_FUNCTIONS3(name, type1, type2, type3) \ 48 void SetLeft##name(type1 value1, type2 value2, type3 value3) \ 50 Set##name(vtkAxis::LEFT, value1, value2, value3); \ 52 void SetBottom##name(type1 value1, type2 value2, type3 value3) \ 54 Set##name(vtkAxis::BOTTOM, value1, value2, value3); \ 56 void SetRight##name(type1 value1, type2 value2, type3 value3) \ 58 Set##name(vtkAxis::RIGHT, value1, value2, value3); \ 60 void SetTop##name(type1 value1, type2 value2, type3 value3) \ 62 Set##name(vtkAxis::TOP, value1, value2, value3); \ 70 void PrintSelf(ostream& os, vtkIndent indent);
75 void SetChartType(
const char* type);
90 void SetTitle(
const char* title);
99 void SetTitleFont(
const char* family,
int pointSize,
bool bold,
bool italic);
100 void SetTitleFontFamily(
const char* family);
101 void SetTitleFontSize(
int pointSize);
102 void SetTitleBold(
bool bold);
103 void SetTitleItalic(
bool bold);
112 void SetTitleColor(
double red,
double green,
double blue);
120 void SetTitleAlignment(
int alignment);
128 void SetLegendVisibility(
int visible);
136 void SetLegendLocation(
int location);
141 void SetLegendPosition(
int x,
int y);
146 void SetLegendFontFamily(
const char* family);
151 void SetLegendFontSize(
int pointSize);
156 void SetLegendBold(
bool bold);
161 void SetLegendItalic(
bool italic);
170 void SetGridVisibility(
int index,
bool visible);
181 void SetAxisColor(
int index,
double red,
double green,
double blue);
192 void SetGridColor(
int index,
double red,
double green,
double blue);
203 void SetAxisLabelVisibility(
int index,
bool visible);
213 void SetAxisLabelFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
219 void SetAxisLabelFontFamily(
int index,
const char* family);
227 void SetAxisLabelFontSize(
int index,
int pointSize);
235 void SetAxisLabelBold(
int index,
bool bold);
243 void SetAxisLabelItalic(
int index,
bool italic);
254 void SetAxisLabelColor(
int index,
double red,
double green,
double blue);
265 void SetAxisLabelNotation(
int index,
int notation);
276 void SetAxisLabelPrecision(
int index,
int precision);
299 void SetAxisUseCustomRange(
int index,
bool useCustomRange);
310 void SetAxisLogScale(
int index,
bool logScale);
321 void SetAxisTitle(
int index,
const char* title);
331 void SetAxisTitleFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
340 void SetAxisTitleFontFamily(
int index,
const char* family);
351 void SetAxisTitleFontSize(
int index,
int pointSize);
362 void SetAxisTitleBold(
int index,
bool bold);
373 void SetAxisTitleItalic(
int index,
bool italic);
384 void SetAxisTitleColor(
int index,
double red,
double green,
double blue);
393 void SetAxisUseCustomLabels(
int index,
bool useCustomLabels);
401 void SetAxisLabelsNumber(
int axis,
int number);
409 void SetAxisLabels(
int axis,
int index,
double value);
413 void SetTooltipNotation(
int notation);
414 void SetTooltipPrecision(
int precision);
422 vtkSetMacro(HideTimeMarker,
bool);
423 vtkGetMacro(HideTimeMarker,
bool);
429 virtual vtkChart* GetChart();
454 void SetAxisRangeMinimum(
int index,
double min);
455 void SetAxisRangeMaximum(
int index,
double max);
460 virtual void Render(
bool interactive);
466 vtkSetStringMacro(InternalTitle);
483 void SelectionChanged();
492 vtkInternals* Internals;
virtual void Update()
Overridden to ensure that in multi-client configurations, same set of representations are "dirty" on ...
vtkChartWarning * LogScaleWarningLabel
Pointer to the proxy's chart instance.
virtual void SetSelection(vtkChartRepresentation *repr, vtkSelection *selection)=0
Representations can use this method to set the selection for a particular representation.
a vtkContextItem that draws a block (optional label).
void SetChartTypeToFunctionalBag()
#define GENERATE_AXIS_FUNCTIONS3(name, type1, type2, type3)
vtkPVPlotTime * PlotTime
Pointer to the proxy's chart instance.
void SetChartTypeToParallelCoordinates()
void SetChartTypeToArea()
vtkPVView subclass for drawing charts
void PrintSelf(ostream &os, vtkIndent indent)
takes care of drawing a "time" marker in the plot.
char * InternalTitle
Store the unreplaced chart title in the case where ${TIME} is used...
vtkChart * Chart
Pointer to the proxy's chart instance.
vtkPVContextView adopts vtkContextView so that it can be used in ParaView configurations.
vtkChartRepresentation is the base representation for charting representations.
#define GENERATE_AXIS_FUNCTIONS2(name, type1, type2)
#define GENERATE_AXIS_FUNCTIONS(name, type)
void SetChartTypeToLine()
virtual void Render(bool interactive)
Actual rendering implementation.
virtual vtkAbstractContextItem * GetContextItem()=0
Get the context item.