C# Class WhiteCore.Framework.ClientInterfaces.AvatarAppearance

Contains the Avatar's Appearance and methods to manipulate the appearance.
Inheritance: WhiteCore.Framework.Modules.IDataTransferable
Show file Open project: WhiteCoreSim/WhiteCore-Dev Class Usage Examples

Public Properties

Property Type Description
BAKE_INDICES byte[]
TEXTURE_COUNT int
VISUALPARAM_COUNT int

Public Methods

Method Description
AvatarAppearance ( ) : System
AvatarAppearance ( AvatarAppearance appearance ) : System
AvatarAppearance ( AvatarAppearance appearance, bool copyWearables ) : System
AvatarAppearance ( UUID owner ) : System
AvatarAppearance ( UUID avatarID, WhiteCore.Framework.ClientInterfaces.AvatarWearable wearables, Primitive textureEntry, byte visualParams ) : System
AvatarAppearance ( UUID avatarID, OSDMap map ) : System
CheckWhetherAttachmentChanged ( int attPnt, UUID item, UUID assetID ) : bool

Returns whether an attachment will require a save to the avatar service

ClearAttachments ( ) : void
ClearWearables ( ) : void
DetachAttachment ( UUID itemID ) : bool
FromOSD ( OSDMap map ) : void
GetAssetsFrom ( AvatarAppearance app ) : void
GetAttachments ( ) : List

Get a list of the attachments, note that there may be duplicate attach points

GetAttachmentsDictionary ( ) : List>.Dictionary

Get a list of the attachments, note that there may be duplicate attach points

GetAttachpoint ( UUID itemID ) : int
Pack ( ) : OSDMap

Create an OSDMap from the appearance data

ResetAppearance ( ) : void
SetAppearance ( Primitive textureEntry, byte visualParams ) : void
SetAttachment ( int attachpoint, UUID item, UUID asset ) : bool

DEPRECATED: USE SetAttachments now Add an attachment, if the attach point has the 0x80 bit set then we assume this is an append operation otherwise we replace whatever is currently attached at the attach point

SetAttachments ( ISceneEntity attachments ) : void
SetCachedWearables ( PresenceInfo wearables ) : void
SetDefaultWearables ( ) : void
SetHeight ( ) : void
SetSize ( Vector3 avSize ) : void
SetTextureEntries ( Primitive textureEntry, List &ChangedTextures ) : bool

Set up appearance textures. Returns Boolean that indicates whether the new entries actually change the existing values.

SetVisualParams ( byte visualParams ) : bool

Set up visual parameters for the avatar and refresh the avatar height Returns Boolean that indicates whether the new entries actually change the existing values.

SetWearable ( int wearableId, AvatarWearable wearable ) : void
ToOSD ( ) : OSDMap
ToString ( ) : string
Unpack ( OSDMap data ) : void

Unpack and OSDMap and initialize the appearance from it

Private Methods

Method Description
AppendAttachment ( WhiteCore.Framework.ClientInterfaces.AvatarAttachment attach ) : void
ReplaceAttachment ( AvatarAttachment attach ) : bool

Replace the attachment

SetDefaultParams ( ) : void
SetDefaultTexture ( ) : void

Method Details

AvatarAppearance() public method

public AvatarAppearance ( ) : System
return System

AvatarAppearance() public method

public AvatarAppearance ( AvatarAppearance appearance ) : System
appearance AvatarAppearance
return System

AvatarAppearance() public method

public AvatarAppearance ( AvatarAppearance appearance, bool copyWearables ) : System
appearance AvatarAppearance
copyWearables bool
return System

AvatarAppearance() public method

public AvatarAppearance ( UUID owner ) : System
owner UUID
return System

AvatarAppearance() public method

public AvatarAppearance ( UUID avatarID, WhiteCore.Framework.ClientInterfaces.AvatarWearable wearables, Primitive textureEntry, byte visualParams ) : System
avatarID UUID
wearables WhiteCore.Framework.ClientInterfaces.AvatarWearable
textureEntry OpenMetaverse.Primitive
visualParams byte
return System

AvatarAppearance() public method

public AvatarAppearance ( UUID avatarID, OSDMap map ) : System
avatarID UUID
map OSDMap
return System

CheckWhetherAttachmentChanged() public method

Returns whether an attachment will require a save to the avatar service
public CheckWhetherAttachmentChanged ( int attPnt, UUID item, UUID assetID ) : bool
attPnt int
item UUID
assetID UUID
return bool

ClearAttachments() public method

public ClearAttachments ( ) : void
return void

ClearWearables() public method

public ClearWearables ( ) : void
return void

DetachAttachment() public method

public DetachAttachment ( UUID itemID ) : bool
itemID UUID
return bool

FromOSD() public method

public FromOSD ( OSDMap map ) : void
map OSDMap
return void

GetAssetsFrom() public method

public GetAssetsFrom ( AvatarAppearance app ) : void
app AvatarAppearance
return void

GetAttachments() public method

Get a list of the attachments, note that there may be duplicate attach points
public GetAttachments ( ) : List
return List

GetAttachmentsDictionary() public method

Get a list of the attachments, note that there may be duplicate attach points
public GetAttachmentsDictionary ( ) : List>.Dictionary
return List>.Dictionary

GetAttachpoint() public method

public GetAttachpoint ( UUID itemID ) : int
itemID UUID
return int

Pack() public method

Create an OSDMap from the appearance data
public Pack ( ) : OSDMap
return OSDMap

ResetAppearance() public method

public ResetAppearance ( ) : void
return void

SetAppearance() public method

public SetAppearance ( Primitive textureEntry, byte visualParams ) : void
textureEntry Primitive
visualParams byte
return void

SetAttachment() public method

DEPRECATED: USE SetAttachments now Add an attachment, if the attach point has the 0x80 bit set then we assume this is an append operation otherwise we replace whatever is currently attached at the attach point
public SetAttachment ( int attachpoint, UUID item, UUID asset ) : bool
attachpoint int
item UUID
asset UUID
return bool

SetAttachments() public method

public SetAttachments ( ISceneEntity attachments ) : void
attachments ISceneEntity
return void

SetCachedWearables() public method

public SetCachedWearables ( PresenceInfo wearables ) : void
wearables PresenceInfo
return void

SetDefaultWearables() public method

public SetDefaultWearables ( ) : void
return void

SetHeight() public method

public SetHeight ( ) : void
return void

SetSize() public method

public SetSize ( Vector3 avSize ) : void
avSize Vector3
return void

SetTextureEntries() public method

Set up appearance textures. Returns Boolean that indicates whether the new entries actually change the existing values.
public SetTextureEntries ( Primitive textureEntry, List &ChangedTextures ) : bool
textureEntry Primitive
ChangedTextures List
return bool

SetVisualParams() public method

Set up visual parameters for the avatar and refresh the avatar height Returns Boolean that indicates whether the new entries actually change the existing values.
public SetVisualParams ( byte visualParams ) : bool
visualParams byte
return bool

SetWearable() public method

public SetWearable ( int wearableId, AvatarWearable wearable ) : void
wearableId int
wearable AvatarWearable
return void

ToOSD() public method

public ToOSD ( ) : OSDMap
return OSDMap

ToString() public method

public ToString ( ) : string
return string

Unpack() public method

Unpack and OSDMap and initialize the appearance from it
public Unpack ( OSDMap data ) : void
data OSDMap
return void

Property Details

BAKE_INDICES public static property

public static byte[] BAKE_INDICES
return byte[]

TEXTURE_COUNT public static property

public static int TEXTURE_COUNT
return int

VISUALPARAM_COUNT public static property

public static int VISUALPARAM_COUNT
return int