VTK  9.4.20250130
vtkGenericContourFilter.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
34#ifndef vtkGenericContourFilter_h
35#define vtkGenericContourFilter_h
36
37#include "vtkFiltersGenericModule.h" // For export macro
39
40VTK_ABI_NAMESPACE_BEGIN
43class vtkPointData;
44class vtkCellData;
45
46class VTKFILTERSGENERIC_EXPORT vtkGenericContourFilter : public vtkPolyDataAlgorithm
47{
48public:
50
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
58
59 typedef double PointType[3]; // Arbitrary definition of a point
60
62
65 void SetValue(int i, float value);
66 double GetValue(int i);
67 double* GetValues();
68 void GetValues(double* contourValues);
69 void SetNumberOfContours(int number);
71 void GenerateValues(int numContours, double range[2]);
72 void GenerateValues(int numContours, double rangeStart, double rangeEnd);
74
79
81
87 vtkSetMacro(ComputeNormals, vtkTypeBool);
88 vtkGetMacro(ComputeNormals, vtkTypeBool);
89 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
91
93
101 vtkSetMacro(ComputeGradients, vtkTypeBool);
102 vtkGetMacro(ComputeGradients, vtkTypeBool);
103 vtkBooleanMacro(ComputeGradients, vtkTypeBool);
105
107
110 vtkSetMacro(ComputeScalars, vtkTypeBool);
111 vtkGetMacro(ComputeScalars, vtkTypeBool);
112 vtkBooleanMacro(ComputeScalars, vtkTypeBool);
114
116
121 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
123
129
131
136 vtkGetStringMacro(InputScalarsSelection);
137 virtual void SelectInputScalars(const char* fieldName);
139
140protected:
143
145
147
153
155 vtkSetStringMacro(InputScalarsSelection);
156
157 // Used internal by vtkGenericAdaptorCell::Contour()
161
162private:
164 void operator=(const vtkGenericContourFilter&) = delete;
165};
166VTK_ABI_NAMESPACE_END
167#endif
represent and manipulate cell attribute data
helper object to manage setting and generating contour values
generate isocontours from input dataset
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Methods to set / get contour values.
void CreateDefaultLocator()
Create default locator.
void GetValues(double *contourValues)
Methods to set / get contour values.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetNumberOfContours(int number)
Methods to set / get contour values.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
~vtkGenericContourFilter() override
double * GetValues()
Methods to set / get contour values.
double GetValue(int i)
Methods to set / get contour values.
vtkIncrementalPointLocator * Locator
vtkMTimeType GetMTime() override
Modified GetMTime Because we delegate to vtkContourValues.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkIdType GetNumberOfContours()
Methods to set / get contour values.
virtual void SelectInputScalars(const char *fieldName)
If you want to contour by an arbitrary scalar attribute, then set its name here.
void SetValue(int i, float value)
Methods to set / get contour values.
static vtkGenericContourFilter * New()
Construct object with initial range (0,1) and single contour value of 0.0.
void GenerateValues(int numContours, double range[2])
Methods to set / get contour values.
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
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition vtkABI.h:64
int vtkIdType
Definition vtkType.h:315
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270