 |
VTK
9.0.1
|
Go to the documentation of this file.
30 #ifndef vtkPlotPoints_h
31 #define vtkPlotPoints_h
33 #include "vtkChartsCoreModule.h"
136 #ifndef VTK_LEGACY_REMOVE
139 vtkIdType* segmentId =
nullptr)
override;
140 #endif // VTK_LEGACY_REMOVE
142 #ifndef VTK_LEGACY_REMOVE
144 #endif // VTK_LEGACY_REMOVE
174 vtkGetMacro(MarkerStyle,
int);
175 vtkSetMacro(MarkerStyle,
int);
183 vtkGetMacro(MarkerSize,
float);
184 vtkSetMacro(MarkerSize,
float);
298 double UnscaledInputBounds[4];
305 #endif // vtkPlotPoints_h
represent and manipulate 2D points
void FindBadPoints()
Find all of the "bad points" in the series.
vtkCharArray * ValidPointMask
Array which marks valid points in the array.
int MarkerStyle
The marker style that should be used.
dynamic, self-adjusting array of float
static vtkPlotPoints * New()
Creates a 2D Chart object.
A table, which contains similar-typed columns of data.
void CalculateUnscaledInputBounds()
Calculate the unscaled input bounds from the input arrays.
record modification and/or execution time
bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex) override
Paint legend event for the XY plot, called whenever the legend needs the plot items symbol/mark/line ...
bool GetDataArrays(vtkTable *table, vtkDataArray *array[2])
Populate the data arrays ready to operate on input data.
dynamic, self-adjusting array of unsigned char
vtkPoints2D * Points
Store a well packed set of XY coordinates for this data series.
vtkIdTypeArray * BadPoints
An array containing the indices of all the "bad points", meaning any x, y pair that has an infinity,...
vtkTypeBool ScalarVisibility
void CreateSortedPoints()
Create the sorted point list if necessary.
bool UpdateTableCache(vtkTable *table)
Update the table cache.
Class for drawing 2D primitives to a graphical context.
void GetUnscaledInputBounds(double bounds[4]) override
Get the non-log-scaled bounds on chart inputs for this plot as (Xmin, Xmax, Ymin, Ymax).
abstract superclass for arrays of numeric data
Abstract class for 2D plots.
void SelectColorArray(vtkIdType arrayNum)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
vtkScalarsToColors * LookupTable
Lookup Table for coloring points by scalar value.
~vtkPlotPoints() override
vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location, vtkIdType *segmentId) override
Function to query a plot for the nearest point to the specified coordinate.
dynamic, self-adjusting array of char
vtkNew< vtkFloatArray > SelectedPoints
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.
void CalculateLogSeries()
Handle calculating the log of the x or y series if necessary.
bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max) override
Select all points in the specified rectangle.
bool SelectPointsInPolygon(const vtkContextPolygon &polygon) override
Select all points in the specified polygon.
void GetBounds(double bounds[4]) override
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
void SetLookupTable(vtkScalarsToColors *lut)
Specify a lookup table for the mapper to use.
bool Paint(vtkContext2D *painter) override
Paint event for the XY plot, called whenever the chart needs to be drawn.
vtkScalarsToColors * GetLookupTable()
vtkStdString GetColorArrayName()
Get the array name to color by.
void CalculateBounds(double bounds[4])
Calculate the bounds of the plot, ignoring the bad points.
topologically and geometrically regular array of data
a simple class to control print indentation
void SelectColorArray(const vtkStdString &arrayName)
Superclass for mapping scalar values to colors.
Class for drawing an points given two columns from a vtkTable.
dynamic, self-adjusting array of vtkIdType
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
vtkUnsignedCharArray * Colors
vtkStdString ValidPointMaskName
Name of the valid point mask array.
virtual void CreateDefaultLookupTable()
Create default lookup table.
Wrapper around std::string to keep symbols short.
void Update() override
Perform any updates to the item that may be necessary before rendering.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStdString ColorArrayName