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 
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);
52  {this->SetSolidType(VTK_SOLID_TETRAHEDRON);}
54  {this->SetSolidType(VTK_SOLID_CUBE);}
56  {this->SetSolidType(VTK_SOLID_OCTAHEDRON);}
58  {this->SetSolidType(VTK_SOLID_ICOSAHEDRON);}
60  {this->SetSolidType(VTK_SOLID_DODECAHEDRON);}
62 
64 
68  vtkSetMacro(OutputPointsPrecision,int);
69  vtkGetMacro(OutputPointsPrecision,int);
71 
72 protected:
75 
77  int SolidType;
79 
80 private:
81  vtkPlatonicSolidSource(const vtkPlatonicSolidSource&); // Not implemented.
82  void operator=(const vtkPlatonicSolidSource&); // Not implemented.
83 
84 };
85 
86 #endif
87 
88 
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:38
#define VTKFILTERSSOURCES_EXPORT
#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