Graphics/vtkHedgeHog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00030 #ifndef __vtkHedgeHog_h
00031 #define __vtkHedgeHog_h
00032
00033 #include "vtkDataSetToPolyDataFilter.h"
00034
00035 #define VTK_USE_VECTOR 0
00036 #define VTK_USE_NORMAL 1
00037
00038 class VTK_GRAPHICS_EXPORT vtkHedgeHog : public vtkDataSetToPolyDataFilter
00039 {
00040 public:
00041 static vtkHedgeHog *New();
00042 vtkTypeRevisionMacro(vtkHedgeHog,vtkDataSetToPolyDataFilter);
00043 void PrintSelf(ostream& os, vtkIndent indent);
00044
00046
00047 vtkSetMacro(ScaleFactor,double);
00048 vtkGetMacro(ScaleFactor,double);
00050
00052
00053 vtkSetMacro(VectorMode,int);
00054 vtkGetMacro(VectorMode,int);
00055 void SetVectorModeToUseVector() {this->SetVectorMode(VTK_USE_VECTOR);};
00056 void SetVectorModeToUseNormal() {this->SetVectorMode(VTK_USE_NORMAL);};
00057 const char *GetVectorModeAsString();
00059
00060 protected:
00061 vtkHedgeHog();
00062 ~vtkHedgeHog() {};
00063
00064 void Execute();
00065 double ScaleFactor;
00066 int VectorMode;
00067
00068 private:
00069 vtkHedgeHog(const vtkHedgeHog&);
00070 void operator=(const vtkHedgeHog&);
00071 };
00072
00074 inline const char *vtkHedgeHog::GetVectorModeAsString(void)
00075 {
00076 if ( this->VectorMode == VTK_USE_VECTOR)
00077 {
00078 return "UseVector";
00079 }
00080 else if ( this->VectorMode == VTK_USE_NORMAL)
00081 {
00082 return "UseNormal";
00083 }
00084 else
00085 {
00086 return "Unknown";
00087 }
00088 }
00089 #endif
00090
00091