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

dox/Graphics/vtkHedgeHog.h

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