C# Class OpenViewer.Adapter

Inheritance: IAdapter
Exibir arquivo Open project: 3di/3di-viewer-rei-api

Public Methods

Method Description
CallAnimationEndEvent ( string _animationName ) : void
CallAvatarCustomizeAnimation ( int _index ) : void
CallAvatarPicked ( string _avatarInformation ) : void
CallCameraLookAt ( float _px, float _py, float _pz, float _tx, float _ty, float _tz ) : void
CallDebugMessage ( string _message ) : void
CallGetAvatarCount ( ) : string
CallGetCameraAngleY ( ) : string
CallGetCameraDistance ( ) : string
CallGetCameraFOV ( ) : string
CallGetCameraOffsetY ( ) : string
CallGetCameraPosition ( ) : string

Get camera position.

CallGetCameraTarget ( ) : string

Get camera position.

CallGetFPS ( ) : int
CallGetLoggedinAvatarUUIDList ( ) : string
CallGetMessageFromHistory ( int _index ) : string

Get all messages from message history.

CallGetMessageHistoryLength ( ) : int

Get all stored message count.

CallGetObjectCount ( ) : string
CallGetPrimitiveCount ( ) : int
CallGetRegionName ( ) : string
CallGetTextureCount ( ) : int
CallGetUserAvatarAnimationName ( ) : string
CallGetUserAvatarName ( ) : string
CallGetUserAvatarPosition ( ) : string
CallGetUserAvatarUUID ( ) : string
CallGetUserUUID ( ) : string
CallGetWorldTime ( ) : string
CallLogin ( string _firstName, string _lastName, string _password, string _serverURL, string _loginLocation ) : void

Login with specified account data

CallLogout ( ) : void

Logout immediately

CallOpenWindow ( string _target, string _uri ) : void

Open browser window with specified uri.

CallReceiveImage ( string texname ) : void
CallReceiveInstantMessaged ( string _uuid, string _avatarName, string _message ) : void

When a user receive instant message in In-world, this function will notify the reseived message.

CallReceiveMessaged ( string _uuid, string _avatarName, string _message ) : void

When a user receive text chat message in In-world, this function will notify the reseived message.

CallRequestImage ( string _assetUUID, string _useCache ) : void
CallSendChat ( string _message, int _range ) : void

Send text chat message via DHTM

CallSendIM ( string _target_uuid, string _message ) : void

Send InstantMessage via DHTM

CallSetCameraAngleY ( float _min, float _max ) : void
CallSetCameraDistance ( float _distance ) : void
CallSetCameraFOV ( float _fov ) : void
CallSetCameraFOVDegree ( float _fov ) : void
CallSetCameraOffsetY ( float _offsetY ) : void
CallSetFixDirectional ( string _flag ) : void
CallSetFixDirectionalAmbientColor ( string _colors ) : void
CallSetFixDirectionalDiffuseColor ( string _colors ) : void
CallSetFixDirectionalRotation ( string _radRotation ) : void
CallSetTexture ( string _objectUUID, int _materialIndex, string _filename, string _requestEnable ) : string
CallSetTickOn ( string _flag ) : void
CallSetWorldAmbientColor ( string _colors ) : void
CallSetWorldTime ( string _dataTime ) : void
CallSitOn ( string _uuid ) : void

Sit on specified SIT ball object.

CallStandUp ( ) : void

Stand up from specified SIT ball object.

CallStateChanged ( int _state ) : void
CallTeleport ( string _regionName, int _x, int _y, int _z ) : void

When a user receive someone/himself teleport started same sim in In-world, this function will notify the message.

CallTeleportTo ( string _regionName, int _x, int _y, int _z ) : void

Teleport to specified location.

CallTeleported ( string _uuid, string _avatar, int _x, int _y, int _z ) : void

When a user receive someone/himself teleported same sim in In-world, this function will notify the message.

CallTouchTo ( string _uuid ) : void

Touch specified object.

CallTouched ( string _uuid ) : void

When a user touch specified object in In-world, this function will notify the object UUID.

CallUserAvatarDown ( bool _flag ) : void
CallUserAvatarLeft ( ) : void
CallUserAvatarRight ( ) : void
CallUserAvatarUp ( bool _flag ) : void
Cleanup ( ) : void
Dispatch ( string action, string message ) : void
Initialize ( IRefController _reference ) : void
RegisterCallback ( string action, Callback callback ) : void
RegisterMessage ( string action, MessageHandler message ) : void
RunCallback ( string action, string message ) : string
SendMessage ( string action, object parameters ) : object
TeleportThread ( object _obj ) : void
TeleportedThread ( object _obj ) : void
Update ( ) : void

Private Methods

Method Description
AvatarPickedThredFunction ( object _parent ) : void
TouchedThred ( object _parent ) : void

Method Details

CallAnimationEndEvent() public method

public CallAnimationEndEvent ( string _animationName ) : void
_animationName string
return void

CallAvatarCustomizeAnimation() public method

public CallAvatarCustomizeAnimation ( int _index ) : void
_index int
return void

CallAvatarPicked() public method

public CallAvatarPicked ( string _avatarInformation ) : void
_avatarInformation string
return void

CallCameraLookAt() public method

public CallCameraLookAt ( float _px, float _py, float _pz, float _tx, float _ty, float _tz ) : void
_px float
_py float
_pz float
_tx float
_ty float
_tz float
return void

CallDebugMessage() public method

public CallDebugMessage ( string _message ) : void
_message string
return void

CallGetAvatarCount() public method

public CallGetAvatarCount ( ) : string
return string

CallGetCameraAngleY() public method

public CallGetCameraAngleY ( ) : string
return string

CallGetCameraDistance() public method

public CallGetCameraDistance ( ) : string
return string

CallGetCameraFOV() public method

public CallGetCameraFOV ( ) : string
return string

CallGetCameraOffsetY() public method

public CallGetCameraOffsetY ( ) : string
return string

CallGetCameraPosition() public method

Get camera position.
public CallGetCameraPosition ( ) : string
return string

CallGetCameraTarget() public method

Get camera position.
public CallGetCameraTarget ( ) : string
return string

CallGetFPS() public method

public CallGetFPS ( ) : int
return int

CallGetLoggedinAvatarUUIDList() public method

public CallGetLoggedinAvatarUUIDList ( ) : string
return string

CallGetMessageFromHistory() public method

Get all messages from message history.
public CallGetMessageFromHistory ( int _index ) : string
_index int message's history number
return string

CallGetMessageHistoryLength() public method

Get all stored message count.
public CallGetMessageHistoryLength ( ) : int
return int

CallGetObjectCount() public method

public CallGetObjectCount ( ) : string
return string

CallGetPrimitiveCount() public method

public CallGetPrimitiveCount ( ) : int
return int

CallGetRegionName() public method

public CallGetRegionName ( ) : string
return string

CallGetTextureCount() public method

public CallGetTextureCount ( ) : int
return int

CallGetUserAvatarAnimationName() public method

public CallGetUserAvatarAnimationName ( ) : string
return string

CallGetUserAvatarName() public method

public CallGetUserAvatarName ( ) : string
return string

CallGetUserAvatarPosition() public method

public CallGetUserAvatarPosition ( ) : string
return string

CallGetUserAvatarUUID() public method

public CallGetUserAvatarUUID ( ) : string
return string

CallGetUserUUID() public method

public CallGetUserUUID ( ) : string
return string

CallGetWorldTime() public method

public CallGetWorldTime ( ) : string
return string

CallLogin() public method

Login with specified account data
public CallLogin ( string _firstName, string _lastName, string _password, string _serverURL, string _loginLocation ) : void
_firstName string firstName
_lastName string lastName
_password string password
_serverURL string serverURL http://login-server-url
_loginLocation string
return void

CallLogout() public method

Logout immediately
public CallLogout ( ) : void
return void

CallOpenWindow() public method

Open browser window with specified uri.
public CallOpenWindow ( string _target, string _uri ) : void
_target string Window target
_uri string Target uri
return void

CallReceiveImage() public method

public CallReceiveImage ( string texname ) : void
texname string
return void

CallReceiveInstantMessaged() public method

When a user receive instant message in In-world, this function will notify the reseived message.
public CallReceiveInstantMessaged ( string _uuid, string _avatarName, string _message ) : void
_uuid string UUID of avatar
_avatarName string Name of avatar
_message string Received message
return void

CallReceiveMessaged() public method

When a user receive text chat message in In-world, this function will notify the reseived message.
public CallReceiveMessaged ( string _uuid, string _avatarName, string _message ) : void
_uuid string UUID of avatar
_avatarName string Name of avatar
_message string Received message
return void

CallRequestImage() public method

public CallRequestImage ( string _assetUUID, string _useCache ) : void
_assetUUID string
_useCache string
return void

CallSendChat() public method

Send text chat message via DHTM
public CallSendChat ( string _message, int _range ) : void
_message string Chat message
_range int Range of spread area /// 1 : whisper /// 2 : say /// 3 : shout ///
return void

CallSendIM() public method

Send InstantMessage via DHTM
public CallSendIM ( string _target_uuid, string _message ) : void
_target_uuid string target user uuid
_message string message
return void

CallSetCameraAngleY() public method

public CallSetCameraAngleY ( float _min, float _max ) : void
_min float
_max float
return void

CallSetCameraDistance() public method

public CallSetCameraDistance ( float _distance ) : void
_distance float
return void

CallSetCameraFOV() public method

public CallSetCameraFOV ( float _fov ) : void
_fov float
return void

CallSetCameraFOVDegree() public method

public CallSetCameraFOVDegree ( float _fov ) : void
_fov float
return void

CallSetCameraOffsetY() public method

public CallSetCameraOffsetY ( float _offsetY ) : void
_offsetY float
return void

CallSetFixDirectional() public method

public CallSetFixDirectional ( string _flag ) : void
_flag string
return void

CallSetFixDirectionalAmbientColor() public method

public CallSetFixDirectionalAmbientColor ( string _colors ) : void
_colors string
return void

CallSetFixDirectionalDiffuseColor() public method

public CallSetFixDirectionalDiffuseColor ( string _colors ) : void
_colors string
return void

CallSetFixDirectionalRotation() public method

public CallSetFixDirectionalRotation ( string _radRotation ) : void
_radRotation string
return void

CallSetTexture() public method

public CallSetTexture ( string _objectUUID, int _materialIndex, string _filename, string _requestEnable ) : string
_objectUUID string
_materialIndex int
_filename string
_requestEnable string
return string

CallSetTickOn() public method

public CallSetTickOn ( string _flag ) : void
_flag string
return void

CallSetWorldAmbientColor() public method

public CallSetWorldAmbientColor ( string _colors ) : void
_colors string
return void

CallSetWorldTime() public method

public CallSetWorldTime ( string _dataTime ) : void
_dataTime string
return void

CallSitOn() public method

Sit on specified SIT ball object.
public CallSitOn ( string _uuid ) : void
_uuid string Sit target object UUID
return void

CallStandUp() public method

Stand up from specified SIT ball object.
public CallStandUp ( ) : void
return void

CallStateChanged() public method

public CallStateChanged ( int _state ) : void
_state int
return void

CallTeleport() public method

When a user receive someone/himself teleport started same sim in In-world, this function will notify the message.
public CallTeleport ( string _regionName, int _x, int _y, int _z ) : void
_regionName string regionName
_x int X axsis position
_y int Y axsis position
_z int Z axsis position
return void

CallTeleportTo() public method

Teleport to specified location.
public CallTeleportTo ( string _regionName, int _x, int _y, int _z ) : void
_regionName string regionName
_x int X axsis position
_y int Y axsis position
_z int Z axsis position
return void

CallTeleported() public method

When a user receive someone/himself teleported same sim in In-world, this function will notify the message.
public CallTeleported ( string _uuid, string _avatar, int _x, int _y, int _z ) : void
_uuid string UUID of avatar
_avatar string Name of avatar
_x int X axsis position
_y int Y axsis position
_z int Z axsis position
return void

CallTouchTo() public method

Touch specified object.
public CallTouchTo ( string _uuid ) : void
_uuid string Target object UUID
return void

CallTouched() public method

When a user touch specified object in In-world, this function will notify the object UUID.
public CallTouched ( string _uuid ) : void
_uuid string Touched object UUID
return void

CallUserAvatarDown() public method

public CallUserAvatarDown ( bool _flag ) : void
_flag bool
return void

CallUserAvatarLeft() public method

public CallUserAvatarLeft ( ) : void
return void

CallUserAvatarRight() public method

public CallUserAvatarRight ( ) : void
return void

CallUserAvatarUp() public method

public CallUserAvatarUp ( bool _flag ) : void
_flag bool
return void

Cleanup() public method

public Cleanup ( ) : void
return void

Dispatch() public method

public Dispatch ( string action, string message ) : void
action string
message string
return void

Initialize() public method

public Initialize ( IRefController _reference ) : void
_reference IRefController
return void

RegisterCallback() public method

public RegisterCallback ( string action, Callback callback ) : void
action string
callback Callback
return void

RegisterMessage() public method

public RegisterMessage ( string action, MessageHandler message ) : void
action string
message MessageHandler
return void

RunCallback() public method

public RunCallback ( string action, string message ) : string
action string
message string
return string

SendMessage() public method

public SendMessage ( string action, object parameters ) : object
action string
parameters object
return object

TeleportThread() public method

public TeleportThread ( object _obj ) : void
_obj object
return void

TeleportedThread() public method

public TeleportedThread ( object _obj ) : void
_obj object
return void

Update() public method

public Update ( ) : void
return void