Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkVectorNorm.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkVectorNorm.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00033 #ifndef __vtkVectorNorm_h 00034 #define __vtkVectorNorm_h 00035 00036 #define VTK_ATTRIBUTE_MODE_DEFAULT 0 00037 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1 00038 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2 00039 00040 #include "vtkDataSetToDataSetFilter.h" 00041 00042 class VTK_GRAPHICS_EXPORT vtkVectorNorm : public vtkDataSetToDataSetFilter 00043 { 00044 public: 00045 vtkTypeRevisionMacro(vtkVectorNorm,vtkDataSetToDataSetFilter); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 00049 static vtkVectorNorm *New(); 00050 00052 00053 vtkSetMacro(Normalize,int); 00054 vtkGetMacro(Normalize,int); 00055 vtkBooleanMacro(Normalize,int); 00057 00059 00065 vtkSetMacro(AttributeMode,int); 00066 vtkGetMacro(AttributeMode,int); 00067 void SetAttributeModeToDefault() 00068 {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_DEFAULT);}; 00069 void SetAttributeModeToUsePointData() 00070 {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_POINT_DATA);}; 00071 void SetAttributeModeToUseCellData() 00072 {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_CELL_DATA);}; 00073 const char *GetAttributeModeAsString(); 00075 00076 protected: 00077 vtkVectorNorm(); 00078 ~vtkVectorNorm() {}; 00079 00080 void Execute(); 00081 00082 int Normalize; // normalize 0<=n<=1 if true. 00083 int AttributeMode; //control whether to use point or cell data, or both 00084 private: 00085 vtkVectorNorm(const vtkVectorNorm&); // Not implemented. 00086 void operator=(const vtkVectorNorm&); // Not implemented. 00087 }; 00088 00089 #endif