C# Class OpenSim.Framework.AvatarAppearance

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

Méthodes publiques

Свойство Type Description
BAKE_INDICES byte[]
TEXTURE_COUNT int
VISUALPARAM_COUNT int

Protected Properties

Свойство 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[]

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
SetDefaultParams ( ) : void
SetDefaultTexture ( ) : void
SetDefaultWearables ( ) : void

Private Methods

Méthode Description
AppendAttachment ( OpenSim.Framework.AvatarAttachment attach ) : void
ReplaceAttachment ( OpenSim.Framework.AvatarAttachment attach ) : void

Method Details

AvatarAppearance() public méthode

public AvatarAppearance ( ) : System
Résultat System

AvatarAppearance() public méthode

public AvatarAppearance ( AvatarAppearance appearance ) : System
appearance AvatarAppearance
Résultat System

AvatarAppearance() public méthode

public AvatarAppearance ( AvatarAppearance appearance, bool copyWearables ) : System
appearance AvatarAppearance
copyWearables bool
Résultat System

AvatarAppearance() public méthode

public AvatarAppearance ( UUID owner ) : System
owner UUID
Résultat System

AvatarAppearance() public méthode

public AvatarAppearance ( UUID avatarID, AvatarWearable wearables, Primitive textureEntry, byte visualParams ) : System
avatarID UUID
wearables AvatarWearable
textureEntry OpenMetaverse.Primitive
visualParams byte
Résultat System

AvatarAppearance() public méthode

public AvatarAppearance ( UUID avatarID, OSDMap map ) : System
avatarID UUID
map OSDMap
Résultat System

ClearAttachments() public méthode

public ClearAttachments ( ) : void
Résultat void

ClearWearables() public méthode

public ClearWearables ( ) : void
Résultat void

DetachAttachment() public méthode

public DetachAttachment ( UUID itemID ) : void
itemID UUID
Résultat void

GetAssetsFrom() public méthode

public GetAssetsFrom ( AvatarAppearance app ) : void
app AvatarAppearance
Résultat void

GetAttachments() public méthode

Get a list of the attachments, note that there may be duplicate attachpoints
public GetAttachments ( ) : List
Résultat List

GetAttachpoint() public méthode

public GetAttachpoint ( UUID itemID ) : int
itemID UUID
Résultat int

Pack() public méthode

Create an OSDMap from the appearance data
public Pack ( ) : OSDMap
Résultat OSDMap

SetAppearance() public méthode

public SetAppearance ( Primitive textureEntry, byte visualParams ) : void
textureEntry OpenMetaverse.Primitive
visualParams byte
Résultat void

SetAttachment() public méthode

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
Résultat void

SetDefaultParams() protected méthode

protected SetDefaultParams ( ) : void
Résultat void

SetDefaultTexture() protected méthode

protected SetDefaultTexture ( ) : void
Résultat void

SetDefaultWearables() protected méthode

protected SetDefaultWearables ( ) : void
Résultat void

SetHeight() public méthode

public SetHeight ( ) : void
Résultat void

SetTextureEntries() public méthode

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
Résultat bool

SetVisualParams() public méthode

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
Résultat bool

SetWearable() public méthode

public SetWearable ( int wearableId, AvatarWearable wearable ) : void
wearableId int
wearable AvatarWearable
Résultat void

ToString() public méthode

public ToString ( ) : String
Résultat String

Unpack() public méthode

Unpack and OSDMap and initialize the appearance from it
public Unpack ( OSDMap data ) : void
data OSDMap
Résultat void

Property Details

BAKE_INDICES public_oe static_oe property

public static byte[] BAKE_INDICES
Résultat byte[]

TEXTURE_COUNT public_oe static_oe property

public static int TEXTURE_COUNT
Résultat int

VISUALPARAM_COUNT public_oe static_oe property

public static int VISUALPARAM_COUNT
Résultat int

m_attachments protected_oe property

protected Dictionary> m_attachments
Résultat List>.Dictionary

m_avatarHeight protected_oe property

protected float m_avatarHeight
Résultat float

m_hipOffset protected_oe property

protected float m_hipOffset
Résultat float

m_owner protected_oe property

protected UUID m_owner
Résultat UUID

m_serial protected_oe property

protected int m_serial
Résultat int

m_texture protected_oe property

protected Primitive.TextureEntry,OpenMetaverse m_texture
Résultat OpenMetaverse.Primitive.TextureEntry

m_visualparams protected_oe property

protected byte[] m_visualparams
Résultat byte[]

m_wearables protected_oe property

protected AvatarWearable[],OpenSim.Framework m_wearables
Résultat OpenSim.Framework.AvatarWearable[]