Property | Type | Description | |
---|---|---|---|
Cache | AssetCache |
Method | Description | |
---|---|---|
AssetManager ( |
Default constructor
|
|
RequestAsset ( UUID assetID, AssetType type, bool priority, AssetReceivedCallback callback ) : void |
Request an asset download
|
|
RequestAsset ( UUID assetID, AssetType type, bool priority, SourceType sourceType, AssetReceivedCallback callback ) : void |
Request an asset download
|
|
RequestAsset ( UUID assetID, AssetType type, bool priority, SourceType sourceType, UUID transactionID, AssetReceivedCallback callback ) : void |
Request an asset download
|
|
RequestAssetXfer ( string filename, bool deleteOnCompletion, bool useBigPackets, UUID vFileID, AssetType vFileType, bool fromCache ) : ulong |
Request an asset download through the almost deprecated Xfer system
|
|
RequestEstateAsset ( ) : void | ||
RequestImage ( UUID textureID, ImageType imageType, TextureDownloadCallback callback ) : void |
Overload: Request a texture asset from the simulator using the TexturePipeline system to manage the requests and re-assemble the image from the packets received from the simulator
|
|
RequestImage ( UUID textureID, ImageType imageType, TextureDownloadCallback callback, bool progress ) : void |
Overload: Request a texture asset from the simulator using the TexturePipeline system to manage the requests and re-assemble the image from the packets received from the simulator
|
|
RequestImage ( UUID textureID, ImageType imageType, float priority, int discardLevel, uint packetStart, TextureDownloadCallback callback, bool progress ) : void |
Request a texture asset from the simulator using the TexturePipeline system to manage the requests and re-assemble the image from the packets received from the simulator A bug exists in the Linden Simulator where a -1 will occasionally be sent with a non-zero priority indicating an off-by-one error. |
|
RequestImage ( UUID textureID, TextureDownloadCallback callback ) : void |
Overload: Request a texture asset from the simulator using the TexturePipeline system to manage the requests and re-assemble the image from the packets received from the simulator
|
|
RequestImageCancel ( UUID textureID ) : void |
Cancel a texture request
|
|
RequestInventoryAsset ( |
||
RequestInventoryAsset ( UUID assetID, UUID itemID, UUID taskID, UUID ownerID, AssetType type, bool priority, AssetReceivedCallback callback ) : void |
|
|
RequestMesh ( UUID meshID, MeshDownloadCallback callback ) : void |
Requests download of a mesh asset
|
|
RequestUpload ( |
Request an asset be uploaded to the simulator
|
|
RequestUpload ( AssetType type, byte data, bool storeLocal ) : UUID |
Request an asset be uploaded to the simulator
|
|
RequestUpload ( UUID &assetID, AssetType type, byte data, bool storeLocal ) : UUID |
Request an asset be uploaded to the simulator
|
|
RequestUpload ( UUID &assetID, AssetType type, byte data, bool storeLocal, UUID transactionID ) : UUID |
Initiate an asset upload
|
|
RequestUploadBakedTexture ( byte textureData, BakedTextureUploadedCallback callback ) : void |
Method | Description | |
---|---|---|
AbortXferHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Process an incoming packet and raise the appropriate events
|
|
AssetUploadCompleteHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Process an incoming packet and raise the appropriate events
|
|
ConfirmXferPacketHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Process an incoming packet and raise the appropriate events
|
|
InitiateDownloadPacketHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Process an incoming packet and raise the appropriate events
|
|
OnAssetUploaded ( |
Raises the AssetUploaded event
|
|
OnImageReceiveProgress ( |
Raises the ImageReceiveProgress event
|
|
OnInitiateDownload ( |
Raises the InitiateDownload event
|
|
OnUploadProgress ( |
Raises the UploadProgress event
|
|
OnXferReceived ( |
Raises the XferReceived event
|
|
RequestXferHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Process an incoming packet and raise the appropriate events
|
|
SendXferPacketHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Process an incoming packet and raise the appropriate events
|
|
TransferInfoHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Process an incoming packet and raise the appropriate events
|
|
TransferPacketHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Process an incoming packet and raise the appropriate events
|
Method | Description | |
---|---|---|
CreateAssetWrapper ( AssetType type ) : |
||
FireImageProgressEvent ( UUID texureID, int transferredBytes, int totalBytes ) : void |
Lets TexturePipeline class fire the progress event
|
|
HttpRequestTexture ( UUID textureID, ImageType imageType, float priority, int discardLevel, uint packetStart, TextureDownloadCallback callback, bool progress ) : void | ||
SendConfirmXferPacket ( ulong xferID, uint packetNum ) : void | ||
SendNextUploadPacket ( |
||
SetPendingAssetUploadData ( |
Used to force asset data into the PendingUpload property, ie: for raw terrain uploads
|
|
WrapAsset ( |
protected AbortXferHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | The sender |
e | OpenMetaverse.PacketReceivedEventArgs | The EventArgs object containing the packet data |
return | void |
public AssetManager ( |
||
client | A reference to the GridClient object | |
return | System |
protected AssetUploadCompleteHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | The sender |
e | OpenMetaverse.PacketReceivedEventArgs | The EventArgs object containing the packet data |
return | void |
protected ConfirmXferPacketHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | The sender |
e | OpenMetaverse.PacketReceivedEventArgs | The EventArgs object containing the packet data |
return | void |
protected InitiateDownloadPacketHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | The sender |
e | OpenMetaverse.PacketReceivedEventArgs | The EventArgs object containing the packet data |
return | void |
protected OnAssetUploaded ( |
||
e | A AssetUploadedEventArgs object containing the /// data returned from the simulator | |
return | void |
protected OnImageReceiveProgress ( |
||
e | A ImageReceiveProgressEventArgs object containing the /// data returned from the simulator | |
return | void |
protected OnInitiateDownload ( |
||
e | A InitiateDownloadEventArgs object containing the /// data returned from the simulator | |
return | void |
protected OnUploadProgress ( |
||
e | A UploadProgressEventArgs object containing the /// data returned from the simulator | |
return | void |
protected OnXferReceived ( |
||
e | A XferReceivedEventArgs object containing the /// data returned from the simulator | |
return | void |
public RequestAsset ( UUID assetID, AssetType type, bool priority, AssetReceivedCallback callback ) : void | ||
assetID | UUID | Asset UUID |
type | AssetType | Asset type, must be correct for the transfer to succeed |
priority | bool | Whether to give this transfer an elevated priority |
callback | AssetReceivedCallback | The callback to fire when the simulator responds with the asset data |
return | void |
public RequestAsset ( UUID assetID, AssetType type, bool priority, SourceType sourceType, AssetReceivedCallback callback ) : void | ||
assetID | UUID | Asset UUID |
type | AssetType | Asset type, must be correct for the transfer to succeed |
priority | bool | Whether to give this transfer an elevated priority |
sourceType | SourceType | Source location of the requested asset |
callback | AssetReceivedCallback | The callback to fire when the simulator responds with the asset data |
return | void |
public RequestAsset ( UUID assetID, AssetType type, bool priority, SourceType sourceType, UUID transactionID, AssetReceivedCallback callback ) : void | ||
assetID | UUID | Asset UUID |
type | AssetType | Asset type, must be correct for the transfer to succeed |
priority | bool | Whether to give this transfer an elevated priority |
sourceType | SourceType | Source location of the requested asset |
transactionID | UUID | UUID of the transaction |
callback | AssetReceivedCallback | The callback to fire when the simulator responds with the asset data |
return | void |
public RequestAssetXfer ( string filename, bool deleteOnCompletion, bool useBigPackets, UUID vFileID, AssetType vFileType, bool fromCache ) : ulong | ||
filename | string | Filename of the asset to request |
deleteOnCompletion | bool | Whether or not to delete the asset /// off the server after it is retrieved |
useBigPackets | bool | Use large transfer packets or not |
vFileID | UUID | UUID of the file to request, if filename is /// left empty |
vFileType | AssetType | Asset type of vFileID , or
/// AssetType.Unknown if filename is not empty |
fromCache | bool | Sets the FilePath in the request to Cache /// (4) if true, otherwise Unknown (0) is used |
return | ulong |
public RequestImage ( UUID textureID, ImageType imageType, TextureDownloadCallback callback ) : void | ||
textureID | UUID | The |
imageType | ImageType | The |
callback | TextureDownloadCallback | The |
return | void |
public RequestImage ( UUID textureID, ImageType imageType, TextureDownloadCallback callback, bool progress ) : void | ||
textureID | UUID | The |
imageType | ImageType | The |
callback | TextureDownloadCallback | The |
progress | bool | If true, the callback will be fired for each chunk of the downloaded image. /// The callback asset parameter will contain all previously received chunks of the texture asset starting /// from the beginning of the request |
return | void |
public RequestImage ( UUID textureID, ImageType imageType, float priority, int discardLevel, uint packetStart, TextureDownloadCallback callback, bool progress ) : void | ||
textureID | UUID | The |
imageType | ImageType | The |
priority | float | A float indicating the requested priority for the transfer. Higher priority values tell the simulator
/// to prioritize the request before lower valued requests. An image already being transferred using the |
discardLevel | int | Number of quality layers to discard. /// This controls the end marker of the data sent. Sending with value -1 combined with priority of 0 cancels an in-progress /// transfer. |
packetStart | uint | The packet number to begin the request at. A value of 0 begins the request /// from the start of the asset texture |
callback | TextureDownloadCallback | The |
progress | bool | If true, the callback will be fired for each chunk of the downloaded image. /// The callback asset parameter will contain all previously received chunks of the texture asset starting /// from the beginning of the request |
return | void |
public RequestImage ( UUID textureID, TextureDownloadCallback callback ) : void | ||
textureID | UUID | The |
callback | TextureDownloadCallback | The |
return | void |
public RequestImageCancel ( UUID textureID ) : void | ||
textureID | UUID | The texture assets |
return | void |
public RequestInventoryAsset ( |
||
item | ||
priority | bool | |
callback | AssetReceivedCallback | |
return | void |
public RequestInventoryAsset ( UUID assetID, UUID itemID, UUID taskID, UUID ownerID, AssetType type, bool priority, AssetReceivedCallback callback ) : void | ||
assetID | UUID | Use UUID.Zero if you do not have the /// asset ID but have all the necessary permissions |
itemID | UUID | The item ID of this asset in the inventory |
taskID | UUID | Use UUID.Zero if you are not requesting an /// asset from an object inventory |
ownerID | UUID | The owner of this asset |
type | AssetType | Asset type |
priority | bool | Whether to prioritize this asset download or not |
callback | AssetReceivedCallback | |
return | void |
public RequestMesh ( UUID meshID, MeshDownloadCallback callback ) : void | ||
meshID | UUID | UUID of the mesh asset |
callback | MeshDownloadCallback | Callback when the request completes |
return | void |
public RequestUpload ( |
||
asset | The |
|
storeLocal | bool | If True, the asset once uploaded will be stored on the simulator /// in which the client was connected in addition to being stored on the asset server |
return | UUID |
public RequestUpload ( AssetType type, byte data, bool storeLocal ) : UUID | ||
type | AssetType | The |
data | byte | A byte array containing the encoded asset data |
storeLocal | bool | If True, the asset once uploaded will be stored on the simulator /// in which the client was connected in addition to being stored on the asset server |
return | UUID |
public RequestUpload ( UUID &assetID, AssetType type, byte data, bool storeLocal ) : UUID | ||
assetID | UUID | |
type | AssetType | Asset type to upload this data as |
data | byte | A byte array containing the encoded asset data |
storeLocal | bool | If True, the asset once uploaded will be stored on the simulator /// in which the client was connected in addition to being stored on the asset server |
return | UUID |
public RequestUpload ( UUID &assetID, AssetType type, byte data, bool storeLocal, UUID transactionID ) : UUID | ||
assetID | UUID | The ID this asset will have if the /// upload succeeds |
type | AssetType | Asset type to upload this data as |
data | byte | Raw asset data to upload |
storeLocal | bool | Whether to store this asset on the local /// simulator or the grid-wide asset server |
transactionID | UUID | The tranaction id for the upload |
return | UUID |
public RequestUploadBakedTexture ( byte textureData, BakedTextureUploadedCallback callback ) : void | ||
textureData | byte | |
callback | BakedTextureUploadedCallback | |
return | void |
protected RequestXferHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | The sender |
e | OpenMetaverse.PacketReceivedEventArgs | The EventArgs object containing the packet data |
return | void |
protected SendXferPacketHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | The sender |
e | OpenMetaverse.PacketReceivedEventArgs | The EventArgs object containing the packet data |
return | void |
protected TransferInfoHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | The sender |
e | OpenMetaverse.PacketReceivedEventArgs | The EventArgs object containing the packet data |
return | void |
protected TransferPacketHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | The sender |
e | OpenMetaverse.PacketReceivedEventArgs | The EventArgs object containing the packet data |
return | void |