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 "vtkPolyDataAlgorithm.h"
32 
33 #define VTK_SOLID_TETRAHEDRON 0
34 #define VTK_SOLID_CUBE 1
35 #define VTK_SOLID_OCTAHEDRON 2
36 #define VTK_SOLID_ICOSAHEDRON 3
37 #define VTK_SOLID_DODECAHEDRON 4
38 
40 {
41 public:
42  static vtkPlatonicSolidSource *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkSetClampMacro(SolidType,int,VTK_SOLID_TETRAHEDRON,VTK_SOLID_DODECAHEDRON);
49  vtkGetMacro(SolidType,int);
51  {this->SetSolidType(VTK_SOLID_TETRAHEDRON);}
53  {this->SetSolidType(VTK_SOLID_CUBE);}
55  {this->SetSolidType(VTK_SOLID_OCTAHEDRON);}
57  {this->SetSolidType(VTK_SOLID_ICOSAHEDRON);}
59  {this->SetSolidType(VTK_SOLID_DODECAHEDRON);}
61 
62 protected:
65 
67  int SolidType;
68 
69 private:
70  vtkPlatonicSolidSource(const vtkPlatonicSolidSource&); // Not implemented.
71  void operator=(const vtkPlatonicSolidSource&); // Not implemented.
72 
73 };
74 
75 #endif
76 
77 
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
#define VTK_SOLID_ICOSAHEDRON
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_SOLID_CUBE
Store zero or more vtkInformation instances.
produce polygonal Platonic solids
#define VTK_SOLID_DODECAHEDRON
#define VTK_SOLID_OCTAHEDRON
#define VTK_SOLID_TETRAHEDRON