VTK  9.3.0
vtkToConstantArrayStrategy.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 vtkToConstantArrayStrategy_h
5 #define vtkToConstantArrayStrategy_h
6 
7 #include "vtkFiltersReductionModule.h" // for export
9 
10 VTK_ABI_NAMESPACE_BEGIN
20 class VTKFILTERSREDUCTION_EXPORT vtkToConstantArrayStrategy final : public vtkToImplicitStrategy
21 {
22 public:
25  void PrintSelf(std::ostream& os, vtkIndent indent) override;
26 
28 
34 
35 protected:
37  ~vtkToConstantArrayStrategy() override = default;
38 
39 private:
41  void operator=(const vtkToConstantArrayStrategy&) = delete;
42 };
43 VTK_ABI_NAMESPACE_END
44 
45 #endif // vtkToConstantArrayStrategy_h
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
a simple class to control print indentation
Definition: vtkIndent.h:38
Strategy to be used in conjunction with vtkToImplicitArrayFilter to identify and compress constant ar...
void PrintSelf(std::ostream &os, vtkIndent indent) override
vtkSmartPointer< vtkDataArray > Reduce(vtkDataArray *) override
Parent API implementing the strategy.
vtkToImplicitStrategy::Optional EstimateReduction(vtkDataArray *) override
Parent API implementing the strategy.
static vtkToConstantArrayStrategy * New()
~vtkToConstantArrayStrategy() override=default
vtkToConstantArrayStrategy()=default
Pure interface for strategies to transform explicit arrays into implicit arrays.
A helper structure for communicating a result with an optional double value.