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) override;
79 
85  static vtkClipPolyData *New();
86 
88 
93  vtkSetMacro(Value,double);
94  vtkGetMacro(Value,double);
96 
98 
106  vtkSetMacro(InsideOut,vtkTypeBool);
107  vtkGetMacro(InsideOut,vtkTypeBool);
108  vtkBooleanMacro(InsideOut,vtkTypeBool);
110 
112 
117  virtual void SetClipFunction(vtkImplicitFunction*);
118  vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
120 
122 
129  vtkSetMacro(GenerateClipScalars,vtkTypeBool);
130  vtkGetMacro(GenerateClipScalars,vtkTypeBool);
131  vtkBooleanMacro(GenerateClipScalars,vtkTypeBool);
133 
135 
140  vtkSetMacro(GenerateClippedOutput,vtkTypeBool);
141  vtkGetMacro(GenerateClippedOutput,vtkTypeBool);
142  vtkBooleanMacro(GenerateClippedOutput,vtkTypeBool);
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() override;
177 
179 
185  vtkSetMacro(OutputPointsPrecision,int);
186  vtkGetMacro(OutputPointsPrecision,int);
188 
189 protected:
191  ~vtkClipPolyData() override;
192 
195 
198  double Value;
202 
203 private:
204  vtkClipPolyData(const vtkClipPolyData&) = delete;
205  void operator=(const vtkClipPolyData&) = delete;
206 };
207 
208 #endif
abstract interface for implicit functions
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:460
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
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.
vtkTypeBool GenerateClippedOutput
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
Proxy object to connect input/output ports.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeBool GenerateClipScalars
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTypeBool InsideOut
vtkAlgorithmOutput * GetClippedOutputPort()
Return the output port (a vtkAlgorithmOutput) of the clipped output.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkImplicitFunction * ClipFunction
clip polygonal data with user-specified implicit function or input scalar data
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.