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

vtkVectorNorm.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVectorNorm.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00044 #ifndef __vtkVectorNorm_h
00045 #define __vtkVectorNorm_h
00046 
00047 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
00048 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
00049 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
00050 
00051 #include "vtkDataSetToDataSetFilter.h"
00052 
00053 class VTK_GRAPHICS_EXPORT vtkVectorNorm : public vtkDataSetToDataSetFilter 
00054 {
00055 public:
00056   vtkTypeRevisionMacro(vtkVectorNorm,vtkDataSetToDataSetFilter);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060   static vtkVectorNorm *New();
00061 
00063 
00064   vtkSetMacro(Normalize,int);
00065   vtkGetMacro(Normalize,int);
00066   vtkBooleanMacro(Normalize,int);
00068 
00070 
00076   vtkSetMacro(AttributeMode,int);
00077   vtkGetMacro(AttributeMode,int);
00078   void SetAttributeModeToDefault() 
00079     {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_DEFAULT);};
00080   void SetAttributeModeToUsePointData() 
00081     {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_POINT_DATA);};
00082   void SetAttributeModeToUseCellData() 
00083     {this->SetAttributeMode(VTK_ATTRIBUTE_MODE_USE_CELL_DATA);};
00084   const char *GetAttributeModeAsString();
00086 
00087 protected:
00088   vtkVectorNorm();
00089   ~vtkVectorNorm() {};
00090 
00091   void Execute();
00092 
00093   int Normalize;  // normalize 0<=n<=1 if true.
00094   int AttributeMode; //control whether to use point or cell data, or both
00095 private:
00096   vtkVectorNorm(const vtkVectorNorm&);  // Not implemented.
00097   void operator=(const vtkVectorNorm&);  // Not implemented.
00098 };
00099 
00100 #endif