VTK
vtkExtractGeometry.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractGeometry.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 =========================================================================*/
44 #ifndef vtkExtractGeometry_h
45 #define vtkExtractGeometry_h
46 
47 #include "vtkFiltersExtractionModule.h" // For export macro
49 
51 
52 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGeometry : public vtkUnstructuredGridAlgorithm
53 {
54 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
61  static vtkExtractGeometry *New();
62 
66  vtkMTimeType GetMTime() override;
67 
69 
72  virtual void SetImplicitFunction(vtkImplicitFunction*);
73  vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
75 
77 
82  vtkSetMacro(ExtractInside,vtkTypeBool);
83  vtkGetMacro(ExtractInside,vtkTypeBool);
84  vtkBooleanMacro(ExtractInside,vtkTypeBool);
86 
88 
92  vtkSetMacro(ExtractBoundaryCells,vtkTypeBool);
93  vtkGetMacro(ExtractBoundaryCells,vtkTypeBool);
94  vtkBooleanMacro(ExtractBoundaryCells,vtkTypeBool);
95  vtkSetMacro(ExtractOnlyBoundaryCells,vtkTypeBool);
96  vtkGetMacro(ExtractOnlyBoundaryCells,vtkTypeBool);
97  vtkBooleanMacro(ExtractOnlyBoundaryCells,vtkTypeBool);
99 
100 protected:
102  ~vtkExtractGeometry() override;
103 
104  // Usual data generation method
106 
107  int FillInputPortInformation(int port, vtkInformation *info) override;
108 
113 
114 private:
115  vtkExtractGeometry(const vtkExtractGeometry&) = delete;
116  void operator=(const vtkExtractGeometry&) = delete;
117 };
118 
119 #endif
120 
121 
abstract interface for implicit functions
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkImplicitFunction * ImplicitFunction
vtkTypeBool ExtractBoundaryCells
static vtkUnstructuredGridAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int vtkTypeBool
Definition: vtkABI.h:69
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool ExtractOnlyBoundaryCells
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
extract cells that lie either entirely inside or outside of a specified implicit function ...