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

vtkPlatonicSolidSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPlatonicSolidSource.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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&);  // Not implemented.
00081   void operator=(const vtkPlatonicSolidSource&);  // Not implemented.
00082 
00083 };
00084 
00085 #endif
00086 
00087