12 #ifndef vtkPVXYChartView_h 13 #define vtkPVXYChartView_h 24 #define GENERATE_AXIS_FUNCTIONS(name, type) \ 25 void SetLeft##name(type value) \ 27 Set##name(vtkAxis::LEFT, value); \ 29 void SetBottom##name(type value) \ 31 Set##name(vtkAxis::BOTTOM, value); \ 33 void SetRight##name(type value) \ 35 Set##name(vtkAxis::RIGHT, value); \ 37 void SetTop##name(type value) \ 39 Set##name(vtkAxis::TOP, value); \ 42 #define GENERATE_AXIS_FUNCTIONS2(name, type1, type2) \ 43 void SetLeft##name(type1 value1, type2 value2) \ 45 Set##name(vtkAxis::LEFT, value1, value2); \ 47 void SetBottom##name(type1 value1, type2 value2) \ 49 Set##name(vtkAxis::BOTTOM, value1, value2); \ 51 void SetRight##name(type1 value1, type2 value2) \ 53 Set##name(vtkAxis::RIGHT, value1, value2); \ 55 void SetTop##name(type1 value1, type2 value2) \ 57 Set##name(vtkAxis::TOP, value1, value2); \ 60 #define GENERATE_AXIS_FUNCTIONS3(name, type1, type2, type3) \ 61 void SetLeft##name(type1 value1, type2 value2, type3 value3) \ 63 Set##name(vtkAxis::LEFT, value1, value2, value3); \ 65 void SetBottom##name(type1 value1, type2 value2, type3 value3) \ 67 Set##name(vtkAxis::BOTTOM, value1, value2, value3); \ 69 void SetRight##name(type1 value1, type2 value2, type3 value3) \ 71 Set##name(vtkAxis::RIGHT, value1, value2, value3); \ 73 void SetTop##name(type1 value1, type2 value2, type3 value3) \ 75 Set##name(vtkAxis::TOP, value1, value2, value3); \ 88 void SetChartType(
const char* type);
106 void SetTitleFont(
const char*
family,
int pointSize,
bool bold,
bool italic)
override;
125 void SetTitleColor(
double red,
double green,
double blue)
override;
146 void SetLegendVisibility(
int visible);
154 void SetLegendLocation(
int location);
159 void SetLegendPosition(
int x,
int y);
164 void SetLegendFontFamily(
const char* family);
169 void SetLegendFontFile(
const char* file);
174 void SetLegendFontSize(
int pointSize);
179 void SetLegendBold(
bool bold);
184 void SetLegendItalic(
bool italic);
189 void SetLegendSymbolWidth(
int width);
198 void SetGridVisibility(
int index,
bool visible);
209 void SetAxisColor(
int index,
double red,
double green,
double blue);
220 void SetGridColor(
int index,
double red,
double green,
double blue);
231 void SetAxisLabelVisibility(
int index,
bool visible);
241 void SetAxisLabelFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
247 void SetAxisLabelFontFamily(
int index,
const char* family);
255 void SetAxisLabelFontFile(
int index,
const char* file);
263 void SetAxisLabelFontSize(
int index,
int pointSize);
271 void SetAxisLabelBold(
int index,
bool bold);
279 void SetAxisLabelItalic(
int index,
bool italic);
290 void SetAxisLabelColor(
int index,
double red,
double green,
double blue);
301 void SetAxisLabelNotation(
int index,
int notation);
312 void SetAxisLabelPrecision(
int index,
int precision);
335 void SetAxisUseCustomRange(
int index,
bool useCustomRange);
346 void SetAxisLogScale(
int index,
bool logScale);
357 void SetAxisTitle(
int index,
const char*
title);
367 void SetAxisTitleFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
376 void SetAxisTitleFontFamily(
int index,
const char* family);
387 void SetAxisTitleFontFile(
int index,
const char* file);
398 void SetAxisTitleFontSize(
int index,
int pointSize);
409 void SetAxisTitleBold(
int index,
bool bold);
420 void SetAxisTitleItalic(
int index,
bool italic);
431 void SetAxisTitleColor(
int index,
double red,
double green,
double blue);
440 void SetAxisUseCustomLabels(
int index,
bool useCustomLabels);
448 void SetAxisLabelsNumber(
int axis,
int number);
456 void SetAxisLabels(
int axis,
int index,
const std::string&
value,
const std::string& label);
460 void SetTooltipLabelFormat(
const vtkStdString& labelFormat);
461 void SetTooltipNotation(
int notation);
462 void SetTooltipPrecision(
int precision);
470 vtkSetMacro(HideTimeMarker,
bool);
471 vtkGetMacro(HideTimeMarker,
bool);
479 vtkGetMacro(SortByXAxis,
bool);
480 vtkSetMacro(SortByXAxis,
bool);
488 static void SetIgnoreNegativeLogAxisWarning(
bool val);
490 static bool GetIgnoreNegativeLogAxisWarning();
520 void SetAxisRangeMinimum(
int index,
double min);
521 void SetAxisRangeMaximum(
int index,
double max);
526 void Render(
bool interactive)
override;
537 void SelectionChanged();
550 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.
static bool IgnoreNegativeLogAxisWarning
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()
#define PARAVIEW_DEPRECATED_IN_6_0_0(reason)
virtual vtkAbstractContextItem * GetContextItem()=0
Get the context item.