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 
39 #ifndef vtkArrayNorm_h
40 #define vtkArrayNorm_h
41 
42 #include "vtkInfovisCoreModule.h" // For export macro
43 #include "vtkArrayDataAlgorithm.h"
44 #include "vtkArrayRange.h"
45 
47 {
48 public:
49  static vtkArrayNorm* New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
57  vtkGetMacro(Dimension, int);
58  vtkSetMacro(Dimension, int);
60 
62 
63  vtkGetMacro(L, int);
64  void SetL(int value);
66 
68 
69  vtkSetMacro(Invert, int);
70  vtkGetMacro(Invert, int);
72 
73 //BTX
75 
77  void SetWindow(const vtkArrayRange& window);
78  vtkArrayRange GetWindow();
80 
81 protected:
82  vtkArrayNorm();
83  ~vtkArrayNorm();
84 
85  int RequestData(
89 
90 private:
91  vtkArrayNorm(const vtkArrayNorm&); // Not implemented
92  void operator=(const vtkArrayNorm&); // Not implemented
93 
94  int Dimension;
95  int L;
96  int Invert;
97  vtkArrayRange Window;
98 //ETX
99 };
100 
101 #endif
102 
103 // VTK-HeaderTest-Exclude: vtkArrayNorm.h
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Computes L-norms along one dimension of an array.
Definition: vtkArrayNorm.h:46
Store vtkAlgorithm input/output information.
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:50
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKINFOVISCORE_EXPORT
Superclass for algorithms that produce vtkArrayDatas as output.
static vtkArrayDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.