Go to the documentation of this file.
28 #ifndef vtkPlotSurface_h
29 #define vtkPlotSurface_h
31 #include "vtkChartsCoreModule.h"
180 #endif //vtkPlotSurface_h
virtual void SetInputData(vtkTable *input, const vtkStdString &xName, const vtkStdString &yName, const vtkStdString &zName, const vtkStdString &colorName)
vtkIdType NumberOfVertices
The number of vertices in the surface.
float XMinimum
user-defined data ranges
vtkTable * InputTable
The input table used to generate the surface.
A table, which contains similar-typed columns of data.
static vtkPlotSurface * New()
bool DataHasBeenRescaled
true if user-defined data scaling has already been applied, false otherwise.
Class for drawing 2D primitives to a graphical context.
void InsertSurfaceVertex(float *data, float value, int i, int j, int &pos)
Helper function used to setup a colored surface.
void GenerateSurface()
Generate a surface (for OpenGL) from our list of points.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkNew< vtkLookupTable > LookupTable
The lookup table used to color the surface by height (Z dimension).
a simple class to control print indentation
virtual void SetInputData(vtkTable *input, const vtkStdString &xName, const vtkStdString &yName, const vtkStdString &zName)
Set the input to the surface plot.
virtual void SetInputData(vtkTable *input, vtkIdType xColumn, vtkIdType yColumn, vtkIdType zColumn)
void SetXRange(float min, float max)
Set the range of the input data for the X dimension.
Abstract class for 3D plots.
map scalar values into colors via a lookup table
float ColumnToX(int columnIndex)
Map a column index to the user-specified range for the X-axis.
float RowToY(int rowIndex)
Map a row index to the user-specified range for the Y-axis.
vtkNew< vtkUnsignedCharArray > Colors
This array indicates how the surface should be colored.
vtkIdType NumberOfRows
The number of rows in the input table.
void SetYRange(float min, float max)
Set the range of the input data for the Y dimension.
int ColorComponents
The number of components used to color the surface.
Wrapper around std::string to keep symbols short.
void RescaleData()
Change data values if SetXRange() or SetYRange() were called.
virtual bool Paint(vtkContext2D *painter)
Paint event for the XY plot, called whenever the chart needs to be drawn.
virtual void SetInputData(vtkTable *input)
Set the input to the surface plot.
std::vector< vtkVector3f > Surface
Surface to render.
vtkIdType NumberOfColumns
The number of columns in the input table.