Go to the documentation of this file.
28 #ifndef vtkPlotStacked_h
29 #define vtkPlotStacked_h
31 #include "vtkChartsCoreModule.h"
42 class vtkPlotStackedPrivate;
59 void SetColor(
unsigned char r,
unsigned char g,
unsigned char b,
60 unsigned char a)
override;
61 void SetColor(
double r,
double g,
double b)
override;
84 int legendIndex)
override;
179 vtkPlotStackedPrivate *Private;
183 #endif //vtkPlotStacked_h
represent and manipulate 2D points
Class for drawing an stacked polygon plot given an X, Ybase, Yextent in a vtkTable.
bool UpdateTableCache(vtkTable *table)
Update the table cache.
void SetColorSeries(vtkColorSeries *colorSeries)
Set the color series to use if this becomes a stacked bar plot.
void CalculateLogSeries()
Handle calculating the log of the x or y series if necessary.
static vtkPlotStacked * New()
Creates a Stacked Plot Object.
A table, which contains similar-typed columns of data.
record modification and/or execution time
vtkSmartPointer< vtkColorSeries > ColorSeries
The color series to use for each series.
void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) override
Set the plot color.
~vtkPlotStacked() override
bool Paint(vtkContext2D *painter) override
Paint event for the Stacked plot, called whenever the chart needs to be drawn.
Class for drawing 2D primitives to a graphical context.
Abstract class for 2D plots.
vtkColorSeries * GetColorSeries()
Get the color series used if when this is a stacked bar plot.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetColor(double rgb[3]) override
void SetInputArray(int index, const vtkStdString &name) override
When used to set additional arrays, stacked bars are created.
vtkStringArray * GetLabels() override
Get the plot labels.
void Update() override
Perform any updates to the item that may be necessary before rendering.
topologically and geometrically regular array of data
a simple class to control print indentation
vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location) override
Function to query a plot for the nearest point to the specified coordinate.
void SetColor(double r, double g, double b) override
vtkIdTypeArray * ExtentBadPoints
An array containing the indices of all the "bad extent points", meaning any x, y pair that has an inf...
bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex) override
Paint legend event for the Stacked plot, called whenever the legend needs the plot items symbol/mark/...
void GetBounds(double bounds[4]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax).
bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max) override
Select all points in the specified rectangle.
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
void GetUnscaledInputBounds(double bounds[4]) override
Get the unscaled input bounds for this mapper as (Xmin,Xmax,Ymin,Ymax).
dynamic, self-adjusting array of vtkIdType
a vtkAbstractArray subclass for strings
vtkIdTypeArray * BaseBadPoints
An array containing the indices of all the "bad base points", meaning any x, y pair that has an infin...
Factory class for drawing XY charts.
Wrapper around std::string to keep symbols short.