VTK  9.2.6
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
40#ifndef vtkArrayNorm_h
41#define vtkArrayNorm_h
42
44#include "vtkArrayRange.h" // for vtkArrayRange
45#include "vtkInfovisCoreModule.h" // For export macro
46
47class VTKINFOVISCORE_EXPORT vtkArrayNorm : public vtkArrayDataAlgorithm
48{
49public:
50 static vtkArrayNorm* New();
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
59 vtkGetMacro(Dimension, int);
60 vtkSetMacro(Dimension, int);
62
64
67 vtkGetMacro(L, int);
68 void SetL(int value);
70
72
75 vtkSetMacro(Invert, int);
76 vtkGetMacro(Invert, int);
78
80
84 void SetWindow(const vtkArrayRange& window);
87
88protected:
90 ~vtkArrayNorm() override;
91
93
94private:
95 vtkArrayNorm(const vtkArrayNorm&) = delete;
96 void operator=(const vtkArrayNorm&) = delete;
97
98 int Dimension;
99 int L;
100 int Invert;
101 vtkArrayRange Window;
102};
103
104#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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.