C# Class OpenSim.Region.CoreModules.Media.Moap.MoapModule

Inheritance: INonSharedRegionModule, IMoapModule
Mostra file Open project: N3X15/VoxelSim

Protected Properties

Property Type Description
m_isEnabled bool
m_omCapUrls string>.Dictionary
m_omCapUsers UUID>.Dictionary
m_omuCapUrls string>.Dictionary
m_omuCapUsers UUID>.Dictionary
m_scene OpenSim.Region.Framework.Scenes.Scene

Public Methods

Method Description
AddRegion ( Scene scene ) : void
ClearMediaEntry ( SceneObjectPart part, int face ) : void
Close ( ) : void
GetMediaEntry ( SceneObjectPart part, int face ) : OpenMetaverse.MediaEntry
Initialise ( IConfigSource configSource ) : void
OnDeregisterCaps ( UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : void
OnRegisterCaps ( UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : void
RegionLoaded ( Scene scene ) : void
RemoveRegion ( Scene scene ) : void
SetMediaEntry ( SceneObjectPart part, int face, OpenMetaverse.MediaEntry me ) : void

Protected Methods

Method Description
CheckFaceParam ( SceneObjectPart 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 request, string path, string param, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : string

Sets or gets per face media textures.

HandleObjectMediaNavigateMessage ( string request, string path, string param, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : string

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

HandleObjectMediaRequest ( ObjectMediaRequest omr ) : string

Handle a fetch request for media textures

HandleObjectMediaUpdate ( string path, ObjectMediaUpdate omu ) : string

Handle an update of media textures.

OnSceneObjectPartCopy ( SceneObjectPart copy, SceneObjectPart original, bool userExposed ) : void
UpdateMediaUrl ( SceneObjectPart part, UUID updateId ) : void

Update the media url of the given part

Method Details

AddRegion() public method

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

CheckFaceParam() protected method

Check that the face number is valid for the given prim.
protected CheckFaceParam ( SceneObjectPart part, int face ) : void
part OpenSim.Region.Framework.Scenes.SceneObjectPart
face int
return void

CheckUrlAgainstWhitelist() protected method

Check the given url against the given whitelist.
protected CheckUrlAgainstWhitelist ( string rawUrl, string whitelist ) : bool
rawUrl string
whitelist string
return bool

ClearMediaEntry() public method

public ClearMediaEntry ( SceneObjectPart part, int face ) : void
part OpenSim.Region.Framework.Scenes.SceneObjectPart
face int
return void

Close() public method

public Close ( ) : void
return void

GetMediaEntry() public method

public GetMediaEntry ( SceneObjectPart part, int face ) : OpenMetaverse.MediaEntry
part OpenSim.Region.Framework.Scenes.SceneObjectPart
face int
return OpenMetaverse.MediaEntry

HandleObjectMediaMessage() protected method

Sets or gets per face media textures.
protected HandleObjectMediaMessage ( string request, string path, string param, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : string
request string
path string
param string
httpRequest OpenSim.Framework.Servers.HttpServer.OSHttpRequest
httpResponse OpenSim.Framework.Servers.HttpServer.OSHttpResponse
return string

HandleObjectMediaNavigateMessage() protected method

Received from the viewer if a user has changed the url of a media texture.
protected HandleObjectMediaNavigateMessage ( string request, string path, string param, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : string
request string
path string
param string
httpRequest OpenSim.Framework.Servers.HttpServer.OSHttpRequest
httpResponse OpenSim.Framework.Servers.HttpServer.OSHttpResponse
return string

HandleObjectMediaRequest() protected method

Handle a fetch request for media textures
protected HandleObjectMediaRequest ( ObjectMediaRequest omr ) : string
omr OpenMetaverse.Messages.Linden.ObjectMediaRequest
return string

HandleObjectMediaUpdate() protected method

Handle an update of media textures.
protected HandleObjectMediaUpdate ( string path, ObjectMediaUpdate omu ) : string
path string Path on which this request was made
omu OpenMetaverse.Messages.Linden.ObjectMediaUpdate
return string

Initialise() public method

public Initialise ( IConfigSource configSource ) : void
configSource IConfigSource
return void

OnDeregisterCaps() public method

public OnDeregisterCaps ( UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : void
agentID UUID
caps OpenSim.Framework.Capabilities.Caps
return void

OnRegisterCaps() public method

public OnRegisterCaps ( UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : void
agentID UUID
caps OpenSim.Framework.Capabilities.Caps
return void

OnSceneObjectPartCopy() protected method

protected OnSceneObjectPartCopy ( SceneObjectPart copy, SceneObjectPart original, bool userExposed ) : void
copy OpenSim.Region.Framework.Scenes.SceneObjectPart
original OpenSim.Region.Framework.Scenes.SceneObjectPart
userExposed bool
return void

RegionLoaded() public method

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

RemoveRegion() public method

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

SetMediaEntry() public method

public SetMediaEntry ( SceneObjectPart part, int face, OpenMetaverse.MediaEntry me ) : void
part OpenSim.Region.Framework.Scenes.SceneObjectPart
face int
me OpenMetaverse.MediaEntry
return void

UpdateMediaUrl() protected method

Update the media url of the given part
protected UpdateMediaUrl ( SceneObjectPart part, UUID updateId ) : void
part OpenSim.Region.Framework.Scenes.SceneObjectPart
updateId UUID /// The id to attach to this update. Normally, this is the user that changed the /// texture ///
return void

Property Details

m_isEnabled protected_oe property

Is this module enabled?
protected bool m_isEnabled
return bool

m_omCapUrls protected_oe property

Track the ObjectMedia capabilities given to users keyed by agent. Lock m_omCapUsers to manipulate.
protected Dictionary m_omCapUrls
return string>.Dictionary

m_omCapUsers protected_oe property

Track the ObjectMedia capabilities given to users keyed by path
protected Dictionary m_omCapUsers
return UUID>.Dictionary

m_omuCapUrls protected_oe property

Track the ObjectMediaUpdate capabilities given to users keyed by agent. Lock m_omuCapUsers to manipulate
protected Dictionary m_omuCapUrls
return string>.Dictionary

m_omuCapUsers protected_oe property

Track the ObjectMediaUpdate capabilities given to users keyed by path
protected Dictionary m_omuCapUsers
return UUID>.Dictionary

m_scene protected_oe property

The scene to which this module is attached
protected Scene,OpenSim.Region.Framework.Scenes m_scene
return OpenSim.Region.Framework.Scenes.Scene