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 
132  vtkAlgorithmOutput* GetClippedOutputPort()
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