VTK  9.3.1
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 
26 #include "vtkArrayDataAlgorithm.h"
27 #include "vtkArrayRange.h" // for vtkArrayRange
28 #include "vtkInfovisCoreModule.h" // For export macro
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKINFOVISCORE_EXPORT vtkArrayNorm : public vtkArrayDataAlgorithm
32 {
33 public:
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);
69  vtkArrayRange GetWindow();
71 
72 protected:
73  vtkArrayNorm();
74  ~vtkArrayNorm() override;
75 
77 
78 private:
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 
88 VTK_ABI_NAMESPACE_END
89 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Computes L-norms along one dimension of an array.
Definition: vtkArrayNorm.h:31
Store vtkAlgorithm input/output information.
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:32
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for algorithms that produce vtkArrayDatas as output.
static vtkArrayDataAlgorithm * New()
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.