VTK  9.6.20260612
vtkExtractGeometry.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
62
63#ifndef vtkExtractGeometry_h
64#define vtkExtractGeometry_h
65
66#include "vtkFiltersExtractionModule.h" // For export macro
67#include "vtkNew.h" // for vtkNew
69
70VTK_ABI_NAMESPACE_BEGIN
71
75
76class VTKFILTERSEXTRACTION_EXPORT vtkExtractGeometry : public vtkUnstructuredGridAlgorithm
77{
78public:
80 void PrintSelf(ostream& os, vtkIndent indent) override;
81
86
91
93
99
101
108 vtkBooleanMacro(ExtractInside, vtkTypeBool);
110
112
123
124protected:
127
128 // Usual data generation method
130
132
133 int FillInputPortInformation(int port, vtkInformation* info) override;
134
135 int FillOutputPortInformation(int port, vtkInformation* info) override;
136
141
142private:
143 vtkExtractGeometry(const vtkExtractGeometry&) = delete;
144 void operator=(const vtkExtractGeometry&) = delete;
145
149 void InitializeOutput(vtkDataObjectTree* input, vtkDataObjectTree* output);
150
156 int ExtractLeaf(vtkInformation* request, vtkInformationVector** inputVector,
157 vtkInformationVector* outputVector);
158
163 vtkSmartPointer<vtkInformationVector> DuplicateInfoForLeaf(
164 vtkInformationVector* inputInfo, vtkDataObject* leaf);
165
167};
168
169VTK_ABI_NAMESPACE_END
170#endif
vtkDataObjectMeshCache is a class to store and reuse the mesh of a vtkDataSet, while forwarding data ...
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
general representation of visualization data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Return the MTime taking into account changes to the implicit function.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkExtractGeometry * New()
Construct object with ExtractInside turned on.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkImplicitFunction * ImplicitFunction
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
~vtkExtractGeometry() override
vtkTypeBool ExtractBoundaryCells
vtkTypeBool ExtractOnlyBoundaryCells
virtual void SetImplicitFunction(vtkImplicitFunction *)
Specify the implicit function for inside/outside checks.
vtkExtractGeometry(vtkImplicitFunction *f=nullptr)
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
abstract interface for implicit functions
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:168
Hold a reference to a vtkObjectBase instance.
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:318