44#ifndef vtkBandedPolyDataContourFilter_h
45#define vtkBandedPolyDataContourFilter_h
47#include "vtkFiltersModelingModule.h"
58struct vtkBandedPolyDataContourFilterInternals;
60#define VTK_SCALAR_MODE_INDEX 0
61#define VTK_SCALAR_MODE_VALUE 1
81 void SetValue(
int i,
double value);
82 double GetValue(
int i);
84 void GetValues(
double* contourValues);
85 void SetNumberOfContours(
int number);
87 void GenerateValues(
int numContours,
double range[2]);
88 void GenerateValues(
int numContours,
double rangeStart,
double rangeEnd);
111 vtkGetMacro(ScalarMode,
int);
135 vtkSetMacro(ClipTolerance,
double);
136 vtkGetMacro(ClipTolerance,
double);
144 vtkSetMacro(Component,
int);
145 vtkGetMacro(Component,
int);
259 int numContours,
double rangeStart,
double rangeEnd)
generate filled contours for vtkPolyData
vtkMTimeType GetMTime() override
Overload GetMTime because we delegate to vtkContourValues so its modified time must be taken into acc...
double * GetValues()
Get a pointer to an array of contour values.
double GetValue(int i)
Get the ith contour value.
int InsertLine(vtkCellArray *cells, vtkIdType pt1, vtkIdType pt2, int cellId, double s, vtkFloatArray *newS)
int InsertCell(vtkCellArray *cells, int npts, const vtkIdType *pts, int cellId, double s, vtkFloatArray *newS)
void SetScalarModeToIndex()
Control whether the cell scalars are output as an integer index or a scalar value.
~vtkBandedPolyDataContourFilter() override
vtkPolyData * GetContourEdgesOutput()
Get the second output which contains the edges dividing the contour bands.
int ComputeClippedIndex(double s)
static vtkBandedPolyDataContourFilter * New()
Construct object with no contours defined.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkContourValues * ContourValues
void SetScalarModeToValue()
Control whether the cell scalars are output as an integer index or a scalar value.
int InsertNextScalar(vtkFloatArray *scalars, int cellId, int idx)
int ClipEdge(int v1, int v2, vtkPoints *pts, vtkDataArray *inScalars, vtkDoubleArray *outScalars, vtkPointData *inPD, vtkPointData *outPD, vtkIdType edgePts[])
vtkTypeBool GenerateContourEdges
void SetValue(int i, double value)
Methods to set / get contour values.
vtkBandedPolyDataContourFilter()
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkBandedPolyDataContourFilterInternals * Internal
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
object to represent cell connectivity
helper object to manage setting and generating contour values
double * GetValues()
Return a pointer to a list of contour values.
int GetNumberOfContours()
Return the number of contours in the.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
void SetNumberOfContours(const int number)
Set the number of contours to place into the list.
void SetValue(int i, double value)
Set the ith contour value.
double GetValue(int i)
Get the ith contour value.
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of double
dynamic, self-adjusting array of float
a simple class to control print indentation
represent and manipulate point attribute data
represent and manipulate 3D points
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
#define VTK_SCALAR_MODE_VALUE
#define VTK_SCALAR_MODE_INDEX
vtkTypeUInt32 vtkMTimeType