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 
37 #ifndef vtkArrayNorm_h
38 #define vtkArrayNorm_h
39 
40 #include "vtkInfovisCoreModule.h" // For export macro
41 #include "vtkArrayDataAlgorithm.h"
42 #include "vtkArrayRange.h"
43 
44 class VTKINFOVISCORE_EXPORT vtkArrayNorm : public vtkArrayDataAlgorithm
45 {
46 public:
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);
82  vtkArrayRange GetWindow();
84 
85 protected:
86  vtkArrayNorm();
87  ~vtkArrayNorm() override;
88 
89  int RequestData(
92  vtkInformationVector*) override;
93 
94 private:
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 
105 #endif
106 
107 // VTK-HeaderTest-Exclude: vtkArrayNorm.h
vtkArrayDataAlgorithm.h
vtkX3D::value
Definition: vtkX3D.h:220
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkArrayRange
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:45
vtkArrayNorm
Computes L-norms along one dimension of an array.
Definition: vtkArrayNorm.h:44
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkArrayDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkArrayDataAlgorithm
Superclass for algorithms that produce vtkArrayDatas as output.
Definition: vtkArrayDataAlgorithm.h:53
vtkArrayRange.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkArrayDataAlgorithm::New
static vtkArrayDataAlgorithm * New()
vtkArrayDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.