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 =========================================================================*/
59 #ifndef vtkClipPolyData_h
60 #define vtkClipPolyData_h
61 
62 #include "vtkFiltersCoreModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64 
67 
68 class VTKFILTERSCORE_EXPORT vtkClipPolyData : public vtkPolyDataAlgorithm
69 {
70 public:
72  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
73 
79  static vtkClipPolyData *New();
80 
82 
87  vtkSetMacro(Value,double);
88  vtkGetMacro(Value,double);
90 
92 
100  vtkSetMacro(InsideOut,int);
101  vtkGetMacro(InsideOut,int);
102  vtkBooleanMacro(InsideOut,int);
104 
106 
111  virtual void SetClipFunction(vtkImplicitFunction*);
112  vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
114 
116 
123  vtkSetMacro(GenerateClipScalars,int);
124  vtkGetMacro(GenerateClipScalars,int);
125  vtkBooleanMacro(GenerateClipScalars,int);
127 
129 
134  vtkSetMacro(GenerateClippedOutput,int);
135  vtkGetMacro(GenerateClippedOutput,int);
136  vtkBooleanMacro(GenerateClippedOutput,int);
138 
142  vtkPolyData *GetClippedOutput();
143 
148  {
149  return this->GetOutputPort(1);
150  }
151 
153 
157  void SetLocator(vtkIncrementalPointLocator *locator);
158  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
160 
165  void CreateDefaultLocator();
166 
170  vtkMTimeType GetMTime() VTK_OVERRIDE;
171 
173 
179  vtkSetMacro(OutputPointsPrecision,int);
180  vtkGetMacro(OutputPointsPrecision,int);
182 
183 protected:
185  ~vtkClipPolyData() VTK_OVERRIDE;
186 
189 
192  double Value;
196 
197 private:
198  vtkClipPolyData(const vtkClipPolyData&) VTK_DELETE_FUNCTION;
199  void operator=(const vtkClipPolyData&) VTK_DELETE_FUNCTION;
200 };
201 
202 #endif
abstract interface for implicit functions
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:453
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIncrementalPointLocator * Locator
Abstract class in support of both point location and point insertion.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
Proxy object to connect input/output ports.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkAlgorithmOutput * GetClippedOutputPort()
Return the output port (a vtkAlgorithmOutput) of the clipped output.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkImplicitFunction * ClipFunction
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
clip polygonal data with user-specified implicit function or input scalar data
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.