C# Class OpenSim.Framework.AvatarAppearance

Contains the Avatar's Appearance and methods to manipulate the appearance.
Show file Open project: N3X15/VoxelSim Class Usage Examples

Public Properties

Property Type Description
BAKE_INDICES byte[]
TEXTURE_COUNT int
VISUALPARAM_COUNT int

Protected Properties

Property Type Description
m_attachments List>.Dictionary
m_avatarHeight float
m_hipOffset float
m_owner UUID
m_serial int
m_texture OpenMetaverse.Primitive.TextureEntry
m_visualparams byte[]
m_wearables OpenSim.Framework.AvatarWearable[]

Public Methods

Method Description
AvatarAppearance ( ) : System
AvatarAppearance ( AvatarAppearance appearance ) : System
AvatarAppearance ( AvatarAppearance appearance, bool copyWearables ) : System
AvatarAppearance ( UUID owner ) : System
AvatarAppearance ( UUID avatarID, AvatarWearable wearables, Primitive textureEntry, byte visualParams ) : System
AvatarAppearance ( UUID avatarID, OSDMap map ) : System
ClearAttachments ( ) : void
ClearWearables ( ) : void
DetachAttachment ( UUID itemID ) : void
GetAssetsFrom ( AvatarAppearance app ) : void
GetAttachments ( ) : List

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

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

Create an OSDMap from the appearance data

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

Add an attachment, if the attachpoint has the 0x80 bit set then we assume this is an append operation otherwise we replace whatever is currently attached at the attachpoint

SetHeight ( ) : void
SetTextureEntries ( Primitive textureEntry ) : 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
ToString ( ) : String
Unpack ( OSDMap data ) : void

Unpack and OSDMap and initialize the appearance from it

Protected Methods

Method Description
SetDefaultParams ( ) : void
SetDefaultTexture ( ) : void
SetDefaultWearables ( ) : void

Private Methods

Method Description
AppendAttachment ( OpenSim.Framework.AvatarAttachment attach ) : void
ReplaceAttachment ( OpenSim.Framework.AvatarAttachment attach ) : 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, AvatarWearable wearables, Primitive textureEntry, byte visualParams ) : System
avatarID UUID
wearables AvatarWearable
textureEntry OpenMetaverse.Primitive
visualParams byte
return System

AvatarAppearance() public method

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

ClearAttachments() public method

public ClearAttachments ( ) : void
return void

ClearWearables() public method

public ClearWearables ( ) : void
return void

DetachAttachment() public method

public DetachAttachment ( UUID itemID ) : void
itemID UUID
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 attachpoints
public GetAttachments ( ) : List
return List

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

SetAppearance() public method

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

SetAttachment() public method

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

SetDefaultParams() protected method

protected SetDefaultParams ( ) : void
return void

SetDefaultTexture() protected method

protected SetDefaultTexture ( ) : void
return void

SetDefaultWearables() protected method

protected SetDefaultWearables ( ) : void
return void

SetHeight() public method

public SetHeight ( ) : void
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 ) : bool
textureEntry OpenMetaverse.Primitive
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

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

m_attachments protected property

protected Dictionary> m_attachments
return List>.Dictionary

m_avatarHeight protected property

protected float m_avatarHeight
return float

m_hipOffset protected property

protected float m_hipOffset
return float

m_owner protected property

protected UUID m_owner
return UUID

m_serial protected property

protected int m_serial
return int

m_texture protected property

protected Primitive.TextureEntry,OpenMetaverse m_texture
return OpenMetaverse.Primitive.TextureEntry

m_visualparams protected property

protected byte[] m_visualparams
return byte[]

m_wearables protected property

protected AvatarWearable[],OpenSim.Framework m_wearables
return OpenSim.Framework.AvatarWearable[]