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=========================================================================*/
29#ifndef vtkPlatonicSolidSource_h
30#define vtkPlatonicSolidSource_h
31
32#include "vtkFiltersSourcesModule.h" // For export macro
34
35#define VTK_SOLID_TETRAHEDRON 0
36#define VTK_SOLID_CUBE 1
37#define VTK_SOLID_OCTAHEDRON 2
38#define VTK_SOLID_ICOSAHEDRON 3
39#define VTK_SOLID_DODECAHEDRON 4
40
41class VTKFILTERSSOURCES_EXPORT vtkPlatonicSolidSource : public vtkPolyDataAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47
49
52 vtkSetClampMacro(SolidType,int,VTK_SOLID_TETRAHEDRON,VTK_SOLID_DODECAHEDRON);
53 vtkGetMacro(SolidType,int);
55 {this->SetSolidType(VTK_SOLID_TETRAHEDRON);}
57 {this->SetSolidType(VTK_SOLID_CUBE);}
59 {this->SetSolidType(VTK_SOLID_OCTAHEDRON);}
61 {this->SetSolidType(VTK_SOLID_ICOSAHEDRON);}
63 {this->SetSolidType(VTK_SOLID_DODECAHEDRON);}
65
67
72 vtkSetMacro(OutputPointsPrecision,int);
73 vtkGetMacro(OutputPointsPrecision,int);
75
76protected:
78 ~vtkPlatonicSolidSource() VTK_OVERRIDE {}
79
83
84private:
85 vtkPlatonicSolidSource(const vtkPlatonicSolidSource&) VTK_DELETE_FUNCTION;
86 void operator=(const vtkPlatonicSolidSource&) VTK_DELETE_FUNCTION;
87
88};
89
90#endif
91
92
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
produce polygonal Platonic solids
static vtkPlatonicSolidSource * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for algorithms that produce only polydata as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_SOLID_DODECAHEDRON
#define VTK_SOLID_TETRAHEDRON
#define VTK_SOLID_CUBE
#define VTK_SOLID_OCTAHEDRON
#define VTK_SOLID_ICOSAHEDRON