 |
VTK
9.1.0
|
Go to the documentation of this file.
30 #ifndef vtkScalarsToColorsItem_h
31 #define vtkScalarsToColorsItem_h
33 #include "vtkChartsCoreModule.h"
60 vtkSetVector4Macro(UserBounds,
double);
61 vtkGetVector4Macro(UserBounds,
double);
77 vtkGetObjectMacro(PolyLinePen,
vtkPen);
96 vtkSetMacro(MaskAboveCurve,
bool);
97 vtkGetMacro(MaskAboveCurve,
bool);
136 vtkGetMacro(TextureWidth,
int);
152 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
155 double UserBounds[4];
157 bool Interpolate =
true;
represent and manipulate 2D points
Abstract class for ScalarsToColors items.
void SetHistogramTable(vtkTable *histogramTable)
Set/Get the vtkTable displayed as an histogram using a vtkPlotBar.
A table, which contains similar-typed columns of data.
static void OnScalarsToColorsModified(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
Called whenever the ScalarsToColors function(s) is modified.
abstract base class for most VTK objects
virtual bool ConfigurePlotBar()
Method to configure the plotbar histogram before painting it can be reimplemented by subclasses.
Class for drawing 2D primitives to a graphical context.
Abstract class for 2D plots.
vtkNew< vtkPoints2D > Shape
~vtkScalarsToColorsItem() override
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.
Class for drawing an XY plot given two columns from a vtkTable.
vtkNew< vtkPen > PolyLinePen
virtual void ScalarsToColorsModified(vtkObject *caller, unsigned long eid, void *calldata)
Called whenever the ScalarsToColors function(s) is modified.
vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &, vtkVector2f *location, vtkIdType *segmentIndex) override
Function to query a plot for the nearest point to the specified coordinate.
virtual void ComputeBounds(double *bounds)
Bounds of the item, by default (0, 1, 0, 1) but it depends on the range of the ScalarsToColors functi...
topologically and geometrically regular array of data
a simple class to control print indentation
virtual void ComputeTexture()=0
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex) override
Generate and return the tooltip label string for this plot The segmentIndex is implemented here.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool Paint(vtkContext2D *painter) override
Paint the texture into a rectangle defined by the bounds.
vtkNew< vtkPlotBar > PlotBar
vtkNew< vtkCallbackCommand > Callback
supports function callbacks
void GetBounds(double bounds[4]) override
Bounds of the item, use the UserBounds if valid otherwise compute the bounds of the item (based on th...
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Wrapper around std::string to keep symbols short.