Go to the documentation of this file.
31 #include "vtkChartsCoreModule.h"
43 class vtkPlotBarPrivate;
81 int legendIndex)
override;
87 void SetColor(
unsigned char r,
unsigned char g,
unsigned char b,
88 unsigned char a)
override;
89 void SetColor(
double r,
double g,
double b)
override;
90 void GetColor(
double rgb[3])
override;
99 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting Width to " << _arg);
100 if (this->Width != _arg)
114 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): returning Width of " << this->Width );
126 vtkSetMacro(Offset,
float);
127 vtkGetMacro(Offset,
float);
136 vtkGetMacro(Orientation,
int);
142 virtual void GetBounds(
double bounds[4],
bool unscaled);
147 void GetBounds(
double bounds[4])
override;
181 virtual void CreateDefaultLookupTable();
187 vtkSetMacro(ScalarVisibility,
bool);
188 vtkGetMacro(ScalarVisibility,
bool);
189 vtkBooleanMacro(ScalarVisibility,
bool);
198 void SelectColorArray(
vtkIdType arrayNum);
264 void GetDataBounds(
double bounds[2]);
273 bool UpdateTableCache(
vtkTable *table);
312 vtkPlotBarPrivate *Private;
316 #endif //vtkPlotBar_h
represent and manipulate 2D points
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,...
A table, which contains similar-typed columns of data.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkStdString ColorArrayName
record modification and/or execution time
dynamic, self-adjusting array of unsigned char
virtual void Modified()
Update the modification time for this object.
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Set the plot color.
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.
const char * GetClassName() const
Return the class name as a string.
float GetWidth() override
Get the width of the line.
virtual bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max)
Select all points in the specified rectangle.
void SetWidth(float _arg) override
Set the width of the line.
vtkSmartPointer< vtkUnsignedCharArray > Colors
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
Function to query a plot for the nearest point to the specified coordinate.
a simple class to control print indentation
Superclass for mapping scalar values to colors.
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...
virtual void SetInputArray(int index, const vtkStdString &name)
Convenience function to set the input arrays.
virtual vtkStringArray * GetLabels()
Get the plot labels.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
virtual void GetUnscaledInputBounds(double bounds[4])
Provide un-log-scaled bounds for the plot inputs.
a vtkAbstractArray subclass for strings
Wrapper around std::string to keep symbols short.
virtual void GetBounds(double bounds[4])
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
virtual void GetColor(double rgb[3])
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.