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);
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 
109 
114  void GenerateValues(int numContours, double range[2]);
115 
120  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
121 
127 
129 
133  vtkGetObjectMacro(CutFunction,vtkImplicitFunction);
135 
137 
142  vtkSetMacro(GenerateCutScalars,int);
143  vtkGetMacro(GenerateCutScalars,int);
144  vtkBooleanMacro(GenerateCutScalars,int);
146 
148 
153  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
155 
161 
162 protected:
165 
167 
173 
178 
179  // Used internal by vtkGenericAdaptorCell::Contour()
183 
184 private:
185  vtkGenericCutter(const vtkGenericCutter&) VTK_DELETE_FUNCTION;
186  void operator=(const vtkGenericCutter&) VTK_DELETE_FUNCTION;
187 };
188 
189 #endif
190 
191 
vtkGenericCutter::SetNumberOfContours
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:38
vtkGenericCutter::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkGenericCutter::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkGenericCutter
cut a vtkGenericDataSet with an implicit function or scalar data
Definition: vtkGenericCutter.h:63
vtkX3D::range
@ range
Definition: vtkX3D.h:238
vtkGenericCutter::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
vtkGenericCutter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkGenericCutter::GetMTime
vtkMTimeType GetMTime()
Override GetMTime because we delegate to vtkContourValues and refer to vtkImplicitFunction.
vtkGenericCutter::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:59
vtkGenericCutter::CutFunction
vtkImplicitFunction * CutFunction
Definition: vtkGenericCutter.h:174
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:36
vtkGenericCutter::SetValue
void SetValue(int i, double value)
Set a particular contour value at contour number i.
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGenericCutter::SecondaryPD
vtkPointData * SecondaryPD
Definition: vtkGenericCutter.h:181
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:52
vtkGenericCutter::~vtkGenericCutter
~vtkGenericCutter()
vtkGenericCutter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkGenericCutter.h:175
vtkGenericCutter::GenerateCutScalars
int GenerateCutScalars
Definition: vtkGenericCutter.h:177
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGenericCutter::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkGenericCutter::GetValue
double GetValue(int i)
Get the ith contour value.
vtkGenericCutter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Actual implementation of the cutter operation.
vtkGenericCutter::SecondaryCD
vtkCellData * SecondaryCD
Definition: vtkGenericCutter.h:182
vtkGenericCutter::vtkGenericCutter
vtkGenericCutter(vtkImplicitFunction *cf=NULL)
vtkGenericCutter::GetValues
double * GetValues()
Get a pointer to an array of contour values.
vtkGenericCutter::InternalPD
vtkPointData * InternalPD
Definition: vtkGenericCutter.h:180
vtkGenericCutter::SetCutFunction
virtual void SetCutFunction(vtkImplicitFunction *)
Specify the implicit function to perform the cutting.
vtkGenericCutter::New
static vtkGenericCutter * New()
Construct with user-specified implicit function; initial value of 0.0; and generating cut scalars tur...
vtkGenericCutter::CreateDefaultLocator
void CreateDefaultLocator()
Create default locator.
vtkGenericCutter::GetNumberOfContours
int GetNumberOfContours()
Get the number of contours in the list of contour values.
vtkGenericCutter::ContourValues
vtkContourValues * ContourValues
Definition: vtkGenericCutter.h:176
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45