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 =========================================================================*/
46 #ifndef vtkGenericCutter_h
47 #define vtkGenericCutter_h
48 
49 #include "vtkFiltersGenericModule.h" // For export macro
50 #include "vtkPolyDataAlgorithm.h"
51 
52 class vtkContourValues;
53 
56 class vtkPointData;
57 class vtkCellData;
58 
59 class VTKFILTERSGENERIC_EXPORT vtkGenericCutter : public vtkPolyDataAlgorithm
60 {
61 public:
63  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
64 
69  static vtkGenericCutter *New();
70 
75  void SetValue(int i, double value);
76 
80  double GetValue(int i);
81 
86  double *GetValues();
87 
93  void GetValues(double *contourValues);
94 
100  void SetNumberOfContours(int number);
101 
105  int GetNumberOfContours();
106 
111  void GenerateValues(int numContours, double range[2]);
112 
117  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
118 
123  vtkMTimeType GetMTime() VTK_OVERRIDE;
124 
126 
129  virtual void SetCutFunction(vtkImplicitFunction*);
130  vtkGetObjectMacro(CutFunction,vtkImplicitFunction);
132 
134 
139  vtkSetMacro(GenerateCutScalars,int);
140  vtkGetMacro(GenerateCutScalars,int);
141  vtkBooleanMacro(GenerateCutScalars,int);
143 
145 
149  void SetLocator(vtkIncrementalPointLocator *locator);
150  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
152 
157  void CreateDefaultLocator();
158 
159 protected:
161  ~vtkGenericCutter() VTK_OVERRIDE;
162 
164 
167  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
168  int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
170 
171  vtkImplicitFunction *CutFunction;
173  vtkContourValues *ContourValues;
174  int GenerateCutScalars;
175 
176  // Used internal by vtkGenericAdaptorCell::Contour()
177  vtkPointData *InternalPD;
178  vtkPointData *SecondaryPD;
179  vtkCellData *SecondaryCD;
180 
181 private:
182  vtkGenericCutter(const vtkGenericCutter&) VTK_DELETE_FUNCTION;
183  void operator=(const vtkGenericCutter&) VTK_DELETE_FUNCTION;
184 };
185 
186 #endif
187 
188 
abstract interface for implicit functions
cut a vtkGenericDataSet with an implicit function or scalar data
helper object to manage setting and generating contour values
represent and manipulate point attribute data
Definition: vtkPointData.h:31
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
represent and manipulate cell attribute data
Definition: vtkCellData.h:32
Abstract class in support of both point location and point insertion.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.