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 =========================================================================*/
64 #ifndef vtkClipPolyData_h
65 #define vtkClipPolyData_h
66 
67 #include "vtkFiltersCoreModule.h" // For export macro
68 #include "vtkPolyDataAlgorithm.h"
69 
72 
74 {
75 public:
77  void PrintSelf(ostream& os, vtkIndent indent);
78 
81  static vtkClipPolyData *New();
82 
84 
87  vtkSetMacro(Value,double);
88  vtkGetMacro(Value,double);
90 
92 
97  vtkSetMacro(InsideOut,int);
98  vtkGetMacro(InsideOut,int);
99  vtkBooleanMacro(InsideOut,int);
101 
103 
106  virtual void SetClipFunction(vtkImplicitFunction*);
107  vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
109 
111 
115  vtkSetMacro(GenerateClipScalars,int);
116  vtkGetMacro(GenerateClipScalars,int);
117  vtkBooleanMacro(GenerateClipScalars,int);
119 
121 
123  vtkSetMacro(GenerateClippedOutput,int);
124  vtkGetMacro(GenerateClippedOutput,int);
125  vtkBooleanMacro(GenerateClippedOutput,int);
127 
129  vtkPolyData *GetClippedOutput();
130 
132 
134  {
135  return this->GetOutputPort(1);
136  }
138 
140 
142  void SetLocator(vtkIncrementalPointLocator *locator);
143  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
145 
148  void CreateDefaultLocator();
149 
151  unsigned long GetMTime();
152 
154 
157  vtkSetMacro(OutputPointsPrecision,int);
158  vtkGetMacro(OutputPointsPrecision,int);
160 
161 protected:
163  ~vtkClipPolyData();
164 
167 
170  double Value;
174 
175 private:
176  vtkClipPolyData(const vtkClipPolyData&); // Not implemented.
177  void operator=(const vtkClipPolyData&); // Not implemented.
178 };
179 
180 #endif
abstract interface for implicit functions
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:373
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIncrementalPointLocator * Locator
#define VTKFILTERSCORE_EXPORT
Abstract class in support of both point location and point insertion.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
Proxy object to connect input/output ports.
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
vtkAlgorithmOutput * GetClippedOutputPort()
vtkImplicitFunction * ClipFunction
clip polygonal data with user-specified implicit function or input scalar data
Store zero or more vtkInformation instances.