VTK
vtkGenericCutter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericCutter.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 =========================================================================*/
49 #ifndef vtkGenericCutter_h
50 #define vtkGenericCutter_h
51 
52 #include "vtkFiltersGenericModule.h" // For export macro
53 #include "vtkPolyDataAlgorithm.h"
54 
55 class vtkContourValues;
56 
59 class vtkPointData;
60 class vtkCellData;
61 
62 class VTKFILTERSGENERIC_EXPORT vtkGenericCutter : public vtkPolyDataAlgorithm
63 {
64 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
72  static vtkGenericCutter *New();
73 
78  void SetValue(int i, double value);
79 
83  double GetValue(int i);
84 
89  double *GetValues();
90 
96  void GetValues(double *contourValues);
97 
103  void SetNumberOfContours(int number);
104 
108  int GetNumberOfContours();
109 
114  void GenerateValues(int numContours, double range[2]);
115 
120  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
121 
126  vtkMTimeType GetMTime() override;
127 
129 
132  virtual void SetCutFunction(vtkImplicitFunction*);
133  vtkGetObjectMacro(CutFunction,vtkImplicitFunction);
135 
137 
142  vtkSetMacro(GenerateCutScalars,vtkTypeBool);
143  vtkGetMacro(GenerateCutScalars,vtkTypeBool);
144  vtkBooleanMacro(GenerateCutScalars,vtkTypeBool);
146 
148 
152  void SetLocator(vtkIncrementalPointLocator *locator);
153  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
155 
160  void CreateDefaultLocator();
161 
162 protected:
164  ~vtkGenericCutter() override;
165 
167 
171  int FillInputPortInformation(int, vtkInformation*) override;
173 
178 
179  // Used internal by vtkGenericAdaptorCell::Contour()
183 
184 private:
185  vtkGenericCutter(const vtkGenericCutter&) = delete;
186  void operator=(const vtkGenericCutter&) = delete;
187 };
188 
189 #endif
190 
191 
abstract interface for implicit functions
cut a vtkGenericDataSet with an implicit function or scalar data
helper object to manage setting and generating contour values
vtkTypeBool GenerateCutScalars
represent and manipulate point attribute data
Definition: vtkPointData.h:37
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkCellData * SecondaryCD
Abstract class in support of both point location and point insertion.
vtkImplicitFunction * CutFunction
vtkContourValues * ContourValues
vtkPointData * InternalPD
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
vtkIncrementalPointLocator * Locator
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkPointData * SecondaryPD
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.