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 "vtkPolyDataAlgorithm.h"
68 
71 
73 {
74 public:
76  void PrintSelf(ostream& os, vtkIndent indent);
77 
80  static vtkClipPolyData *New();
81 
83 
86  vtkSetMacro(Value,double);
87  vtkGetMacro(Value,double);
89 
91 
96  vtkSetMacro(InsideOut,int);
97  vtkGetMacro(InsideOut,int);
98  vtkBooleanMacro(InsideOut,int);
100 
102 
105  virtual void SetClipFunction(vtkImplicitFunction*);
106  vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
108 
110 
114  vtkSetMacro(GenerateClipScalars,int);
115  vtkGetMacro(GenerateClipScalars,int);
116  vtkBooleanMacro(GenerateClipScalars,int);
118 
120 
122  vtkSetMacro(GenerateClippedOutput,int);
123  vtkGetMacro(GenerateClippedOutput,int);
124  vtkBooleanMacro(GenerateClippedOutput,int);
126 
128  vtkPolyData *GetClippedOutput();
129 
131 
133  {
134  return this->GetOutputPort(1);
135  }
137 
139 
141  void SetLocator(vtkIncrementalPointLocator *locator);
142  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
144 
147  void CreateDefaultLocator();
148 
150  unsigned long GetMTime();
151 
152 protected:
154  ~vtkClipPolyData();
155 
158 
161  double Value;
163 
165 private:
166  vtkClipPolyData(const vtkClipPolyData&); // Not implemented.
167  void operator=(const vtkClipPolyData&); // Not implemented.
168 };
169 
170 #endif
abstract interface for implicit functions
#define VTK_GRAPHICS_EXPORT
vtkAlgorithmOutput * GetOutputPort()
Definition: vtkAlgorithm.h:301
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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:81
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:37
vtkAlgorithmOutput * GetClippedOutputPort()
vtkImplicitFunction * ClipFunction
clip polygonal data with user-specified implicit function or input scalar data
Store zero or more vtkInformation instances.