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 =========================================================================*/
38 #ifndef vtkExtractGeometry_h
39 #define vtkExtractGeometry_h
40 
41 #include "vtkFiltersExtractionModule.h" // For export macro
43 
45 
46 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGeometry : public vtkUnstructuredGridAlgorithm
47 {
48 public:
50  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
51 
55  static vtkExtractGeometry *New();
56 
60  vtkMTimeType GetMTime() VTK_OVERRIDE;
61 
63 
66  virtual void SetImplicitFunction(vtkImplicitFunction*);
67  vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
69 
71 
76  vtkSetMacro(ExtractInside,int);
77  vtkGetMacro(ExtractInside,int);
78  vtkBooleanMacro(ExtractInside,int);
80 
82 
86  vtkSetMacro(ExtractBoundaryCells,int);
87  vtkGetMacro(ExtractBoundaryCells,int);
88  vtkBooleanMacro(ExtractBoundaryCells,int);
89  vtkSetMacro(ExtractOnlyBoundaryCells,int);
90  vtkGetMacro(ExtractOnlyBoundaryCells,int);
91  vtkBooleanMacro(ExtractOnlyBoundaryCells,int);
93 
94 protected:
95  vtkExtractGeometry(vtkImplicitFunction *f=NULL);
96  ~vtkExtractGeometry() VTK_OVERRIDE;
97 
98  // Usual data generation method
99  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
100 
101  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
102 
103  vtkImplicitFunction *ImplicitFunction;
104  int ExtractInside;
105  int ExtractBoundaryCells;
106  int ExtractOnlyBoundaryCells;
107 
108 private:
109  vtkExtractGeometry(const vtkExtractGeometry&) VTK_DELETE_FUNCTION;
110  void operator=(const vtkExtractGeometry&) VTK_DELETE_FUNCTION;
111 };
112 
113 #endif
114 
115 
abstract interface for implicit functions
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
static vtkUnstructuredGridAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that produce only unstructured grid as output.
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.
extract cells that lie either entirely inside or outside of a specified implicit function ...