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);
67  {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_DEFAULT);};
69  {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_POINT_DATA);};
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
void SetAttributeModeToUsePointData()
Definition: vtkVectorNorm.h:68
#define VTK_GRAPHICS_EXPORT
void SetAttributeModeToUseCellData()
Definition: vtkVectorNorm.h:70
Store vtkAlgorithm input/output information.
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA
Definition: vtkVectorNorm.h:37
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
Definition: vtkVectorNorm.h:36
generate scalars from Euclidean norm of vectors
Definition: vtkVectorNorm.h:41
#define VTK_ATTRIBUTE_MODE_DEFAULT
Definition: vtkVectorNorm.h:35
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
void SetAttributeModeToDefault()
Definition: vtkVectorNorm.h:66