 |
VTK
9.1.0
|
Go to the documentation of this file.
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]);
527 virtual void TransformScreenToData(
528 const double inX,
const double inY,
double& outX,
double& outY);
529 virtual void TransformDataToScreen(
530 const double inX,
const double inY,
double& outX,
double& outY);
629 bool LegacyRecursionFlag =
false;
633 void operator=(
const vtkPlot&) =
delete;
provides a brush that fills shapes drawn by vtkContext2D.
vtkSmartPointer< vtkStringArray > AutoLabels
Holds Labels when they're auto-created.
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 int GetTooltipPrecision()
Sets/gets the tooltip precision.
vtkStdString TooltipLabelFormat
A printf-style string to build custom tooltip labels from.
vtkSmartPointer< vtkStringArray > IndexedLabels
Holds Labels when they're auto-created.
vtkSmartPointer< vtkBrush > Brush
This object stores the vtkBrush that controls how the plot is drawn.
data structure to represent mouse events.
Abstract class for 2D context mappers.
A table, which contains similar-typed columns of data.
vtkSmartPointer< vtkContextMapper2D > Data
This data member contains the data that will be plotted, it inherits from vtkAlgorithm.
bool Selectable
Whether plot points can be selected or not.
Class for drawing 2D primitives to a graphical context.
virtual int GetTooltipNotation()
Sets/gets the tooltip notation style.
Abstract class for 2D plots.
vtkSmartPointer< vtkStringArray > Labels
Plot labels, used by legend.
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 UpdateCache()
Subclasses that build data caches to speed up painting should override this method to update such cac...
bool UseIndexForXSeries
Use the Y array index for the X value.
void GetBounds(T a, double bds[6])
a simple class to control print indentation
vtkSmartPointer< vtkBrush > SelectionBrush
This object stores the vtkBrush that controls how the selected elements of the plot are drawn.
vtkStdString TooltipDefaultLabelFormat
The default printf-style string to build custom tooltip labels from.
#define VTK_DEPRECATED_IN_9_0_0(reason)
A atomic type representing the union of many types.
virtual vtkVariant GetProperty(const vtkStdString &property)
A General setter/getter that should be overridden.
vtkSmartPointer< vtkPen > Pen
This object stores the vtkPen that controls how the plot is 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...
vtkSmartPointer< vtkPen > SelectionPen
This object stores the vtkPen that controls how the selected elements of the plot are drawn.
vtkIdTypeArray * Selection
Selected indices for the table the plot is rendering.
virtual void SetTooltipNotation(int notation)
Sets/gets the tooltip notation style.
vtkAxis * XAxis
The X axis associated with this plot.
base class for items that are part of a vtkContextScene.
virtual void SetProperty(const vtkStdString &property, const vtkVariant &var)
A General setter/getter that should be overridden.
dynamic, self-adjusting array of vtkIdType
virtual void GetUnscaledInputBounds(double bounds[4])
Provide un-log-scaled bounds for the plot inputs.
takes care of drawing 2D axes
virtual void SetTooltipLabelFormat(const vtkStdString &label)
Sets/gets a printf-style string to build custom tooltip labels from.
a vtkAbstractArray subclass for strings
vtkRectd ShiftScale
The current shift in origin and scaling factor applied to the plot.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Wrapper around std::string to keep symbols short.
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.
virtual bool ClampPos(double pos[2])
Clamp the given 2D pos into the provided bounds Return true if the pos has been clamped,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetTooltipPrecision(int precision)
Sets/gets the tooltip precision.
vtkAxis * YAxis
The X axis associated with this plot.
virtual vtkStdString GetTooltipLabelFormat()
Sets/gets a printf-style string to build custom tooltip labels from.
vtkStdString GetNumber(double position, vtkAxis *axis)
Get the properly formatted number for the supplied position and axis.
bool Hit(const vtkContextMouseEvent &mouse) override
Returns true if the supplied x, y coordinate is inside the item.