VTK
vtkVectorNorm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVectorNorm.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef __vtkVectorNorm_h
33 #define __vtkVectorNorm_h
34 
35 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
36 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
37 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
38 
39 #include "vtkDataSetAlgorithm.h"
40 
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48  static vtkVectorNorm *New();
49 
51 
52  vtkSetMacro(Normalize,int);
53  vtkGetMacro(Normalize,int);
54  vtkBooleanMacro(Normalize,int);
56 
58 
64  vtkSetMacro(AttributeMode,int);
65  vtkGetMacro(AttributeMode,int);
66  void SetAttributeModeToDefault()
67  {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_DEFAULT);};
68  void SetAttributeModeToUsePointData()
69  {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_POINT_DATA);};
70  void SetAttributeModeToUseCellData()
71  {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_CELL_DATA);};
72  const char *GetAttributeModeAsString();
74 
75 protected:
76  vtkVectorNorm();
78 
80 
81  int Normalize; // normalize 0<=n<=1 if true.
82  int AttributeMode; //control whether to use point or cell data, or both
83 private:
84  vtkVectorNorm(const vtkVectorNorm&); // Not implemented.
85  void operator=(const vtkVectorNorm&); // Not implemented.
86 };
87 
88 #endif