VTK  9.2.6
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
64#ifndef vtkGenericClip_h
65#define vtkGenericClip_h
66
67#include "vtkFiltersGenericModule.h" // For export macro
69
71
72class vtkPointData;
73class vtkCellData;
75
76class VTKFILTERSGENERIC_EXPORT vtkGenericClip : public vtkUnstructuredGridAlgorithm
77{
78public:
80 void PrintSelf(ostream& os, vtkIndent indent) override;
81
87
89
94 vtkSetMacro(Value, double);
95 vtkGetMacro(Value, double);
97
99
107 vtkSetMacro(InsideOut, vtkTypeBool);
108 vtkGetMacro(InsideOut, vtkTypeBool);
109 vtkBooleanMacro(InsideOut, vtkTypeBool);
111
113
121
123
133
135
143
145
151 vtkSetClampMacro(MergeTolerance, double, 0.0001, 0.25);
152 vtkGetMacro(MergeTolerance, double);
154
156
160 virtual int GetNumberOfOutputs();
162
164
171
177
182
184
188 vtkGetStringMacro(InputScalarsSelection);
189 void SelectInputScalars(const char* fieldName) { this->SetInputScalarsSelection(fieldName); }
191
192protected:
194 ~vtkGenericClip() override;
195
198
200
203 double Value;
205
208
210 vtkSetStringMacro(InputScalarsSelection);
211
212 // Used internal by vtkGenericAdaptorCell::Clip()
216
217private:
218 vtkGenericClip(const vtkGenericClip&) = delete;
219 void operator=(const vtkGenericClip&) = delete;
220};
221
222#endif
represent and manipulate cell attribute data
Definition vtkCellData.h:42
vtkMTimeType GetMTime() override
Return the mtime also considering the locator and clip function.
vtkIncrementalPointLocator * Locator
vtkCellData * SecondaryCD
static vtkGenericClip * New()
Construct with user-specified implicit function; InsideOut turned off; value set to 0....
vtkPointData * InternalPD
~vtkGenericClip() override
vtkTypeBool GenerateClipScalars
vtkPointData * SecondaryPD
char * InputScalarsSelection
virtual int GetNumberOfOutputs()
Return the Clipped output.
vtkUnstructuredGrid * GetClippedOutput()
Return the Clipped output.
vtkTypeBool InsideOut
virtual void SetInputScalarsSelection(const char *)
void SelectInputScalars(const char *fieldName)
If you want to clip by an arbitrary array, then set its name here.
virtual void SetClipFunction(vtkImplicitFunction *)
Specify the implicit function with which to perform the clipping.
vtkGenericClip(vtkImplicitFunction *cf=nullptr)
vtkTypeBool GenerateClippedOutput
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkImplicitFunction * ClipFunction
void CreateDefaultLocator()
Create default locator.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
abstract interface for implicit functions
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
dataset represents arbitrary combinations of all possible cell types
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287