VTK
vtkGenericClip.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericClip.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 =========================================================================*/
63 #ifndef __vtkGenericClip_h
64 #define __vtkGenericClip_h
65 
67 
69 
70 class vtkPointData;
71 class vtkCellData;
73 
75 {
76 public:
78  void PrintSelf(ostream& os, vtkIndent indent);
79 
82  static vtkGenericClip *New();
83 
85 
88  vtkSetMacro(Value,double);
89  vtkGetMacro(Value,double);
91 
93 
98  vtkSetMacro(InsideOut,int);
99  vtkGetMacro(InsideOut,int);
100  vtkBooleanMacro(InsideOut,int);
102 
104 
107  virtual void SetClipFunction(vtkImplicitFunction*);
108  vtkGetObjectMacro(ClipFunction,vtkImplicitFunction);
110 
112 
116  vtkSetMacro(GenerateClipScalars,int);
117  vtkGetMacro(GenerateClipScalars,int);
118  vtkBooleanMacro(GenerateClipScalars,int);
120 
122 
124  vtkSetMacro(GenerateClippedOutput,int);
125  vtkGetMacro(GenerateClippedOutput,int);
126  vtkBooleanMacro(GenerateClippedOutput,int);
128 
130 
134  vtkSetClampMacro(MergeTolerance,double,0.0001,0.25);
135  vtkGetMacro(MergeTolerance,double);
137 
139 
140  vtkUnstructuredGrid *GetClippedOutput();
141  virtual int GetNumberOfOutputs();
143 
145 
147  void SetLocator(vtkIncrementalPointLocator *locator);
148  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
150 
153  void CreateDefaultLocator();
154 
156  unsigned long GetMTime();
157 
159 
161  vtkGetStringMacro(InputScalarsSelection);
162  void SelectInputScalars(const char *fieldName)
163  {this->SetInputScalarsSelection(fieldName);}
165 
166 protected:
168  ~vtkGenericClip();
169 
172 
174 
177  double Value;
179 
182 
184  vtkSetStringMacro(InputScalarsSelection);
185 
186  // Used internal by vtkGenericAdaptorCell::Clip()
190 
191 private:
192  vtkGenericClip(const vtkGenericClip&); // Not implemented.
193  void operator=(const vtkGenericClip&); // Not implemented.
194 };
195 
196 #endif
abstract interface for implicit functions
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
represent and manipulate point attribute data
Definition: vtkPointData.h:35
Store vtkAlgorithm input/output information.
clip any dataset with an implicit function or scalar data
vtkIncrementalPointLocator * Locator
represent and manipulate cell attribute data
Definition: vtkCellData.h:36
static vtkUnstructuredGridAlgorithm * New()
Abstract class in support of both point location and point insertion.
virtual int FillInputPortInformation(int port, vtkInformation *info)
void SelectInputScalars(const char *fieldName)
vtkPointData * SecondaryPD
char * InputScalarsSelection
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:37
dataset represents arbitrary combinations of all possible cell types
void PrintSelf(ostream &os, vtkIndent indent)
vtkCellData * SecondaryCD
Superclass for algorithms that produce only unstructured grid as output.
vtkPointData * InternalPD
vtkImplicitFunction * ClipFunction
#define VTK_GENERIC_FILTERING_EXPORT
Store zero or more vtkInformation instances.