VTK: Filters/Reduction/vtkToImplicitTypeErasureStrategy.h Source File

| VTK 9.3.1

vtkToImplicitTypeErasureStrategy.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
3 // Funded by CEA, DAM, DIF, F-91297 Arpajon, France
4 #ifndef vtkToImplicitTypeErasureStrategy_h
5 #define vtkToImplicitTypeErasureStrategy_h
6
7 #include "vtkFiltersReductionModule.h" // for export
8 #include "vtkToImplicitStrategy.h"
9
10 VTK_ABI_NAMESPACE_BEGIN
28 class VTKFILTERSREDUCTION_EXPORT vtkToImplicitTypeErasureStrategy final
29 : public vtkToImplicitStrategy
30 {
31 public:
32 static vtkToImplicitTypeErasureStrategy* New();
33 vtkTypeMacro(vtkToImplicitTypeErasureStrategy, vtkToImplicitStrategy);
34 void PrintSelf(std::ostream& os, vtkIndent indent) override;
35
37
40 vtkToImplicitStrategy::Optional EstimateReduction(vtkDataArray*) override;
41 vtkSmartPointer<vtkDataArray> Reduce(vtkDataArray*) override;
43
44 protected:
45 vtkToImplicitTypeErasureStrategy() = default;
46 ~vtkToImplicitTypeErasureStrategy() override = default;
47
48 private:
49 vtkToImplicitTypeErasureStrategy(const vtkToImplicitTypeErasureStrategy&) = delete;
50 void operator=(const vtkToImplicitTypeErasureStrategy&) = delete;
51 };
52 VTK_ABI_NAMESPACE_END
53
54 #endif // vtkToImplicitTypeErasureStrategy_h
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkSmartPointer< vtkDataArray >
vtkToImplicitStrategy
Pure interface for strategies to transform explicit arrays into implicit arrays.
Definition: vtkToImplicitStrategy.h:20
vtkToImplicitTypeErasureStrategy
A strategy for compressing arrays by type when applicable (int -> unsigned char for example) and wrap...
Definition: vtkToImplicitTypeErasureStrategy.h:30
vtkToImplicitTypeErasureStrategy::New
static vtkToImplicitTypeErasureStrategy * New()
vtkToImplicitTypeErasureStrategy::~vtkToImplicitTypeErasureStrategy
~vtkToImplicitTypeErasureStrategy() override=default
vtkToImplicitTypeErasureStrategy::Reduce
vtkSmartPointer< vtkDataArray > Reduce(vtkDataArray *) override
Parent API implementing the strategy.
vtkToImplicitTypeErasureStrategy::PrintSelf
void PrintSelf(std::ostream &os, vtkIndent indent) override
vtkToImplicitTypeErasureStrategy::vtkToImplicitTypeErasureStrategy
vtkToImplicitTypeErasureStrategy()=default
vtkToImplicitTypeErasureStrategy::EstimateReduction
vtkToImplicitStrategy::Optional EstimateReduction(vtkDataArray *) override
Parent API implementing the strategy.
vtkToImplicitStrategy::Optional
A helper structure for communicating a result with an optional double value.
Definition: vtkToImplicitStrategy.h:42
vtkToImplicitStrategy.h