VTK
vtkExtractPolyDataGeometry.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractPolyDataGeometry.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 =========================================================================*/
45 #ifndef vtkExtractPolyDataGeometry_h
46 #define vtkExtractPolyDataGeometry_h
47 
48 #include "vtkFiltersExtractionModule.h" // For export macro
49 #include "vtkPolyDataAlgorithm.h"
50 
52 
54 {
55 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
61 
63  unsigned long GetMTime();
64 
66 
67  virtual void SetImplicitFunction(vtkImplicitFunction*);
68  vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
70 
72 
75  vtkSetMacro(ExtractInside,int);
76  vtkGetMacro(ExtractInside,int);
77  vtkBooleanMacro(ExtractInside,int);
79 
81 
83  vtkSetMacro(ExtractBoundaryCells,int);
84  vtkGetMacro(ExtractBoundaryCells,int);
85  vtkBooleanMacro(ExtractBoundaryCells,int);
87 
89 
91  vtkSetMacro(PassPoints,int);
92  vtkGetMacro(PassPoints,int);
93  vtkBooleanMacro(PassPoints,int);
95 
96 protected:
99 
100  // Usual data generation method
102 
107 
108  vtkIdType InsertPointInMap(vtkIdType i, vtkPoints *inPts, vtkPoints *newPts, vtkIdType *pointMap);
109 
110 private:
111  vtkExtractPolyDataGeometry(const vtkExtractPolyDataGeometry&); // Not implemented.
112  void operator=(const vtkExtractPolyDataGeometry&); // Not implemented.
113 };
114 
116 
119  vtkPoints *newPts, vtkIdType *pointMap)
120 {
121  double x[3];
122  inPts->GetPoint(i, x);
123  pointMap[i] = newPts->InsertNextPoint(x);
124  return pointMap[i];
125 }
127 
128 
129 #endif
abstract interface for implicit functions
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIdType InsertPointInMap(vtkIdType i, vtkPoints *inPts, vtkPoints *newPts, vtkIdType *pointMap)
vtkIdType InsertNextPoint(const float x[3])
Definition: vtkPoints.h:162
int vtkIdType
Definition: vtkType.h:275
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSEXTRACTION_EXPORT
double * GetPoint(vtkIdType id)
Definition: vtkPoints.h:119
Store zero or more vtkInformation instances.
extract vtkPolyData cells that lies either entirely inside or outside of a specified implicit functio...
represent and manipulate 3D points
Definition: vtkPoints.h:38