19 #include "vtkChartsCoreModule.h"
23 VTK_ABI_NAMESPACE_BEGIN
32 class vtkPlotBarPrivate;
70 void SetColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a)
override;
76 void SetColorF(
double r,
double g,
double b,
double a)
override;
77 void SetColorF(
double r,
double g,
double b)
override;
80 void SetColor(
double r,
double g,
double b)
override { this->
SetColorF(r, g, b); };
90 void GetColor(
double rgb[3])
override { this->
GetColorF(rgb); };
99 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting Width to " << _arg);
100 if (this->Width != _arg)
114 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): returning Width of "
127 vtkSetMacro(Offset,
float);
128 vtkGetMacro(Offset,
float);
137 vtkGetMacro(Orientation,
int);
143 virtual void GetBounds(
double bounds[4],
bool unscaled);
148 void GetBounds(
double bounds[4])
override;
182 virtual void CreateDefaultLookupTable();
188 vtkSetMacro(ScalarVisibility,
bool);
189 vtkGetMacro(ScalarVisibility,
bool);
190 vtkBooleanMacro(ScalarVisibility,
bool);
197 vtkSetMacro(EnableOpacityMapping,
bool);
198 vtkGetMacro(EnableOpacityMapping,
bool);
199 vtkBooleanMacro(EnableOpacityMapping,
bool);
208 void SelectColorArray(
vtkIdType arrayNum);
263 void GetDataBounds(
double bounds[2]);
315 vtkPlotBarPrivate* Private;
318 VTK_ABI_NAMESPACE_END
319 #endif // vtkPlotBar_h
Wrapper around std::string to keep symbols short.
vtkSmartPointer< vtkUnsignedCharArray > Colors
Lookup Table for coloring bars by scalar value.
void SetWidth(float _arg) override
Set the width of the line.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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 SetColorF(double r, double g, double b, double a)
Set the plot color with floating values (comprised between 0.0 and 1.0)
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
virtual void GetBounds(double bounds[4])
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
a vtkAbstractArray subclass for strings
bool EnableOpacityMapping
Lookup Table for coloring bars by scalar value.
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location, vtkIdType *segmentId)
Function to query a plot for the nearest point to the specified coordinate.
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Set the plot color with integer values (comprised between 0 and 255)
Superclass for mapping scalar values to colors.
virtual void GetColorF(double rgb[3])
Get the plot color as floating rgb values (comprised between 0.0 and 1.0)
#define VTK_DEPRECATED_IN_9_3_0(reason)
Class for drawing 2D primitives to a graphical context.
virtual bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max)
Select all points in the specified rectangle.
bool ScalarVisibility
Lookup Table for coloring bars by scalar value.
a simple class to control print indentation
const char * GetClassName() const
Return the class name as a string.
represent and manipulate 2D points
virtual vtkStringArray * GetLabels()
Get the plot labels.
virtual bool UpdateCache()
Update the internal cache.
virtual void Modified()
Update the modification time for this object.
Abstract class for 2D plots.
Class for drawing an XY plot given two columns from a vtkTable.
dynamic, self-adjusting array of unsigned char
virtual bool CacheRequiresUpdate()
Test if the internal cache requires an update.
virtual void SetInputArray(int index, const vtkStdString &name)
Convenience function to set the input arrays.
A table, which contains similar-typed columns of data.
virtual void GetUnscaledInputBounds(double bounds[4])
Provide un-log-scaled bounds for the plot inputs.
vtkSmartPointer< vtkScalarsToColors > LookupTable
Lookup Table for coloring bars by scalar value.
vtkPoints2D * Points
Store a well packed set of XY coordinates for this data series.
float GetWidth() override
Get the width of the line.
vtkSmartPointer< vtkColorSeries > ColorSeries
The color series to use if this becomes a stacked bar.
vtkStdString ColorArrayName
Lookup Table for coloring bars by scalar value.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
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...