C# Класс Universe.Modules.Entities.Media.MoapModule

Наследование: INonSharedRegionModule, IMoapModule
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_isEnabled bool
m_omCapUrls string>.Dictionary
m_omCapUsers UUID>.Dictionary
m_omuCapUrls string>.Dictionary
m_omuCapUsers UUID>.Dictionary
m_scene IScene

Открытые методы

Метод Описание
AddRegion ( IScene scene ) : void
ClearMediaEntry ( ISceneChildEntity part, int face ) : void
Close ( ) : void
GetMediaEntry ( ISceneChildEntity part, int face ) : OpenMetaverse.MediaEntry
Initialize ( IConfigSource configSource ) : void
OnDeregisterCaps ( UUID agentID, IRegionClientCapsService caps ) : void
OnRegisterCaps ( UUID agentID, IHttpServer server ) : OSDMap
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
SetMediaEntry ( ISceneChildEntity part, int face, OpenMetaverse.MediaEntry me ) : void

Защищенные методы

Метод Описание
CheckFaceParam ( ISceneChildEntity part, int face ) : void

Check that the face number is valid for the given prim.

CheckUrlAgainstWhitelist ( string rawUrl, string whitelist ) : bool

Check the given url against the given whitelist.

HandleObjectMediaMessage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]

Sets or gets per face media textures.

HandleObjectMediaNavigateMessage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]

Received from the viewer if a user has changed the url of a media texture.

HandleObjectMediaRequest ( ObjectMediaRequest omr ) : byte[]

Handle a fetch request for media textures

HandleObjectMediaUpdate ( string path, ObjectMediaUpdate omu ) : byte[]

Handle an update of media textures.

SetPartMediaFlags ( ISceneChildEntity part, int face, bool flag ) : void

Set the media flags on the texture face of the given part.

The fact that we need a separate function to do what should be a simple one line operation is BUTT UGLY.

UpdateMediaUrl ( ISceneChildEntity part, UUID updateId ) : void

Update the media url of the given part

Описание методов

AddRegion() публичный Метод

public AddRegion ( IScene scene ) : void
scene IScene
Результат void

CheckFaceParam() защищенный Метод

Check that the face number is valid for the given prim.
protected CheckFaceParam ( ISceneChildEntity part, int face ) : void
part ISceneChildEntity
face int
Результат void

CheckUrlAgainstWhitelist() защищенный Метод

Check the given url against the given whitelist.
protected CheckUrlAgainstWhitelist ( string rawUrl, string whitelist ) : bool
rawUrl string
whitelist string
Результат bool

ClearMediaEntry() публичный Метод

public ClearMediaEntry ( ISceneChildEntity part, int face ) : void
part ISceneChildEntity
face int
Результат void

Close() публичный Метод

public Close ( ) : void
Результат void

GetMediaEntry() публичный Метод

public GetMediaEntry ( ISceneChildEntity part, int face ) : OpenMetaverse.MediaEntry
part ISceneChildEntity
face int
Результат OpenMetaverse.MediaEntry

HandleObjectMediaMessage() защищенный Метод

Sets or gets per face media textures.
protected HandleObjectMediaMessage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
Результат byte[]

HandleObjectMediaNavigateMessage() защищенный Метод

Received from the viewer if a user has changed the url of a media texture.
protected HandleObjectMediaNavigateMessage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
Результат byte[]

HandleObjectMediaRequest() защищенный Метод

Handle a fetch request for media textures
protected HandleObjectMediaRequest ( ObjectMediaRequest omr ) : byte[]
omr OpenMetaverse.Messages.Linden.ObjectMediaRequest
Результат byte[]

HandleObjectMediaUpdate() защищенный Метод

Handle an update of media textures.
protected HandleObjectMediaUpdate ( string path, ObjectMediaUpdate omu ) : byte[]
path string Path on which this request was made
omu OpenMetaverse.Messages.Linden.ObjectMediaUpdate
Результат byte[]

Initialize() публичный Метод

public Initialize ( IConfigSource configSource ) : void
configSource IConfigSource
Результат void

OnDeregisterCaps() публичный Метод

public OnDeregisterCaps ( UUID agentID, IRegionClientCapsService caps ) : void
agentID UUID
caps IRegionClientCapsService
Результат void

OnRegisterCaps() публичный Метод

public OnRegisterCaps ( UUID agentID, IHttpServer server ) : OSDMap
agentID UUID
server IHttpServer
Результат OSDMap

RegionLoaded() публичный Метод

public RegionLoaded ( IScene scene ) : void
scene IScene
Результат void

RemoveRegion() публичный Метод

public RemoveRegion ( IScene scene ) : void
scene IScene
Результат void

SetMediaEntry() публичный Метод

public SetMediaEntry ( ISceneChildEntity part, int face, OpenMetaverse.MediaEntry me ) : void
part ISceneChildEntity
face int
me OpenMetaverse.MediaEntry
Результат void

SetPartMediaFlags() защищенный Метод

Set the media flags on the texture face of the given part.
The fact that we need a separate function to do what should be a simple one line operation is BUTT UGLY.
protected SetPartMediaFlags ( ISceneChildEntity part, int face, bool flag ) : void
part ISceneChildEntity
face int
flag bool
Результат void

UpdateMediaUrl() защищенный Метод

Update the media url of the given part
protected UpdateMediaUrl ( ISceneChildEntity part, UUID updateId ) : void
part ISceneChildEntity
updateId UUID /// The id to attach to this update. Normally, this is the user that changed the /// texture ///
Результат void

Описание свойств

m_isEnabled защищенное свойство

Is this module enabled?
protected bool m_isEnabled
Результат bool

m_omCapUrls защищенное свойство

Track the ObjectMedia capabilities given to users keyed by agent. Lock m_omCapUsers to manipulate.
protected Dictionary m_omCapUrls
Результат string>.Dictionary

m_omCapUsers защищенное свойство

Track the ObjectMedia capabilities given to users keyed by path
protected Dictionary m_omCapUsers
Результат UUID>.Dictionary

m_omuCapUrls защищенное свойство

Track the ObjectMediaUpdate capabilities given to users keyed by agent. Lock m_omuCapUsers to manipulate
protected Dictionary m_omuCapUrls
Результат string>.Dictionary

m_omuCapUsers защищенное свойство

Track the ObjectMediaUpdate capabilities given to users keyed by path
protected Dictionary m_omuCapUsers
Результат UUID>.Dictionary

m_scene защищенное свойство

The scene to which this module is attached
protected IScene m_scene
Результат IScene