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