24 #include "vtkChartsCoreModule.h"
32 VTK_ABI_NAMESPACE_BEGIN
62 vtkSetMacro(LegendVisibility,
bool);
63 vtkGetMacro(LegendVisibility,
bool);
64 vtkBooleanMacro(LegendVisibility,
bool);
99 virtual void SetTooltipLabelFormat(
const vtkStdString& label);
107 virtual void SetTooltipNotation(
int notation);
108 virtual int GetTooltipNotation();
115 virtual void SetTooltipPrecision(
int precision);
116 virtual int GetTooltipPrecision();
149 virtual
void SetColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a);
150 virtual
void SetColor(
unsigned char r,
unsigned char g,
unsigned char b);
158 virtual
void SetColorF(
double r,
double g,
double b,
double a);
160 virtual
void SetColorF(
double r,
double g,
double b);
167 virtual
void GetColor(
unsigned char rgb[3]);
169 void GetColorRGBA(
unsigned char rgba[4]);
177 virtual
void GetColorF(
double rgb[3]);
183 virtual
void SetWidth(
float width);
188 virtual
float GetWidth();
211 void SetSelectionPen(
vtkPen* pen);
212 vtkPen* GetSelectionPen();
220 void SetSelectionBrush(
vtkBrush* brush);
249 virtual
int GetNumberOfLabels();
278 vtkGetMacro(UseIndexForXSeries,
bool);
286 vtkSetMacro(UseIndexForXSeries,
bool);
295 virtual
void SetInputData(
vtkTable* table);
296 virtual
void SetInputData(
333 void SetXAxisInputArrayToProcess(const
std::
string& name);
334 std::
string GetXAxisInputArrayToProcess();
335 void SetYAxisInputArrayToProcess(const
std::
string& name);
336 std::
string GetYAxisInputArrayToProcess();
346 vtkSetMacro(Selectable,
bool);
347 vtkGetMacro(Selectable,
bool);
348 vtkBooleanMacro(Selectable,
bool);
365 vtkGetObjectMacro(XAxis,
vtkAxis);
366 virtual
void SetXAxis(vtkAxis* axis);
373 vtkGetObjectMacro(YAxis, vtkAxis);
374 virtual
void SetYAxis(vtkAxis* axis);
384 void SetShiftScale(const
vtkRectd& shiftScale);
393 virtual
void GetBounds(
double bounds[4]) { bounds[0] = bounds[1] = bounds[2] = bounds[3] = 0.0; }
440 static bool ClampPos(
double pos[2],
double bounds[4]);
441 virtual bool ClampPos(
double pos[2]);
461 static void FilterSelectedPoints(
480 virtual void TransformScreenToData(
double inX,
double inY,
double& outX,
double& outY);
481 virtual void TransformDataToScreen(
double inX,
double inY,
double& outX,
double& outY);
487 virtual bool CacheRequiresUpdate();
587 void operator=(
const vtkPlot&) =
delete;
590 VTK_ABI_NAMESPACE_END
vtkAxis * XAxis
The X axis associated with this plot.
Wrapper around std::string to keep symbols short.
void GetBounds(T a, double bds[6])
vtkRectd ShiftScale
The current shift in origin and scaling factor applied to the plot.
base class for items that are part of a vtkContextScene.
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.
record modification and/or execution time
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
bool Selectable
Whether plot points can be selected or not.
Abstract class for 2D context mappers.
vtkSmartPointer< vtkPen > SelectionPen
This object stores the vtkPen that controls how the selected elements of the plot are drawn...
A type representing the union of many types.
Proxy object to connect input/output ports.
vtkStdString TooltipDefaultLabelFormat
The default printf-style string to build custom tooltip labels from.
vtkIdTypeArray * Selection
Selected indices for the table the plot is rendering.
Class for drawing 2D primitives to a graphical context.
provides a brush that fills shapes drawn by vtkContext2D.
takes care of drawing 2D axes
data structure to represent mouse events.
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...
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
vtkSmartPointer< vtkContextMapper2D > Data
This data member contains the data that will be plotted, it inherits from vtkAlgorithm.
#define VTK_MARSHALGETTER(property)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for arrays of numeric data
virtual bool UpdateCache()
Update the internal cache.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Abstract class for 2D plots.
vtkSmartPointer< vtkStringArray > Labels
Plot labels, used by legend.
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_MARSHALEXCLUDE(reason)
vtkSmartPointer< vtkStringArray > AutoLabels
Holds Labels when they're auto-created.
A table, which contains similar-typed columns of data.
virtual void GetUnscaledInputBounds(double bounds[4])
Provide un-log-scaled bounds for the plot inputs.
vtkAxis * YAxis
The X axis associated with this plot.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
vtkStdString TooltipLabelFormat
A printf-style string to build custom tooltip labels from.
vtkSmartPointer< vtkPen > Pen
This object stores the vtkPen that controls how the plot is drawn.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALSETTER(property)
bool UseIndexForXSeries
Use the Y array index for the X value.