This class gives access to the spatial aspect of an object (layer, point, etc). More...
Public Member Functions | |
void | setAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation) |
Sets an animation on this spatial. | |
VgEngine::VgPosition | getPosition () const |
Gets spatial's position. | |
void | setPosition (const VgEngine::VgPosition &pPosition, bool pHaveGeographicCoherence=true) |
Sets the spatial position. | |
Protected Member Functions | |
VgSpatial () | |
Default constructor. | |
virtual | ~VgSpatial () |
Destructor. | |
Protected Attributes | |
Private * | mPrivate |
Private. | |
Friends | |
class | VgObjectBridge |
class | VgLayer |
This class gives access to the spatial aspect of an object (layer, point, etc).
The spatial aspect controls the object's position in scene space. It also enables animation features on spatial objects.
VgEngine::VgSpatial::VgSpatial | ( | ) | [protected] |
Default constructor.
This is protected since it is not possible to create a spatial directly. Instead, instantiate a spatial object (like point for example) and access it's spatial aspect.
virtual VgEngine::VgSpatial::~VgSpatial | ( | ) | [protected, virtual] |
Destructor.
VgEngine::VgPosition VgEngine::VgSpatial::getPosition | ( | ) | const |
Gets spatial's position.
void VgEngine::VgSpatial::setAnimation | ( | VgEngine::VgRefPtr< VgEngine::VgAnimation > | pAnimation ) |
Sets an animation on this spatial.
pAnimation | The animation to animate the spatial with. |
void VgEngine::VgSpatial::setPosition | ( | const VgEngine::VgPosition & | pPosition, |
bool | pHaveGeographicCoherence = true |
||
) |
Sets the spatial position.
pPosition | The position to put the spatial at. |
pHaveGeographicCoherence | An optional parameter who by default is true. Is used to determine the geographic coherence of the spatial. If set to false, then the spatial will be coherent with the scene. |
friend class VgLayer [friend] |
friend class VgObjectBridge [friend] |
Reimplemented in VgEngine::VgLayer.
Private* VgEngine::VgSpatial::mPrivate [protected] |
Private.