139#include "vtkChartsCoreModule.h"
168 vtkSetMacro(LegendVisibility,
bool);
169 vtkGetMacro(LegendVisibility,
bool);
170 vtkBooleanMacro(LegendVisibility,
bool);
255 virtual
void SetColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a);
256 virtual
void SetColor(
double r,
double g,
double b);
257 virtual
void GetColor(
double rgb[3]);
258 void GetColor(
unsigned char rgb[3]);
264 virtual
void SetWidth(
float width);
269 virtual
float GetWidth();
330 virtual
int GetNumberOfLabels();
359 vtkGetMacro(UseIndexForXSeries,
bool);
367 vtkSetMacro(UseIndexForXSeries,
bool);
376 virtual
void SetInputData(
400 vtkSetMacro(Selectable,
bool);
401 vtkGetMacro(Selectable,
bool);
402 vtkBooleanMacro(Selectable,
bool);
447 virtual
void GetBounds(
double bounds[4]) { bounds[0] = bounds[1] = bounds[2] = bounds[3] = 0.0; }
502 static bool ClampPos(
double pos[2],
double bounds[4]);
528 const double inX,
const double inY,
double& outX,
double& outY);
530 const double inX,
const double inY,
double& outX,
double& outY);
629 bool LegacyRecursionFlag =
false;
633 void operator=(
const vtkPlot&) =
delete;
takes care of drawing 2D axes
provides a brush that fills shapes drawn by vtkContext2D.
Class for drawing 2D primitives to a graphical context.
base class for items that are part of a vtkContextScene.
Abstract class for 2D context mappers.
data structure to represent mouse events.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Abstract class for 2D plots.
bool UseIndexForXSeries
Use the Y array index for the X value.
virtual void UpdateCache()
Subclasses that build data caches to speed up painting should override this method to update such cac...
virtual int GetTooltipPrecision()
Sets/gets the tooltip precision.
vtkRectd ShiftScale
The current shift in origin and scaling factor applied to the plot.
virtual int GetTooltipNotation()
Sets/gets the tooltip notation style.
vtkSmartPointer< vtkStringArray > IndexedLabels
Holds Labels when they're auto-created.
vtkAxis * XAxis
The X axis associated with this plot.
virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
Generate and return the tooltip label string for this plot The segmentIndex parameter is ignored,...
virtual vtkStdString GetTooltipLabelFormat()
Sets/gets a printf-style string to build custom tooltip labels from.
virtual vtkVariant GetProperty(const vtkStdString &property)
A General setter/getter that should be overridden.
virtual void GetUnscaledInputBounds(double bounds[4])
Provide un-log-scaled bounds for the plot inputs.
vtkIdTypeArray * Selection
Selected indices for the table the plot is rendering.
vtkSmartPointer< vtkBrush > SelectionBrush
This object stores the vtkBrush that controls how the selected elements of the plot are drawn.
virtual void SetTooltipLabelFormat(const vtkStdString &label)
Sets/gets a printf-style string to build custom tooltip labels from.
vtkAxis * YAxis
The X axis associated with this plot.
vtkStdString TooltipDefaultLabelFormat
The default printf-style string to build custom tooltip labels from.
vtkSmartPointer< vtkPen > SelectionPen
This object stores the vtkPen that controls how the selected elements of the plot are drawn.
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
Paint legend event for the plot, called whenever the legend needs the plot items symbol/mark/line dra...
virtual void SetProperty(const vtkStdString &property, const vtkVariant &var)
A General setter/getter that should be overridden.
vtkStdString TooltipLabelFormat
A printf-style string to build custom tooltip labels from.
bool Selectable
Whether plot points can be selected or not.
vtkSmartPointer< vtkContextMapper2D > Data
This data member contains the data that will be plotted, it inherits from vtkAlgorithm.
vtkSmartPointer< vtkStringArray > Labels
Plot labels, used by legend.
virtual void SetTooltipPrecision(int precision)
Sets/gets the tooltip precision.
static bool ClampPos(double pos[2], double bounds[4])
Clamp the given 2D pos into the provided bounds Return true if the pos has been clamped,...
virtual void TransformScreenToData(const vtkVector2f &in, vtkVector2f &out)
Transform the mouse event in the control-points space.
bool Hit(const vtkContextMouseEvent &mouse) override
Returns true if the supplied x, y coordinate is inside the item.
virtual void TransformDataToScreen(const double inX, const double inY, double &outX, double &outY)
Transform the mouse event in the control-points space.
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location, vtkIdType *segmentId)
Function to query a plot for the nearest point to the specified coordinate.
vtkSmartPointer< vtkStringArray > AutoLabels
Holds Labels when they're auto-created.
virtual void TransformDataToScreen(const vtkVector2f &in, vtkVector2f &out)
Transform the mouse event in the control-points space.
virtual bool ClampPos(double pos[2])
Clamp the given 2D pos into the provided bounds Return true if the pos has been clamped,...
vtkStdString GetNumber(double position, vtkAxis *axis)
Get the properly formatted number for the supplied position and axis.
vtkSmartPointer< vtkBrush > Brush
This object stores the vtkBrush that controls how the plot is drawn.
vtkSmartPointer< vtkPen > Pen
This object stores the vtkPen that controls how the plot is drawn.
virtual void TransformScreenToData(const double inX, const double inY, double &outX, double &outY)
Transform the mouse event in the control-points space.
virtual void SetTooltipNotation(int notation)
Sets/gets the tooltip notation style.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
A atomic type representing the union of many types.
void GetBounds(T a, double bds[6])
vtkSmartPointer< vtkDataArray > GetData(const Ioss::GroupingEntity *entity, const std::string &fieldname, Ioss::Transform *transform=nullptr, Cache *cache=nullptr, const std::string &cachekey=std::string())
Returns a VTK array for a given field (fieldname) on the chosen block (or set) entity.
#define VTK_DEPRECATED_IN_9_0_0(reason)