VTK
vtkClipPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkClipPolyData.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 =========================================================================*/
65 #ifndef vtkClipPolyData_h
66 #define vtkClipPolyData_h
67 
68 #include "vtkFiltersCoreModule.h" // For export macro
69 #include "vtkPolyDataAlgorithm.h"
70 
73 
74 class VTKFILTERSCORE_EXPORT vtkClipPolyData : public vtkPolyDataAlgorithm
75 {
76 public:
78  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
79 
85  static vtkClipPolyData *New();
86 
88 
93  vtkSetMacro(Value,double);
94  vtkGetMacro(Value,double);
96 
98 
106  vtkSetMacro(InsideOut,int);
107  vtkGetMacro(InsideOut,int);
108  vtkBooleanMacro(InsideOut,int);
110 
112 
118  vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
120 
122 
129  vtkSetMacro(GenerateClipScalars,int);
130  vtkGetMacro(GenerateClipScalars,int);
131  vtkBooleanMacro(GenerateClipScalars,int);
133 
135 
140  vtkSetMacro(GenerateClippedOutput,int);
141  vtkGetMacro(GenerateClippedOutput,int);
142  vtkBooleanMacro(GenerateClippedOutput,int);
144 
149 
154  {
155  return this->GetOutputPort(1);
156  }
157 
159 
164  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
166 
172 
176  vtkMTimeType GetMTime() VTK_OVERRIDE;
177 
179 
185  vtkSetMacro(OutputPointsPrecision,int);
186  vtkGetMacro(OutputPointsPrecision,int);
188 
189 protected:
191  ~vtkClipPolyData() VTK_OVERRIDE;
192 
193  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
194  vtkImplicitFunction *ClipFunction;
195 
197  int InsideOut;
198  double Value;
199  int GenerateClipScalars;
200  int GenerateClippedOutput;
201  int OutputPointsPrecision;
202 
203 private:
204  vtkClipPolyData(const vtkClipPolyData&) VTK_DELETE_FUNCTION;
205  void operator=(const vtkClipPolyData&) VTK_DELETE_FUNCTION;
206 };
207 
208 #endif
Proxy object to connect input/output ports.
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:459
clip polygonal data with user-specified implicit function or input scalar data
vtkPolyData * GetClippedOutput()
Return the Clipped output.
void CreateDefaultLocator()
Create default locator.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Return the mtime also considering the locator and clip function.
static vtkClipPolyData * New()
Construct with user-specified implicit function; InsideOut turned off; value set to 0....
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
virtual void SetClipFunction(vtkImplicitFunction *)
Specify the implicit function with which to perform the clipping.
vtkAlgorithmOutput * GetClippedOutputPort()
Return the output port (a vtkAlgorithmOutput) of the clipped output.
abstract interface for implicit functions
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248