#include <GForm.h>
Inheritance diagram for GCS::GForm:


Public Member Functions | |
| GForm (const GVector3 &position=GVector3(0, 0, 0), const GVector3 &rotation=GVector3(0, 0, 0)) | |
| GForm (const GForm &original) | |
| virtual | ~GForm () |
| virtual double | getRadiusMax () const=0 |
| virtual double | getRadiusMin () const=0 |
Public Attributes | |
| GVector3 | Position |
| GVector3 | Rotation |
| GFormDynamics | Dynamics |
Note that in GForm only parameters for geometric figures are given and no absolute values (face lists) like in a polygonal mesh. Giving absolute values would restrict the flexibility too much. The more computing power is available the more detailed a geometric figure can be calculated. These things should be implemented in specialisations of GForm.
Also note that an object's energy exactly outlines its GForm object. So if one wants to create an element that radiates a certain distance than there have to be at least two elements: one that represents the energy body (which is then the bigger one) and another element that represents it's visible form.
The solidness of a form is given by the objects energy level.
The GForm class itself is just a placeholder for actual form types, which are derived from GForm and implement all abstract methods. Since also the way forms are represented is different from application to application there is no restriction laid upon it by the GForm base class and it is totally left to the form developer to decide how forms should be represented by providing a proper subclass.
|
||||||||||||
|
Initializes form with given attributes. |
|
|
Copy constructor. |
|
|
Virtual destructor makes sure that objects of subclasses get deleted properly. |
|
|
Every point of the form is guranteed to be inside a sphere with returned radius and a center at GForm::Position.
Implemented in GBE::GOpenGLForm. |
|
|
It is guranteed that the form would totally enclose a sphere with returned radius and a center at GForm::Position
Implemented in GBE::GOpenGLForm. |
|
|
Holds dynamic informationen for moving, ... |
|
|
The position of the form. |
|
|
The rotation of the form. |
1.3.6