public class VgMyAvatarDisplay extends java.lang.Object implements VgMyLocationListener, VgMyDisplayable
Constructor and Description |
---|
VgMyAvatarDisplay(VgMySurfaceView pSurfaceView,
VgMyTextureLoader pTextureLoader,
VgMyGeometryManager pGeometryManager,
java.lang.String pGeometryContext)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected void |
createAvatar()
Create basic avatar point
|
protected VgAnimationRefPtr |
getAvatarAnimationDescriptor() |
protected VgFunctorDescriptorRefPtr |
getSinusoidalFuncDesc() |
void |
hide()
Hides this Object.
|
boolean |
isVisible() |
protected void |
loadTextures()
Loads the texture associated with the Avatar
|
void |
notifyAccuracyDidChange(java.lang.String pProvider,
double pAccuracy)
Called when the accuracy has changed.
|
void |
notifyContextDidChange(java.lang.String pProvider,
int pContext)
Called when the context has changed
|
void |
notifyFloorDidChange(java.lang.String pProvider,
java.lang.String pFloor)
Called when the floor has changed.
|
void |
notifyHeadingDidChange(java.lang.String pProvider,
double pHeading)
Called when the heading has changed.
|
void |
notifyLocationProviderDisabled(java.lang.String pProvider)
Called when the provider is disabled
|
void |
notifyLocationProviderEnabled(java.lang.String pProvider)
Called when the provider is enabled
|
void |
notifyPositionDidChange(java.lang.String pProvider,
VgPosition pPosition)
Called when the location has changed
|
void |
release()
This method should be called when the activity dies to notify that we
should release/unregister all VisioDevKit objects, and null out as much
references on other objects as possible.
|
void |
show()
Displays this Object.
|
public VgMyAvatarDisplay(VgMySurfaceView pSurfaceView, VgMyTextureLoader pTextureLoader, VgMyGeometryManager pGeometryManager, java.lang.String pGeometryContext)
pSurfaceView
- pTextureLoader
- pGeometryManager
- pGeometryContext
- The context name used when adding the geometry to VgMyGeometryManagerprotected void createAvatar()
protected void loadTextures()
protected VgAnimationRefPtr getAvatarAnimationDescriptor()
protected VgFunctorDescriptorRefPtr getSinusoidalFuncDesc()
public void release()
public void show()
VgMyDisplayable
show
in interface VgMyDisplayable
public void hide()
VgMyDisplayable
hide
in interface VgMyDisplayable
public void clear()
public boolean isVisible()
isVisible
in interface VgMyDisplayable
public void notifyPositionDidChange(java.lang.String pProvider, VgPosition pPosition)
VgMyLocationListener
notifyPositionDidChange
in interface VgMyLocationListener
pProvider
- The location provider responsible for sending the notificationpPosition
- The new positionpublic void notifyFloorDidChange(java.lang.String pProvider, java.lang.String pFloor)
VgMyLocationListener
notifyFloorDidChange
in interface VgMyLocationListener
pProvider
- The location provider responsible for sending the notification.pFloor
- The new floorpublic void notifyAccuracyDidChange(java.lang.String pProvider, double pAccuracy)
VgMyLocationListener
notifyAccuracyDidChange
in interface VgMyLocationListener
pProvider
- The location provider responsible for sending the notification.pAccuracy
- The new accuracypublic void notifyContextDidChange(java.lang.String pProvider, int pContext)
VgMyLocationListener
notifyContextDidChange
in interface VgMyLocationListener
pProvider
- The location provider responsible for sending the notification.pContext
- The new contextpublic void notifyHeadingDidChange(java.lang.String pProvider, double pHeading)
VgMyLocationListener
notifyHeadingDidChange
in interface VgMyLocationListener
pProvider
- The location provider responsible for sending the notification.pHeading
- The new headingpublic void notifyLocationProviderEnabled(java.lang.String pProvider)
VgMyLocationListener
notifyLocationProviderEnabled
in interface VgMyLocationListener
pProvider
- The location provider responsible for sending the notification.public void notifyLocationProviderDisabled(java.lang.String pProvider)
VgMyLocationListener
notifyLocationProviderDisabled
in interface VgMyLocationListener
pProvider
- The location provider responsible for sending the notification.