vtkPlatonicSolidSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00038 #ifndef __vtkPlatonicSolidSource_h
00039 #define __vtkPlatonicSolidSource_h
00040
00041 #include "vtkPolyDataSource.h"
00042
00043 #define VTK_SOLID_TETRAHEDRON 0
00044 #define VTK_SOLID_CUBE 1
00045 #define VTK_SOLID_OCTAHEDRON 2
00046 #define VTK_SOLID_ICOSAHEDRON 3
00047 #define VTK_SOLID_DODECAHEDRON 4
00048
00049 class VTK_GRAPHICS_EXPORT vtkPlatonicSolidSource : public vtkPolyDataSource
00050 {
00051 public:
00052 static vtkPlatonicSolidSource *New();
00053 vtkTypeRevisionMacro(vtkPlatonicSolidSource,vtkPolyDataSource);
00054 void PrintSelf(ostream& os, vtkIndent indent);
00055
00057
00058 vtkSetClampMacro(SolidType,int,VTK_SOLID_TETRAHEDRON,VTK_SOLID_DODECAHEDRON);
00059 vtkGetMacro(SolidType,int);
00060 void SetSolidTypeToTetrahedron()
00061 {this->SetSolidType(VTK_SOLID_TETRAHEDRON);}
00062 void SetSolidTypeToCube()
00063 {this->SetSolidType(VTK_SOLID_CUBE);}
00064 void SetSolidTypeToOctahedron()
00065 {this->SetSolidType(VTK_SOLID_OCTAHEDRON);}
00066 void SetSolidTypeToIcosahedron()
00067 {this->SetSolidType(VTK_SOLID_ICOSAHEDRON);}
00068 void SetSolidTypeToDodecahedron()
00069 {this->SetSolidType(VTK_SOLID_DODECAHEDRON);}
00071
00072 protected:
00073 vtkPlatonicSolidSource() : SolidType(VTK_SOLID_TETRAHEDRON) {}
00074 ~vtkPlatonicSolidSource() {}
00075
00076 void Execute();
00077 int SolidType;
00078
00079 private:
00080 vtkPlatonicSolidSource(const vtkPlatonicSolidSource&);
00081 void operator=(const vtkPlatonicSolidSource&);
00082
00083 };
00084
00085 #endif
00086
00087