VisioMove SDK (Android)
2.1.22
|
Public Member Functions | |
void | setAnimation (String pAnimationName, VgAnimationRefPtr pAnimation) |
void | setAnimation (VgAnimationRefPtr pAnimation) |
void | setLocalAnimation (VgAnimationRefPtr pAnimation) |
VgAnimationConstRefPtr | getAnimation (String pName) |
VgAnimationRefPtr | editAnimation (String pName) |
void | getAnimationNames (VgStringList pNameList) |
VgValue | getAnimationChannelValue (String pChannelName) |
VgPosition | getPosition () |
void | setPosition (VgPosition pPosition, boolean pHaveGeographicCoherence) |
void | setPosition (VgPosition pPosition) |
VgOrientation | getOrientation () |
void | setOrientation (VgOrientation pOrientation) |
float | getScale () |
void | setScale (float pScale) |
int | getZIndex () |
void | setZIndex (int pZIndex) |
boolean | isDrawnOnTop () |
void | setDrawOnTop (boolean pEnable) |
void | setVisible (boolean pIsVisible) |
boolean | isVisible () |
VgIGeometry | asGeometry () |
VgPoint | asPoint () |
VgLine | asLine () |
![]() | |
synchronized void | release () |
VgReferenced () | |
VgReferenced (VgReferenced pThis) | |
void | ref () |
int | unref () |
int | getNbReferences () |
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.
VgIGeometry VgSpatial.asGeometry | ( | ) |
Casts this instance into a VgIGeometry.
VgLine VgSpatial.asLine | ( | ) |
Casts this instance into a VgLine.
VgPoint VgSpatial.asPoint | ( | ) |
Casts this instance into a VgPoint.
VgAnimationRefPtr VgSpatial.editAnimation | ( | String | pName | ) |
Edits an animation from the spatial's animation map.
pName | The name of the animation to fetch. |
VgAnimationConstRefPtr VgSpatial.getAnimation | ( | String | pName | ) |
Gets an animation from the spatial's animation map.
pName | The name of the animation to fetch. |
VgValue VgSpatial.getAnimationChannelValue | ( | String | pChannelName | ) |
Get the current value of a given animation channel.
pChannelName | The name of the channel. |
void VgSpatial.getAnimationNames | ( | VgStringList | pNameList | ) |
Gets the list of the stored animation names.
pNameList | The list of strings to feed with the names. |
VgOrientation VgSpatial.getOrientation | ( | ) |
Gets spatial's orientation.
VgPosition VgSpatial.getPosition | ( | ) |
Gets spatial's position.
float VgSpatial.getScale | ( | ) |
int VgSpatial.getZIndex | ( | ) |
boolean VgSpatial.isDrawnOnTop | ( | ) |
boolean VgSpatial.isVisible | ( | ) |
void VgSpatial.setAnimation | ( | String | pAnimationName, |
VgAnimationRefPtr | 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 VgSpatial.setAnimation | ( | VgAnimationRefPtr | pAnimation | ) |
Sets an animation with an empty name on this spatial.
pAnimation | An animation to animate the spatial with. |
void VgSpatial.setDrawOnTop | ( | boolean | pEnable | ) |
Sets the drawOnTop flag. The VgSpatial will be visible even if there are objects in front.
pEnable |
void VgSpatial.setLocalAnimation | ( | VgAnimationRefPtr | pAnimation | ) |
Sets an animation on this spatial.
pAnimation | An animation to animate the spatial with. |
void VgSpatial.setOrientation | ( | VgOrientation | pOrientation | ) |
Sets the spatial orientation.
pOrientation | The orientation to set on the spatial. |
void VgSpatial.setPosition | ( | VgPosition | pPosition, |
boolean | pHaveGeographicCoherence | ||
) |
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 VgSpatial.setPosition | ( | VgPosition | pPosition | ) |
void VgSpatial.setScale | ( | float | pScale | ) |
Sets the spatial's scale.
pScale | The scale to set on the spatial. |
void VgSpatial.setVisible | ( | boolean | pIsVisible | ) |
void 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.
pZIndex |