|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.visioglobe.libVisioDevKit.VgReferenced
com.visioglobe.libVisioDevKit.VgSpatial
public class VgSpatial
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.
Field Summary |
---|
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced |
---|
swigCMemOwn, swigRefPtr |
Constructor Summary | |
---|---|
VgSpatial(long cPtr,
boolean cMemoryOwn)
Default constructor. |
Method Summary | |
---|---|
void |
delete()
|
VgAnimationRefPtr |
editAnimation(java.lang.String pName)
Edits an animation from the spatial's animation map. |
VgAnimationConstRefPtr |
getAnimation(java.lang.String pName)
Gets an animation from the spatial's animation map. |
void |
getAnimationNames(VgStringList pNameList)
Gets the list of the stored animation names. |
static long |
getCPtr(VgSpatial obj)
|
VgOrientation |
getOrientation()
Gets spatial's orientation. |
VgPosition |
getPosition()
Gets spatial's position. |
void |
setAnimation(java.lang.String pAnimationName,
VgAnimationRefPtr pAnimation)
|
void |
setAnimation(VgAnimationRefPtr pAnimation)
Deprecated. |
void |
setLocalAnimation(VgAnimationRefPtr pAnimation)
Deprecated. |
void |
setOrientation(VgOrientation pOrientation)
Sets the spatial orientation. |
void |
setPosition(VgPosition pPosition)
|
void |
setPosition(VgPosition pPosition,
boolean pHaveGeographicCoherence)
Sets the spatial position. |
void |
setScale(float pScale)
Sets the spatial's scale. |
Methods inherited from class com.visioglobe.libVisioDevKit.VgReferenced |
---|
finalize, getCPtr, getNbReferences, ref, unref |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VgSpatial(long cPtr, boolean cMemoryOwn)
Method Detail |
---|
public static long getCPtr(VgSpatial obj)
public void delete()
delete
in class VgReferenced
public void setAnimation(java.lang.String pAnimationName, VgAnimationRefPtr pAnimation)
public void setAnimation(VgAnimationRefPtr pAnimation)
pAnimation
- An animation to animate the spatial with.public void setLocalAnimation(VgAnimationRefPtr pAnimation)
pAnimation
- An animation to animate the spatial with.public VgAnimationConstRefPtr getAnimation(java.lang.String pName)
pName
- The name of the animation to fetch.
public VgAnimationRefPtr editAnimation(java.lang.String pName)
pName
- The name of the animation to fetch.
public void getAnimationNames(VgStringList pNameList)
pNameList
- The list of strings to feed with the names.public VgPosition getPosition()
public void setPosition(VgPosition pPosition, boolean pHaveGeographicCoherence)
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.public void setPosition(VgPosition pPosition)
public VgOrientation getOrientation()
public void setOrientation(VgOrientation pOrientation)
pOrientation
- The orientation to set on the spatial.public void setScale(float pScale)
pScale
- The scale to set on the spatial.
|
VisioDevKit 2.0, Visioglobe® 2013 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |