OpenLexocad  28.0
Sphere.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Geom/Ax2.h>
4 #include <OpenLxApp/Geometry.h>
5 
6 
7 FORWARD_DECL(Part, Sphere)
8 
9 namespace OpenLxApp
10 {
19 class LX_OPENLXAPP_EXPORT Sphere : public Geometry
20 {
21  PROXY_HEADER(Sphere, Part::Sphere, IFCSPHERE)
22 
23  DECL_PROPERTY(Sphere, Position, Geom::Ax2)
24  DECL_PROPERTY(Sphere, Radius, double)
25 
26 
27 public:
28  ~Sphere(void);
29 
30 
31 private:
32  Sphere(void) {}
33 };
34 } // namespace OpenLxApp
OpenLxApp
Definition: ActiveScript.h:10
FORWARD_DECL
#define FORWARD_DECL(x, y)
Definition: Globals.h:93
DECL_PROPERTY
#define DECL_PROPERTY(_class_, _name_, _type_)
DECL_PROPERTY and DEFINE_PROPERTY are macros used for mapping between the properties of Lexocad objec...
Definition: Globals.h:242
OpenLxApp::Geometry
Super-class of all Geometries (aka GeometricRepresentationItems)
Definition: Geometry.h:24
OpenLxApp::Sphere
The Sphere is a Construction Solid Geometry (CSG) 3D primitive. It is a solid where all points at the...
Definition: Sphere.h:20
Ax2.h
Geometry.h
PROXY_HEADER
#define PROXY_HEADER(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:146
Geom
Definition: PropertyContainer.h:33