12 #ifndef vtkPVXYChartView_h 13 #define vtkPVXYChartView_h 23 #define GENERATE_AXIS_FUNCTIONS(name, type) \ 24 void SetLeft##name(type value) \ 26 Set##name(vtkAxis::LEFT, value); \ 28 void SetBottom##name(type value) \ 30 Set##name(vtkAxis::BOTTOM, value); \ 32 void SetRight##name(type value) \ 34 Set##name(vtkAxis::RIGHT, value); \ 36 void SetTop##name(type value) \ 38 Set##name(vtkAxis::TOP, value); \ 41 #define GENERATE_AXIS_FUNCTIONS2(name, type1, type2) \ 42 void SetLeft##name(type1 value1, type2 value2) \ 44 Set##name(vtkAxis::LEFT, value1, value2); \ 46 void SetBottom##name(type1 value1, type2 value2) \ 48 Set##name(vtkAxis::BOTTOM, value1, value2); \ 50 void SetRight##name(type1 value1, type2 value2) \ 52 Set##name(vtkAxis::RIGHT, value1, value2); \ 54 void SetTop##name(type1 value1, type2 value2) \ 56 Set##name(vtkAxis::TOP, value1, value2); \ 59 #define GENERATE_AXIS_FUNCTIONS3(name, type1, type2, type3) \ 60 void SetLeft##name(type1 value1, type2 value2, type3 value3) \ 62 Set##name(vtkAxis::LEFT, value1, value2, value3); \ 64 void SetBottom##name(type1 value1, type2 value2, type3 value3) \ 66 Set##name(vtkAxis::BOTTOM, value1, value2, value3); \ 68 void SetRight##name(type1 value1, type2 value2, type3 value3) \ 70 Set##name(vtkAxis::RIGHT, value1, value2, value3); \ 72 void SetTop##name(type1 value1, type2 value2, type3 value3) \ 74 Set##name(vtkAxis::TOP, value1, value2, value3); \ 87 void SetChartType(
const char* type);
105 void SetTitleFont(
const char*
family,
int pointSize,
bool bold,
bool italic)
override;
124 void SetTitleColor(
double red,
double green,
double blue)
override;
145 void SetLegendVisibility(
int visible);
153 void SetLegendLocation(
int location);
158 void SetLegendPosition(
int x,
int y);
163 void SetLegendFontFamily(
const char* family);
168 void SetLegendFontFile(
const char* file);
173 void SetLegendFontSize(
int pointSize);
178 void SetLegendBold(
bool bold);
183 void SetLegendItalic(
bool italic);
188 void SetLegendSymbolWidth(
int width);
197 void SetGridVisibility(
int index,
bool visible);
208 void SetAxisColor(
int index,
double red,
double green,
double blue);
219 void SetGridColor(
int index,
double red,
double green,
double blue);
230 void SetAxisLabelVisibility(
int index,
bool visible);
240 void SetAxisLabelFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
246 void SetAxisLabelFontFamily(
int index,
const char* family);
254 void SetAxisLabelFontFile(
int index,
const char* file);
262 void SetAxisLabelFontSize(
int index,
int pointSize);
270 void SetAxisLabelBold(
int index,
bool bold);
278 void SetAxisLabelItalic(
int index,
bool italic);
289 void SetAxisLabelColor(
int index,
double red,
double green,
double blue);
300 void SetAxisLabelNotation(
int index,
int notation);
311 void SetAxisLabelPrecision(
int index,
int precision);
334 void SetAxisUseCustomRange(
int index,
bool useCustomRange);
345 void SetAxisLogScale(
int index,
bool logScale);
356 void SetAxisTitle(
int index,
const char*
title);
366 void SetAxisTitleFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
375 void SetAxisTitleFontFamily(
int index,
const char* family);
386 void SetAxisTitleFontFile(
int index,
const char* file);
397 void SetAxisTitleFontSize(
int index,
int pointSize);
408 void SetAxisTitleBold(
int index,
bool bold);
419 void SetAxisTitleItalic(
int index,
bool italic);
430 void SetAxisTitleColor(
int index,
double red,
double green,
double blue);
439 void SetAxisUseCustomLabels(
int index,
bool useCustomLabels);
447 void SetAxisLabelsNumber(
int axis,
int number);
455 void SetAxisLabels(
int axis,
int index,
const std::string&
value,
const std::string& label);
459 void SetTooltipLabelFormat(
const vtkStdString& labelFormat);
460 void SetTooltipNotation(
int notation);
461 void SetTooltipPrecision(
int precision);
469 vtkSetMacro(HideTimeMarker,
bool);
470 vtkGetMacro(HideTimeMarker,
bool);
478 vtkGetMacro(SortByXAxis,
bool);
479 vtkSetMacro(SortByXAxis,
bool);
510 void SetAxisRangeMinimum(
int index,
double min);
511 void SetAxisRangeMaximum(
int index,
double max);
516 void Render(
bool interactive)
override;
527 void SelectionChanged();
537 vtkInternals* Internals;
void SetChartTypeToImage()
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).
virtual void SetTitleFontSize(int pointSize)=0
Get/Set the font of the title.
virtual void SetTitleBold(bool bold)=0
Get/Set the font of the title.
#define VTKREMOTINGVIEWS_EXPORT
void SetChartTypeToFunctionalBag()
#define GENERATE_AXIS_FUNCTIONS3(name, type1, type2, type3)
vtkPVPlotTime * PlotTime
Pointer to the proxy's chart instance.
void Update() override
Overridden to not call Update() directly on the input representations, instead use ProcessViewRequest...
virtual int GetTitleFontBold()=0
Get/Set the font of the title.
void SetChartTypeToParallelCoordinates()
virtual int GetTitleFontItalic()=0
Get/Set the font of the title.
virtual void SetTitleFontFile(const char *file)=0
Get/Set the font of the title.
void SetChartTypeToArea()
vtkPVView subclass for drawing charts
void PrintSelf(ostream &os, vtkIndent indent) override
virtual int GetTitleFontSize()=0
Get/Set the font of the title.
virtual int GetTitleAlignment()=0
Get/Set the alignement of the title.
virtual double * GetTitleColor()=0
Get/Set the color of the title.
takes care of drawing a "time" marker in the plot.
virtual const char * GetTitleFontFamily()=0
Get/Set the font of the title.
virtual void SetTitleColor(double red, double green, double blue)=0
Get/Set the color of the title.
vtkChart * Chart
Pointer to the proxy's chart instance.
virtual void SetTitleAlignment(int alignment)=0
Get/Set the alignement of the title.
virtual void SetTitleFontFamily(const char *family)=0
Get/Set the font of the title.
vtkPVContextView adopts vtkContextView so that it can be used in ParaView configurations.
vtkChartRepresentation is the base representation for charting representations.
virtual void SetTitleFont(const char *family, int pointSize, bool bold, bool italic)=0
Get/Set the font of the title.
#define GENERATE_AXIS_FUNCTIONS(name, type)
virtual void SetTitleItalic(bool italic)=0
Get/Set the font of the title.
void SetChartTypeToLine()
virtual void Render(bool interactive)
Actual rendering implementation.
void SetChartTypeToPoint()
virtual vtkAbstractContextItem * GetContextItem()=0
Get the context item.