Go to the documentation of this file.
31 #include "vtkChartsCoreModule.h"
43 class vtkPlotBarPrivate;
87 virtual void SetColor(
unsigned char r,
unsigned char g,
unsigned char b,
89 virtual void SetColor(
double r,
double g,
double b);
104 vtkGetMacro(Width,
float);
115 vtkGetMacro(Offset,
float);
124 vtkGetMacro(Orientation,
int);
130 virtual void GetBounds(
double bounds[4],
bool unscaled);
176 vtkGetMacro(ScalarVisibility,
bool);
298 void operator=(
const vtkPlotBar &) VTK_DELETE_FUNCTION;
300 vtkPlotBarPrivate *Private;
304 #endif //vtkPlotBar_h
void SetColorSeries(vtkColorSeries *colorSeries)
Set the color series to use if this becomes a stacked bar plot.
represent and manipulate 2D points
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void GetUnscaledInputBounds(double bounds[4])
Get un-log-scaled bounds for this mapper as (Xmin,Xmax,Ymin,Ymax).
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
A table, which contains similar-typed columns of data.
vtkStdString ColorArrayName
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
void SelectColorArray(vtkIdType arrayNum)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
void GetDataBounds(double bounds[2])
Get the data bounds for this mapper as (Xmin,Xmax).
vtkStdString GetColorArrayName()
Get the array name to color by.
Class for drawing 2D primitives to a graphical context.
Abstract class for 2D plots.
vtkPoints2D * Points
Store a well packed set of XY coordinates for this data series.
vtkSmartPointer< vtkColorSeries > ColorSeries
The color series to use if this becomes a stacked bar.
vtkSmartPointer< vtkScalarsToColors > LookupTable
Lookup Table for coloring bars by scalar value.
Class for drawing an XY plot given two columns from a vtkTable.
virtual void SetInputArray(int index, const vtkStdString &name)
When used to set additional arrays, stacked bars are created.
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
Function to query a plot for the nearest point to the specified coordinate.
vtkColorSeries * GetColorSeries()
Get the color series used if when this is a stacked bar plot.
virtual void CreateDefaultLookupTable()
Create default lookup table.
vtkSmartPointer< vtkUnsignedCharArray > Colors
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
virtual vtkStringArray * GetLabels()
Get the plot labels.
virtual bool Paint(vtkContext2D *painter)
Paint event for the XY plot, called whenever the chart needs to be drawn.
virtual void GetColor(double rgb[3])
a simple class to control print indentation
virtual bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max)
Select all points in the specified rectangle.
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
Paint legend event for the XY plot, called whenever the legend needs the plot items symbol/mark/line ...
Superclass for mapping scalar values to colors.
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Set the plot color.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
bool UpdateTableCache(vtkTable *table)
Update the table cache.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int GetBarsCount()
Get amount of plotted bars.
static vtkPlotBar * New()
Creates a 2D Chart object.
virtual void SetLookupTable(vtkScalarsToColors *lut)
Specify a lookup table for the mapper to use.
a vtkAbstractArray subclass for strings
virtual void SetOrientation(int orientation)
Set/get the orientation of the bars.
virtual void GetBounds(double bounds[4])
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax).
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &, vtkVector2f *location, vtkIdType *segmentIndex)
Function to query a plot for the nearest point to the specified coordinate.
virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
Generate and return the tooltip label string for this plot The segmentIndex is implemented here.
Wrapper around std::string to keep symbols short.
virtual void SetGroupName(const vtkStdString &name)
Set the group name of the bar chart - can be displayed on the X axis.
virtual vtkScalarsToColors * GetLookupTable()
virtual void GetBounds(double bounds[4], bool unscaled)
A helper used by both GetUnscaledBounds and GetBounds(double[4]).
void SelectColorArray(const vtkStdString &arrayName)
virtual void SetColor(double r, double g, double b)
virtual vtkStdString GetGroupName()
Get the group name of the bar char - can be displayed on the X axis.