12 #ifndef vtkPVXYChartView_h 13 #define vtkPVXYChartView_h 23 #define GENERATE_AXIS_FUNCTIONS(name, type) \ 24 void SetLeft##name(type value) { Set##name(vtkAxis::LEFT, value); } \ 25 void SetBottom##name(type value) { Set##name(vtkAxis::BOTTOM, value); } \ 26 void SetRight##name(type value) { Set##name(vtkAxis::RIGHT, value); } \ 27 void SetTop##name(type value) { Set##name(vtkAxis::TOP, value); } 29 #define GENERATE_AXIS_FUNCTIONS2(name, type1, type2) \ 30 void SetLeft##name(type1 value1, type2 value2) { Set##name(vtkAxis::LEFT, value1, value2); } \ 31 void SetBottom##name(type1 value1, type2 value2) { Set##name(vtkAxis::BOTTOM, value1, value2); } \ 32 void SetRight##name(type1 value1, type2 value2) { Set##name(vtkAxis::RIGHT, value1, value2); } \ 33 void SetTop##name(type1 value1, type2 value2) { Set##name(vtkAxis::TOP, value1, value2); } 35 #define GENERATE_AXIS_FUNCTIONS3(name, type1, type2, type3) \ 36 void SetLeft##name(type1 value1, type2 value2, type3 value3) \ 38 Set##name(vtkAxis::LEFT, value1, value2, value3); \ 40 void SetBottom##name(type1 value1, type2 value2, type3 value3) \ 42 Set##name(vtkAxis::BOTTOM, value1, value2, value3); \ 44 void SetRight##name(type1 value1, type2 value2, type3 value3) \ 46 Set##name(vtkAxis::RIGHT, value1, value2, value3); \ 48 void SetTop##name(type1 value1, type2 value2, type3 value3) \ 50 Set##name(vtkAxis::TOP, value1, value2, value3); \ 63 void SetChartType(
const char* type);
100 void SetTitleColor(
double red,
double green,
double blue)
override;
121 void SetLegendVisibility(
int visible);
129 void SetLegendLocation(
int location);
134 void SetLegendPosition(
int x,
int y);
139 void SetLegendFontFamily(
const char* family);
144 void SetLegendFontFile(
const char* file);
149 void SetLegendFontSize(
int pointSize);
154 void SetLegendBold(
bool bold);
159 void SetLegendItalic(
bool italic);
164 void SetLegendSymbolWidth(
int width);
173 void SetGridVisibility(
int index,
bool visible);
184 void SetAxisColor(
int index,
double red,
double green,
double blue);
195 void SetGridColor(
int index,
double red,
double green,
double blue);
206 void SetAxisLabelVisibility(
int index,
bool visible);
216 void SetAxisLabelFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
222 void SetAxisLabelFontFamily(
int index,
const char* family);
230 void SetAxisLabelFontFile(
int index,
const char* file);
238 void SetAxisLabelFontSize(
int index,
int pointSize);
246 void SetAxisLabelBold(
int index,
bool bold);
254 void SetAxisLabelItalic(
int index,
bool italic);
265 void SetAxisLabelColor(
int index,
double red,
double green,
double blue);
276 void SetAxisLabelNotation(
int index,
int notation);
287 void SetAxisLabelPrecision(
int index,
int precision);
310 void SetAxisUseCustomRange(
int index,
bool useCustomRange);
321 void SetAxisLogScale(
int index,
bool logScale);
332 void SetAxisTitle(
int index,
const char*
title);
342 void SetAxisTitleFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
351 void SetAxisTitleFontFamily(
int index,
const char* family);
362 void SetAxisTitleFontFile(
int index,
const char* file);
373 void SetAxisTitleFontSize(
int index,
int pointSize);
384 void SetAxisTitleBold(
int index,
bool bold);
395 void SetAxisTitleItalic(
int index,
bool italic);
406 void SetAxisTitleColor(
int index,
double red,
double green,
double blue);
415 void SetAxisUseCustomLabels(
int index,
bool useCustomLabels);
423 void SetAxisLabelsNumber(
int axis,
int number);
431 void SetAxisLabels(
int axis,
int index,
const std::string&
value,
const std::string& label);
435 void SetTooltipLabelFormat(
const vtkStdString& labelFormat);
436 void SetTooltipNotation(
int notation);
437 void SetTooltipPrecision(
int precision);
445 vtkSetMacro(HideTimeMarker,
bool);
446 vtkGetMacro(HideTimeMarker,
bool);
454 vtkGetMacro(SortByXAxis,
bool);
455 vtkSetMacro(SortByXAxis,
bool);
499 void SetAxisRangeMinimum(
int index,
double min);
500 void SetAxisRangeMaximum(
int index,
double max);
505 void Render(
bool interactive)
override;
516 void SelectionChanged();
528 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.
static bool GetIgnoreNegativeLogAxisWarning()
static void SetIgnoreNegativeLogAxisWarning(bool val)
When plotting data with nonpositive values, ignore the standard warning and draw only the data with p...
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.