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

vtkHedgeHog.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkHedgeHog.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 =========================================================================*/
00043 #ifndef __vtkHedgeHog_h
00044 #define __vtkHedgeHog_h
00045 
00046 #include "vtkDataSetToPolyDataFilter.h"
00047 
00048 #define VTK_USE_VECTOR 0
00049 #define VTK_USE_NORMAL 1
00050 
00051 class VTK_GRAPHICS_EXPORT vtkHedgeHog : public vtkDataSetToPolyDataFilter
00052 {
00053 public:
00054   static vtkHedgeHog *New();
00055   vtkTypeRevisionMacro(vtkHedgeHog,vtkDataSetToPolyDataFilter);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059 
00060   vtkSetMacro(ScaleFactor,double);
00061   vtkGetMacro(ScaleFactor,double);
00063 
00065 
00066   vtkSetMacro(VectorMode,int);
00067   vtkGetMacro(VectorMode,int);
00068   void SetVectorModeToUseVector() {this->SetVectorMode(VTK_USE_VECTOR);};
00069   void SetVectorModeToUseNormal() {this->SetVectorMode(VTK_USE_NORMAL);};
00070   const char *GetVectorModeAsString();
00072 
00073 protected:
00074   vtkHedgeHog();
00075   ~vtkHedgeHog() {};
00076 
00077   void Execute();
00078   double ScaleFactor;
00079   int VectorMode; // Orient/scale via normal or via vector data
00080 
00081 private:
00082   vtkHedgeHog(const vtkHedgeHog&);  // Not implemented.
00083   void operator=(const vtkHedgeHog&);  // Not implemented.
00084 };
00085 
00087 inline const char *vtkHedgeHog::GetVectorModeAsString(void)
00088 {
00089   if ( this->VectorMode == VTK_USE_VECTOR) 
00090     {
00091     return "UseVector";
00092     }
00093   else if ( this->VectorMode == VTK_USE_NORMAL) 
00094     {
00095     return "UseNormal";
00096     }
00097   else 
00098     {
00099     return "Unknown";
00100     }
00101 }
00102 #endif
00103 
00104