VTK
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 
43 #include "vtkInfovisCoreModule.h" // For export macro
44 #include "vtkArrayDataAlgorithm.h"
45 #include "vtkArrayRange.h"
46 
47 class VTKINFOVISCORE_EXPORT vtkArrayNorm : public vtkArrayDataAlgorithm
48 {
49 public:
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);
85  vtkArrayRange GetWindow();
87 
88 protected:
89  vtkArrayNorm();
90  ~vtkArrayNorm() override;
91 
92  int RequestData(
95  vtkInformationVector*) override;
96 
97 private:
98  vtkArrayNorm(const vtkArrayNorm&) = delete;
99  void operator=(const vtkArrayNorm&) = delete;
100 
101  int Dimension;
102  int L;
103  int Invert;
104  vtkArrayRange Window;
105 
106 };
107 
108 #endif
109 
110 // VTK-HeaderTest-Exclude: vtkArrayNorm.h
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:47
Store vtkAlgorithm input/output information.
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:51
a simple class to control print indentation
Definition: vtkIndent.h:39
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.