VTK  9.4.20241221
vtkArrayNorm.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
23#ifndef vtkArrayNorm_h
24#define vtkArrayNorm_h
25
27#include "vtkArrayRange.h" // for vtkArrayRange
28#include "vtkInfovisCoreModule.h" // For export macro
29
30VTK_ABI_NAMESPACE_BEGIN
31class VTKINFOVISCORE_EXPORT vtkArrayNorm : public vtkArrayDataAlgorithm
32{
33public:
34 static vtkArrayNorm* New();
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 vtkGetMacro(Dimension, int);
44 vtkSetMacro(Dimension, int);
46
48
51 vtkGetMacro(L, int);
52 void SetL(int value);
54
56
59 vtkSetMacro(Invert, int);
60 vtkGetMacro(Invert, int);
62
64
68 void SetWindow(const vtkArrayRange& window);
71
72protected:
74 ~vtkArrayNorm() override;
75
77
78private:
79 vtkArrayNorm(const vtkArrayNorm&) = delete;
80 void operator=(const vtkArrayNorm&) = delete;
81
82 int Dimension;
83 int L;
84 int Invert;
85 vtkArrayRange Window;
86};
87
88VTK_ABI_NAMESPACE_END
89#endif
Superclass for algorithms that produce vtkArrayDatas as output.
Computes L-norms along one dimension of an array.
static vtkArrayNorm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkArrayRange GetWindow()
Defines an optional "window" used to compute the norm on a subset of the elements in a vector.
void SetWindow(const vtkArrayRange &window)
Defines an optional "window" used to compute the norm on a subset of the elements in a vector.
void SetL(int value)
Controls the L-value.
~vtkArrayNorm() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Stores a half-open range of array coordinates.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.