vtkHedgeHog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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;
00071
00072 private:
00073 vtkHedgeHog(const vtkHedgeHog&);
00074 void operator=(const vtkHedgeHog&);
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