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 <vtkArrayDataAlgorithm.h>
43 #include <vtkArrayRange.h>
44 
46 {
47 public:
48  static vtkArrayNorm* New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
56  vtkGetMacro(Dimension, int);
57  vtkSetMacro(Dimension, int);
59 
61 
62  vtkGetMacro(L, int);
63  void SetL(int value);
65 
67 
68  vtkSetMacro(Invert, int);
69  vtkGetMacro(Invert, int);
71 
72 //BTX
74 
76  void SetWindow(const vtkArrayRange& window);
77  vtkArrayRange GetWindow();
79 
80 protected:
81  vtkArrayNorm();
82  ~vtkArrayNorm();
83 
84  int RequestData(
88 
89 private:
90  vtkArrayNorm(const vtkArrayNorm&); // Not implemented
91  void operator=(const vtkArrayNorm&); // Not implemented
92 
93  int Dimension;
94  int L;
95  int Invert;
96  vtkArrayRange Window;
97 //ETX
98 };
99 
100 #endif
101 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Computes L-norms along one dimension of an array.
Definition: vtkArrayNorm.h:45
Store vtkAlgorithm input/output information.
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:49
a simple class to control print indentation
Definition: vtkIndent.h:37
Superclass for algorithms that produce vtkArrayDatas as output.
#define VTK_INFOVIS_EXPORT
static vtkArrayDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.