VTK  9.3.1
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
38 #include "vtkPolyDataAlgorithm.h"
39 
40 VTK_ABI_NAMESPACE_BEGIN
41 class vtkContourValues;
43 class vtkPointData;
44 class vtkCellData;
45 
46 class VTKFILTERSGENERIC_EXPORT vtkGenericContourFilter : public vtkPolyDataAlgorithm
47 {
48 public:
50 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
57  static vtkGenericContourFilter* New();
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);
70  vtkIdType GetNumberOfContours();
71  void GenerateValues(int numContours, double range[2]);
72  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
74 
78  vtkMTimeType GetMTime() override;
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 
120  void SetLocator(vtkIncrementalPointLocator* locator);
121  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
123 
128  void CreateDefaultLocator();
129 
131 
136  vtkGetStringMacro(InputScalarsSelection);
137  virtual void SelectInputScalars(const char* fieldName);
139 
140 protected:
142  ~vtkGenericContourFilter() override;
143 
145 
146  int FillInputPortInformation(int, vtkInformation*) override;
147 
153 
155  vtkSetStringMacro(InputScalarsSelection);
156 
157  // Used internal by vtkGenericAdaptorCell::Contour()
161 
162 private:
164  void operator=(const vtkGenericContourFilter&) = delete;
165 };
166 VTK_ABI_NAMESPACE_END
167 #endif
helper object to manage setting and generating contour values
represent and manipulate point attribute data
Definition: vtkPointData.h:29
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
represent and manipulate cell attribute data
Definition: vtkCellData.h:30
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:315
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
vtkIncrementalPointLocator * Locator
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
generate isocontours from input dataset
virtual vtkMTimeType GetMTime()
Return this object's modified time.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.