Space Entity class.
Inheritance:
SpaceEntity
Public Fields
-
Vector3 pos
- The stats are public so one can still manipulate them directly without the computing done within the "set" methods to orthogonalize everyting.
-
Vector3 lookat
- See Vector3 pos
-
Vector3 up
- See Vector3 pos
-
SigC::Signal1<int, Vector3> pos_update
- These signals can be used to update external informations, eg within a Gtk_CoordEntry.
-
SigC::Signal1<int, Vector3> lookat_update
- See SigC::Signal1<int, Vector3>pos_update
-
SigC::Signal1<int, Vector3> up_update
- See SigC::Signal1<int, Vector3>pos_update
Public Methods
-
SpaceEntity()
- Constructor
-
int set_pos(Vector3 p)
- These methods make sure that everything is perpendicular and that up is of unit length.
-
int set_lookat(Vector3 p)
- see int set_pos(Vector3 p)
-
int set_up(Vector3 p)
- see int set_pos(Vector3 p)
-
SpaceStats get_stats()
- Returns the whole bunch; No reference!
Documentation
Space Entity class.
A Class for 3D objects in the GL Space. Contains methods which ensure that
the variables can be manipulated in a correct way (eg. the lookat-vector must
not equal the position).
- SpaceEntity()
- Constructor
- int set_pos(Vector3 p)
- These methods make sure that everything is perpendicular and that up is
of unit length.
- int set_lookat(Vector3 p)
- see int set_pos(Vector3 p)
- int set_up(Vector3 p)
- see int set_pos(Vector3 p)
- SpaceStats get_stats()
- Returns the whole bunch; No reference! read only
- Vector3 pos
- The stats are public so one can still manipulate them directly without the
computing done within the "set" methods to orthogonalize everyting.
Invalid oparations are not prevented, though!
- Vector3 lookat
- See Vector3 pos
- Vector3 up
- See Vector3 pos
- SigC::Signal1<int, Vector3> pos_update
- These signals can be used to update external informations, eg within a
Gtk_CoordEntry. They are called within the "set" methods; keep in mind
that up might be changed without calling set_up due to ortogonalization
within set_pos and set_camera; here the signal can be used to ensure
actualization of external informations.
- SigC::Signal1<int, Vector3> lookat_update
- See SigC::Signal1<int, Vector3>pos_update
- SigC::Signal1<int, Vector3> up_update
- See SigC::Signal1<int, Vector3>pos_update
- Direct child classes:
- Waypoint
Alphabetic index Hierarchy of classes
This page was generated with the help of DOC++.