VTK  9.1.0
vtkArrayNorm.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkArrayNorm.h
5
6-------------------------------------------------------------------------
7 Copyright 2008 Sandia Corporation.
8 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 the U.S. Government retains certain rights in this software.
10-------------------------------------------------------------------------
11
12 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13 All rights reserved.
14 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notice for more information.
19
20=========================================================================*/
21
37#ifndef vtkArrayNorm_h
38#define vtkArrayNorm_h
39
41#include "vtkArrayRange.h" // for vtkArrayRange
42#include "vtkInfovisCoreModule.h" // For export macro
43
44class VTKINFOVISCORE_EXPORT vtkArrayNorm : public vtkArrayDataAlgorithm
45{
46public:
47 static vtkArrayNorm* New();
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
56 vtkGetMacro(Dimension, int);
57 vtkSetMacro(Dimension, int);
59
61
64 vtkGetMacro(L, int);
65 void SetL(int value);
67
69
72 vtkSetMacro(Invert, int);
73 vtkGetMacro(Invert, int);
75
77
81 void SetWindow(const vtkArrayRange& window);
84
85protected:
87 ~vtkArrayNorm() override;
88
90
91private:
92 vtkArrayNorm(const vtkArrayNorm&) = delete;
93 void operator=(const vtkArrayNorm&) = delete;
94
95 int Dimension;
96 int L;
97 int Invert;
98 vtkArrayRange Window;
99};
100
101#endif
Superclass for algorithms that produce vtkArrayDatas as output.
Computes L-norms along one dimension of an array.
Definition: vtkArrayNorm.h:45
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.
Definition: vtkArrayRange.h:65
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ value
Definition: vtkX3D.h:226