VTK  9.2.5
vtkGenericContourFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGenericContourFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
46#ifndef vtkGenericContourFilter_h
47#define vtkGenericContourFilter_h
48
49#include "vtkFiltersGenericModule.h" // For export macro
51
54class vtkPointData;
55class vtkCellData;
56
57class VTKFILTERSGENERIC_EXPORT vtkGenericContourFilter : public vtkPolyDataAlgorithm
58{
59public:
61
62 void PrintSelf(ostream& os, vtkIndent indent) override;
63
69
70 typedef double PointType[3]; // Arbitrary definition of a point
71
73
76 void SetValue(int i, float value);
77 double GetValue(int i);
78 double* GetValues();
79 void GetValues(double* contourValues);
80 void SetNumberOfContours(int number);
82 void GenerateValues(int numContours, double range[2]);
83 void GenerateValues(int numContours, double rangeStart, double rangeEnd);
85
90
92
98 vtkSetMacro(ComputeNormals, vtkTypeBool);
99 vtkGetMacro(ComputeNormals, vtkTypeBool);
100 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
102
104
112 vtkSetMacro(ComputeGradients, vtkTypeBool);
113 vtkGetMacro(ComputeGradients, vtkTypeBool);
114 vtkBooleanMacro(ComputeGradients, vtkTypeBool);
116
118
121 vtkSetMacro(ComputeScalars, vtkTypeBool);
122 vtkGetMacro(ComputeScalars, vtkTypeBool);
123 vtkBooleanMacro(ComputeScalars, vtkTypeBool);
125
127
132 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
134
140
142
147 vtkGetStringMacro(InputScalarsSelection);
148 virtual void SelectInputScalars(const char* fieldName);
150
151protected:
154
156
158
164
166 vtkSetStringMacro(InputScalarsSelection);
167
168 // Used internal by vtkGenericAdaptorCell::Contour()
172
173private:
175 void operator=(const vtkGenericContourFilter&) = delete;
176};
177#endif
represent and manipulate cell attribute data
Definition: vtkCellData.h:42
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:42
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287