VisioMove SDK (iOS)
2.1.22
|
Public Member Functions | |
void | setAnimation (const std::string &pAnimationName, VgEngine::VgRefPtr< VgEngine::VgAnimation > &pAnimation) |
void | setAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation) |
void | setLocalAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation) |
VgConstRefPtr< VgAnimation > | getAnimation (const std::string &pName) const |
VgRefPtr< VgAnimation > | editAnimation (const std::string &pName) |
void | getAnimationNames (std::list< std::string > &pNameList) const |
VgValue | getAnimationChannelValue (const std::string &pChannelName) const |
VgEngine::VgPosition | getPosition () const |
virtual void | setPosition (const VgEngine::VgPosition &pPosition, bool pHaveGeographicCoherence=true) |
VgEngine::VgOrientation | getOrientation () const |
void | setOrientation (const VgEngine::VgOrientation &pOrientation) |
float | getScale () const |
void | setScale (float pScale) |
int | getZIndex () const |
void | setZIndex (int pZIndex) |
bool | isDrawnOnTop () const |
void | setDrawOnTop (bool pEnable) |
virtual void | setVisible (bool pIsVisible) |
virtual bool | isVisible () const |
virtual Vg3DModule::VgIGeometry * | asGeometry () |
virtual Vg3DModule::VgPoint * | asPoint () |
virtual Vg3DModule::VgLine * | asLine () |
Public Member Functions inherited from VgEngine::VgReferenced | |
VgReferenced () | |
VgReferenced (const VgReferenced &pThis) | |
virtual | ~VgReferenced () |
VgReferenced & | operator= (const VgReferenced &pThis) |
void | ref () const |
int | unref () const |
int | getNbReferences () const |
Protected Member Functions | |
VgSpatial () | |
virtual | ~VgSpatial () |
Protected Attributes | |
Private * | mPrivate |
Protected Attributes inherited from VgEngine::VgReferenced | |
int | mNbReferences |
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.
|
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.
|
protectedvirtual |
Destructor.
|
virtual |
Casts this instance into a VgIGeometry.
Reimplemented in Vg3DModule::VgIGeometry.
|
virtual |
Casts this instance into a VgLine.
Reimplemented in Vg3DModule::VgPoint, Vg3DModule::VgLine, and Vg3DModule::VgIGeometry.
|
virtual |
Casts this instance into a VgPoint.
Reimplemented in Vg3DModule::VgPoint, Vg3DModule::VgLine, and Vg3DModule::VgIGeometry.
VgRefPtr< VgAnimation > VgEngine::VgSpatial::editAnimation | ( | const std::string & | pName | ) |
Edits an animation from the spatial's animation map.
pName | The name of the animation to fetch. |
VgConstRefPtr< VgAnimation > VgEngine::VgSpatial::getAnimation | ( | const std::string & | pName | ) | const |
Gets an animation from the spatial's animation map.
pName | The name of the animation to fetch. |
VgValue VgEngine::VgSpatial::getAnimationChannelValue | ( | const std::string & | pChannelName | ) | const |
Get the current value of a given animation channel.
pChannelName | The name of the channel. |
void VgEngine::VgSpatial::getAnimationNames | ( | std::list< std::string > & | pNameList | ) | const |
Gets the list of the stored animation names.
pNameList | The list of strings to feed with the names. |
VgEngine::VgOrientation VgEngine::VgSpatial::getOrientation | ( | ) | const |
Gets spatial's orientation.
VgEngine::VgPosition VgEngine::VgSpatial::getPosition | ( | ) | const |
Gets spatial's position.
float VgEngine::VgSpatial::getScale | ( | ) | const |
int VgEngine::VgSpatial::getZIndex | ( | ) | const |
bool VgEngine::VgSpatial::isDrawnOnTop | ( | ) | const |
|
virtual |
Reimplemented in VgEngine::VgLayer.
void VgEngine::VgSpatial::setAnimation | ( | const std::string & | pAnimationName, |
VgEngine::VgRefPtr< VgEngine::VgAnimation > & | pAnimation | ||
) |
Sets an animation on this spatial. As of version 2.0.8744, multiple animations can be set (and played) on a spatial at the same time. This is the reason why a name has to be provided along with the animation. If an animation already exists in the spatial with that name, the new one will replace the old one (and the previous one will one less reference to it).
pAnimationName | The name to associate the animation with in this spatial |
pAnimation | An animation to animate the spatial with. |
void VgEngine::VgSpatial::setAnimation | ( | VgEngine::VgRefPtr< VgEngine::VgAnimation > | pAnimation | ) |
Sets an animation with an empty name on this spatial.
pAnimation | An animation to animate the spatial with. |
void VgEngine::VgSpatial::setDrawOnTop | ( | bool | pEnable | ) |
Sets the drawOnTop flag. The VgSpatial will be visible even if there are objects in front.
void VgEngine::VgSpatial::setLocalAnimation | ( | VgEngine::VgRefPtr< VgEngine::VgAnimation > | pAnimation | ) |
Sets an animation on this spatial.
pAnimation | An animation to animate the spatial with. |
void VgEngine::VgSpatial::setOrientation | ( | const VgEngine::VgOrientation & | pOrientation | ) |
Sets the spatial orientation.
pOrientation | The orientation to set on the spatial. |
|
virtual |
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. |
void VgEngine::VgSpatial::setScale | ( | float | pScale | ) |
Sets the spatial's scale.
pScale | The scale to set on the spatial. |
|
virtual |
Sets the visibility. By default, a VgSpatial is visible.
Reimplemented in VgEngine::VgLayer.
void VgEngine::VgSpatial::setZIndex | ( | int | pZIndex | ) |
Sets the Z Index, an object with a smaller ZIndex will be drawn in front of another with a larger one.
|
friend |
|
friend |
|
protected |
Private.