24 #ifndef vtkPVXYChartView_h 25 #define vtkPVXYChartView_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); \ 75 void SetChartType(
const char* type);
111 void SetTitleColor(
double red,
double green,
double blue)
override;
132 void SetLegendVisibility(
int visible);
140 void SetLegendLocation(
int location);
145 void SetLegendPosition(
int x,
int y);
150 void SetLegendFontFamily(
const char* family);
155 void SetLegendFontFile(
const char* file);
160 void SetLegendFontSize(
int pointSize);
165 void SetLegendBold(
bool bold);
170 void SetLegendItalic(
bool italic);
175 void SetLegendSymbolWidth(
int width);
184 void SetGridVisibility(
int index,
bool visible);
195 void SetAxisColor(
int index,
double red,
double green,
double blue);
206 void SetGridColor(
int index,
double red,
double green,
double blue);
217 void SetAxisLabelVisibility(
int index,
bool visible);
227 void SetAxisLabelFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
233 void SetAxisLabelFontFamily(
int index,
const char* family);
241 void SetAxisLabelFontFile(
int index,
const char* file);
249 void SetAxisLabelFontSize(
int index,
int pointSize);
257 void SetAxisLabelBold(
int index,
bool bold);
265 void SetAxisLabelItalic(
int index,
bool italic);
276 void SetAxisLabelColor(
int index,
double red,
double green,
double blue);
287 void SetAxisLabelNotation(
int index,
int notation);
298 void SetAxisLabelPrecision(
int index,
int precision);
321 void SetAxisUseCustomRange(
int index,
bool useCustomRange);
332 void SetAxisLogScale(
int index,
bool logScale);
343 void SetAxisTitle(
int index,
const char*
title);
353 void SetAxisTitleFont(
int index,
const char* family,
int pointSize,
bool bold,
bool italic);
362 void SetAxisTitleFontFamily(
int index,
const char* family);
373 void SetAxisTitleFontFile(
int index,
const char* file);
384 void SetAxisTitleFontSize(
int index,
int pointSize);
395 void SetAxisTitleBold(
int index,
bool bold);
406 void SetAxisTitleItalic(
int index,
bool italic);
417 void SetAxisTitleColor(
int index,
double red,
double green,
double blue);
426 void SetAxisUseCustomLabels(
int index,
bool useCustomLabels);
434 void SetAxisLabelsNumber(
int axis,
int number);
442 void SetAxisLabels(
int axis,
int index,
const std::string&
value,
const std::string& label);
446 void SetTooltipNotation(
int notation);
447 void SetTooltipPrecision(
int precision);
455 vtkSetMacro(HideTimeMarker,
bool);
456 vtkGetMacro(HideTimeMarker,
bool);
464 vtkGetMacro(SortByXAxis,
bool);
465 vtkSetMacro(SortByXAxis,
bool);
509 void SetAxisRangeMinimum(
int index,
double min);
510 void SetAxisRangeMaximum(
int index,
double max);
515 void Render(
bool interactive)
override;
526 void SelectionChanged();
538 vtkInternals* Internals;
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.