VTK  9.5.20251214
vtkGenericCutter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
36
37#ifndef vtkGenericCutter_h
38#define vtkGenericCutter_h
39
40#include "vtkFiltersGenericModule.h" // For export macro
42
43VTK_ABI_NAMESPACE_BEGIN
45
48class vtkPointData;
49class vtkCellData;
50
51class VTKFILTERSGENERIC_EXPORT vtkGenericCutter : public vtkPolyDataAlgorithm
52{
53public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
62
67 void SetValue(int i, double value);
68
72 double GetValue(int i);
73
78 double* GetValues();
79
85 void GetValues(double* contourValues);
86
92 void SetNumberOfContours(int number);
93
98
103 void GenerateValues(int numContours, double range[2]);
104
109 void GenerateValues(int numContours, double rangeStart, double rangeEnd);
110
116
118
122 vtkGetObjectMacro(CutFunction, vtkImplicitFunction);
124
126
135
137
144
150
151protected:
154
156
162
167
168 // Used internal by vtkGenericAdaptorCell::Contour()
172
173private:
174 vtkGenericCutter(const vtkGenericCutter&) = delete;
175 void operator=(const vtkGenericCutter&) = delete;
176};
177
178VTK_ABI_NAMESPACE_END
179#endif
represent and manipulate cell attribute data
helper object to manage setting and generating contour values
vtkIncrementalPointLocator * Locator
static vtkGenericCutter * New()
Construct with user-specified implicit function; initial value of 0.0; and generating cut scalars tur...
vtkImplicitFunction * CutFunction
vtkPointData * InternalPD
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkTypeBool GenerateCutScalars
double * GetValues()
Get a pointer to an array of contour values.
int FillInputPortInformation(int, vtkInformation *) override
Actual implementation of the cutter operation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContourValues * ContourValues
void SetValue(int i, double value)
Set a particular contour value at contour number i.
double GetValue(int i)
Get the ith contour value.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
~vtkGenericCutter() override
void GetValues(double *contourValues)
Fill a supplied list with contour values.
vtkMTimeType GetMTime() override
Override GetMTime because we delegate to vtkContourValues and refer to vtkImplicitFunction.
vtkPointData * SecondaryPD
vtkGenericCutter(vtkImplicitFunction *cf=nullptr)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Actual implementation of the cutter operation.
vtkCellData * SecondaryCD
void CreateDefaultLocator()
Create default locator.
virtual void SetCutFunction(vtkImplicitFunction *)
Specify the implicit function to perform the cutting.
abstract interface for implicit functions
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
int vtkTypeBool
Definition vtkABI.h:64
int vtkIdType
Definition vtkType.h:367
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322