52 #include "vtkFiltersCoreModule.h"
57 #define VTK_SORT_BY_VALUE 0
58 #define VTK_SORT_BY_CELL 1
60 VTK_ABI_NAMESPACE_BEGIN
90 double GetValue(
int i) {
return this->ContourValues->GetValue(i); }
96 double*
GetValues() {
return this->ContourValues->GetValues(); }
103 void GetValues(
double* contourValues) { this->ContourValues->GetValues(contourValues); }
123 this->ContourValues->GenerateValues(numContours,
range);
132 this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
199 vtkGetMacro(SortBy,
int);
202 const char* GetSortByAsString();
224 vtkSetClampMacro(OutputPointsPrecision,
int, SINGLE_PRECISION, DEFAULT_PRECISION);
225 vtkGetMacro(OutputPointsPrecision,
int);
258 void operator=(
const vtkCutter&) =
delete;
268 return "SortByValue";
276 VTK_ABI_NAMESPACE_END
Cut vtkDataSet with user-specified implicit function.
vtkNew< vtkPlaneCutter > PlaneCutter
vtkNew< vtkRectilinearSynchronizedTemplates > RectilinearSynchronizedTemplates
void StructuredGridCutter(vtkDataSet *, vtkPolyData *)
const char * GetSortByAsString()
Return the sorting procedure as a descriptive character string.
void DataSetCutter(vtkDataSet *input, vtkPolyData *output)
virtual void SetCutFunction(vtkImplicitFunction *)
Specify the implicit function to perform the cutting.
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void CreateDefaultLocator()
Create default locator.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
vtkNew< vtkContourValues > ContourValues
vtkNew< vtkSynchronizedTemplates3D > SynchronizedTemplates3D
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
vtkMTimeType GetMTime() override
Override GetMTime because we delegate to vtkContourValues and refer to vtkImplicitFunction.
vtkCutter(vtkImplicitFunction *cf=nullptr)
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkIncrementalPointLocator * Locator
vtkNew< vtkGridSynchronizedTemplates3D > GridSynchronizedTemplates
vtkImplicitFunction * CutFunction
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetSortByToSortByCell()
Set the sorting order for the generated polydata.
vtkTypeBool GenerateCutScalars
void StructuredPointsCutter(vtkDataSet *, vtkPolyData *, vtkInformation *, vtkInformationVector **, vtkInformationVector *)
double * GetValues()
Get a pointer to an array of contour values.
static vtkCutter * New()
Construct with user-specified implicit function; initial value of 0.0; and generating cut scalars tur...
void SetValue(int i, double value)
Set a particular contour value at contour number i.
vtkTypeBool GenerateTriangles
void UnstructuredGridCutter(vtkDataSet *input, vtkPolyData *output)
int OutputPointsPrecision
void SetSortByToSortByValue()
Set the sorting order for the generated polydata.
vtkNew< vtkSynchronizedTemplatesCutter3D > SynchronizedTemplatesCutter3D
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
void RectilinearGridCutter(vtkDataSet *, vtkPolyData *)
static void GetCellTypeDimensions(unsigned char *cellTypeDimensions)
Normally I would put this in a different class, but since This is a temporary fix until we convert th...
double GetValue(int i)
Get the ith contour value.
abstract class to specify dataset behavior
generate isosurface from structured grids
abstract interface for implicit functions
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
cut any dataset with a plane and generate a polygonal cut surface
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
generate isosurface from rectilinear grid
generate isosurface from structured points
generate cut surface from structured points
#define VTK_SORT_BY_VALUE
vtkTypeUInt32 vtkMTimeType