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