VTK
vtkPlatonicSolidSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlatonicSolidSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef __vtkPlatonicSolidSource_h
29 #define __vtkPlatonicSolidSource_h
30 
31 #include "vtkFiltersSourcesModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 #define VTK_SOLID_TETRAHEDRON 0
35 #define VTK_SOLID_CUBE 1
36 #define VTK_SOLID_OCTAHEDRON 2
37 #define VTK_SOLID_ICOSAHEDRON 3
38 #define VTK_SOLID_DODECAHEDRON 4
39 
40 class VTKFILTERSSOURCES_EXPORT vtkPlatonicSolidSource : public vtkPolyDataAlgorithm
41 {
42 public:
43  static vtkPlatonicSolidSource *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkSetClampMacro(SolidType,int,VTK_SOLID_TETRAHEDRON,VTK_SOLID_DODECAHEDRON);
50  vtkGetMacro(SolidType,int);
51  void SetSolidTypeToTetrahedron()
52  {this->SetSolidType(VTK_SOLID_TETRAHEDRON);}
53  void SetSolidTypeToCube()
54  {this->SetSolidType(VTK_SOLID_CUBE);}
55  void SetSolidTypeToOctahedron()
56  {this->SetSolidType(VTK_SOLID_OCTAHEDRON);}
57  void SetSolidTypeToIcosahedron()
58  {this->SetSolidType(VTK_SOLID_ICOSAHEDRON);}
59  void SetSolidTypeToDodecahedron()
60  {this->SetSolidType(VTK_SOLID_DODECAHEDRON);}
62 
63 protected:
66 
68  int SolidType;
69 
70 private:
71  vtkPlatonicSolidSource(const vtkPlatonicSolidSource&); // Not implemented.
72  void operator=(const vtkPlatonicSolidSource&); // Not implemented.
73 
74 };
75 
76 #endif
77 
78