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

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 =========================================================================*/
00045 #ifndef __vtkVectorNorm_h
00046 #define __vtkVectorNorm_h
00047 
00048 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
00049 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
00050 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
00051 
00052 #include "vtkDataSetToDataSetFilter.h"
00053 
00054 class VTK_GRAPHICS_EXPORT vtkVectorNorm : public vtkDataSetToDataSetFilter 
00055 {
00056 public:
00057   vtkTypeRevisionMacro(vtkVectorNorm,vtkDataSetToDataSetFilter);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061   static vtkVectorNorm *New();
00062 
00064 
00065   vtkSetMacro(Normalize,int);
00066   vtkGetMacro(Normalize,int);
00067   vtkBooleanMacro(Normalize,int);
00069 
00071 
00077   vtkSetMacro(AttributeMode,int);
00078   vtkGetMacro(AttributeMode,int);
00079   void SetAttributeModeToDefault() 
00080     {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_DEFAULT);};
00081   void SetAttributeModeToUsePointData() 
00082     {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_POINT_DATA);};
00083   void SetAttributeModeToUseCellData() 
00084     {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_CELL_DATA);};
00085   const char *GetAttributeModeAsString();
00087 
00088 protected:
00089   vtkVectorNorm();
00090   ~vtkVectorNorm() {};
00091 
00092   void Execute();
00093 
00094   int Normalize;  // normalize 0<=n<=1 if true.
00095   int AttributeMode; //control whether to use point or cell data, or both
00096 private:
00097   vtkVectorNorm(const vtkVectorNorm&);  // Not implemented.
00098   void operator=(const vtkVectorNorm&);  // Not implemented.
00099 };
00100 
00101 #endif