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 
117  virtual void SetClipFunction(vtkImplicitFunction*);
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 
148  vtkPolyData *GetClippedOutput();
149 
154  {
155  return this->GetOutputPort(1);
156  }
157 
159 
163  void SetLocator(vtkIncrementalPointLocator *locator);
164  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
166 
171  void CreateDefaultLocator();
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
abstract interface for implicit functions
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:459
Store vtkAlgorithm input/output information.
Abstract class in support of both point location and point insertion.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
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:39
vtkAlgorithmOutput * GetClippedOutputPort()
Return the output port (a vtkAlgorithmOutput) of the clipped output.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
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.