C# Class OpenMetaverse.ObjectManager

Handles all network traffic related to prims and avatar positions and movement.
Mostra file Open project: openmetaversefoundation/libopenmetaverse Class Usage Examples

Protected Properties

Property Type Description
Client GridClient

Public Methods

Method Description
AddGrass ( Simulator simulator, System.Vector3 scale, Quaternion rotation, System.Vector3 position, Grass grassType, UUID groupOwner ) : void

Rez grass and ground cover

AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation ) : void

Create (rez) a new prim object in a simulator

Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties

AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation, PrimFlags createFlags ) : void

Create (rez) a new prim object in a simulator

Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties

AddTree ( Simulator simulator, System.Vector3 scale, Quaternion rotation, System.Vector3 position, Tree treeType, UUID groupOwner, bool newTree ) : void

Rez a Linden tree

AttachObject ( Simulator simulator, uint localID, AttachmentPoint attachPoint, Quaternion rotation ) : void

Attach an object to this avatar

BuildBasicShape ( PrimType type ) : Primitive.ConstructionData

Setup construction data for a basic primitive shape

BuyObject ( Simulator simulator, uint localID, SaleType saleType, int price, UUID groupID, UUID categoryID ) : void

Attempt to purchase an original object, a copy, or the contents of an object

ClickObject ( Simulator simulator, uint localID ) : void

Perform a click action on an object

ClickObject ( Simulator simulator, uint localID, System.Vector3 uvCoord, System.Vector3 stCoord, int faceIndex, System.Vector3 position, System.Vector3 normal, System.Vector3 binormal ) : void

Perform a click action (Grab) on a single object

DeedObject ( Simulator simulator, uint localID, UUID groupOwner ) : void

Deed an object (prim) to a group, Object must be shared with group which can be accomplished with SetPermissions()

DeedObjects ( Simulator simulator, List localIDs, UUID groupOwner ) : void

Deed multiple objects (prims) to a group, Objects must be shared with group which can be accomplished with SetPermissions()

DelinkPrims ( Simulator simulator, List localIDs ) : void

Delink/Unlink multiple prims from a linkset

DeselectObject ( Simulator simulator, uint localID ) : void

Deselect a single object

DeselectObjects ( Simulator simulator, uint localIDs ) : void

Deselect multiple objects.

DetachObjects ( Simulator simulator, List localIDs ) : void

Detach an object from yourself

DropObject ( Simulator simulator, uint localID ) : void

Drop an attached object from this avatar

GetPrimitive ( Simulator simulator, uint localID, UUID fullID, bool createIfMissing ) : Primitive

LinkPrims ( Simulator simulator, List localIDs ) : void

Link multiple prims into a linkset

The last object in the array will be the root object of the linkset TODO: Is this true?

NavigateObjectMedia ( UUID primID, int face, string newURL, Simulator sim ) : void

Update current URL of the previously set prim media

ObjectManager ( GridClient client ) : System

Construct a new instance of the ObjectManager class

RequestObject ( Simulator simulator, uint localID ) : void

Request information for a single object from a Simulator you are currently connected to

RequestObjectMedia ( UUID primID, Simulator sim, ObjectMediaCallback callback ) : void

Retrieve information about object media

RequestObjectPropertiesFamily ( Simulator simulator, UUID objectID ) : void

Request additional properties for an object

RequestObjectPropertiesFamily ( Simulator simulator, UUID objectID, bool reliable ) : void

Request additional properties for an object

RequestObjects ( Simulator simulator, List localIDs ) : void

Request information for multiple objects contained in the same simulator

RequestPayPrice ( Simulator simulator, UUID objectID ) : void

Request prices that should be displayed in pay dialog. This will triggger the simulator to send us back a PayPriceReply which can be handled by OnPayPriceReply event

The result is raised in the PayPriceReply event

SelectObject ( Simulator simulator, uint localID ) : void

Select a single object. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event

SelectObject ( Simulator simulator, uint localID, bool automaticDeselect ) : void

Select a single object. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event

SelectObjects ( Simulator simulator, uint localIDs ) : void

Select multiple objects. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event

SelectObjects ( Simulator simulator, uint localIDs, bool automaticDeselect ) : void

Select multiple objects. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event

SetDescription ( Simulator simulator, uint localID, string description ) : void

Set the description of an object

SetDescriptions ( Simulator simulator, uint localIDs, string descriptions ) : void

Set the descriptions of multiple objects

SetExtraParamOff ( Simulator simulator, uint localID, ExtraParamType type ) : void

Unset additional primitive parameters on an object

SetFlags ( Simulator simulator, uint localID, bool physical, bool temporary, bool phantom, bool castsShadow ) : void

Update the properties of an object

SetFlags ( Simulator simulator, uint localID, bool physical, bool temporary, bool phantom, bool castsShadow, PhysicsShapeType physicsType, float density, float friction, float restitution, float gravityMultiplier ) : void

Update the properties of an object

SetFlexible ( Simulator simulator, uint localID, Primitive flexible ) : void

Set the flexible data on an object

SetLight ( Simulator simulator, uint localID, Primitive light ) : void

Set the Light data on an object

SetMaterial ( Simulator simulator, uint localID, Material material ) : void

Set the Material data of an object

SetName ( Simulator simulator, uint localID, string name ) : void

Set the name of an object

SetNames ( Simulator simulator, uint localIDs, string names ) : void

Set the name of multiple objects

SetObjectsGroup ( Simulator simulator, List localIds, UUID groupID ) : void

Set the ownership of a list of objects to the specified group

SetPermissions ( Simulator simulator, List localIDs, PermissionWho who, PermissionMask permissions, bool set ) : void

Set the permissions on multiple objects

SetPosition ( Simulator simulator, uint localID, System.Vector3 position ) : void

Change the position of an object, Will change position of entire linkset

SetPosition ( Simulator simulator, uint localID, System.Vector3 position, bool childOnly ) : void

Change the position of an object

SetRotation ( Simulator simulator, uint localID, Quaternion rotation ) : void

Change the rotation of an object

SetRotation ( Simulator simulator, uint localID, Quaternion quat, bool childOnly ) : void

Change the Rotation of an object that is either a child or a whole linkset

SetSaleInfo ( Simulator simulator, List localIDs, SaleType saleType, int price ) : void

Sets the sale properties of multiple objects

SetSaleInfo ( Simulator simulator, uint localID, SaleType saleType, int price ) : void

Sets the sale properties of a single object

SetScale ( Simulator simulator, uint localID, System.Vector3 scale, bool childOnly, bool uniform ) : void

Change the Scale (size) of an object

SetSculpt ( Simulator simulator, uint localID, Primitive sculpt ) : void

Set the sculptie texture and data on an object

SetShape ( Simulator simulator, uint localID, Primitive prim ) : void

Set the Shape data of an object

SetTextures ( Simulator simulator, uint localID, Primitive textures ) : void

Set the textures to apply to the faces of an object

SetTextures ( Simulator simulator, uint localID, Primitive textures, string mediaUrl ) : void

Set the textures to apply to the faces of an object

UpdateObject ( Simulator simulator, uint localID, System.Vector3 data, UpdateType type ) : void

Send a Multiple Object Update packet to change the size, scale or rotation of a primitive

UpdateObjectMedia ( UUID primID, OpenMetaverse.MediaEntry faceMedia, Simulator sim ) : void

Set object media

Protected Methods

Method Description
DecodeParticleUpdate ( ObjectUpdatePacket block ) : void
GetAvatar ( Simulator simulator, uint localID, UUID fullID ) : Avatar

GetPrimitive ( Simulator simulator, uint localID, UUID fullID ) : Primitive

ImprovedTerseObjectUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

A terse object update, used when a transformation matrix or velocity/acceleration for an object changes but nothing else (scale/position/rotation/acceleration/velocity)

InterpolationTimer_Elapsed ( object obj ) : void
KillObjectHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectPhysicsPropertiesHandler ( string capsKey, IMessage message, Simulator simulator ) : void

ObjectPropertiesFamilyHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectPropertiesHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectUpdateCachedHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectUpdateCompressedHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

OnAvatarSitChanged ( AvatarSitChangedEventArgs e ) : void

Raises the AvatarSitChanged Event

OnAvatarUpdate ( AvatarUpdateEventArgs e ) : void

Raises the AvatarUpdate Event

OnKillObject ( KillObjectEventArgs e ) : void

Raises the KillObject Event

OnKillObjects ( KillObjectsEventArgs e ) : void

Raises the KillObjects Event

OnObjectDataBlockUpdate ( ObjectDataBlockUpdateEventArgs e ) : void

Raises the ObjectDataBlockUpdate Event

OnObjectProperties ( ObjectPropertiesEventArgs e ) : void

Raises the ObjectProperties Event

OnObjectPropertiesFamily ( ObjectPropertiesFamilyEventArgs e ) : void

Raises the ObjectPropertiesFamily Event

OnObjectPropertiesUpdated ( ObjectPropertiesUpdatedEventArgs e ) : void

Raises the ObjectPropertiesUpdated Event

OnParticleUpdate ( ParticleUpdateEventArgs e ) : void

Raises the ParticleUpdate Event

OnPayPriceReply ( PayPriceReplyEventArgs e ) : void

Raises the PayPriceReply Event

OnPhysicsProperties ( PhysicsPropertiesEventArgs e ) : void

Raises the PhysicsProperties Event

PayPriceReplyHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

SetAvatarSittingOn ( Simulator sim, Avatar av, uint localid, uint oldSeatID ) : void

UpdateDilation ( Simulator s, uint dilation ) : void

Private Methods

Method Description
Network_OnConnected ( object sender ) : void
Network_OnDisconnected ( NetworkManager reason, string message ) : void

Method Details

AddGrass() public method

Rez grass and ground cover
public AddGrass ( Simulator simulator, System.Vector3 scale, Quaternion rotation, System.Vector3 position, Grass grassType, UUID groupOwner ) : void
simulator Simulator A reference to the object where the object resides
scale System.Vector3 The size of the grass
rotation Quaternion The rotation of the grass
position System.Vector3 The position of the grass
grassType Grass The type of grass from the enum
groupOwner UUID The of the group to set the tree to, /// or UUID.Zero if no group is to be set
return void

AddPrim() public method

Create (rez) a new prim object in a simulator
Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties
public AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation ) : void
simulator Simulator A reference to the object to place the object in
prim Primitive Data describing the prim object to rez
groupID UUID Group ID that this prim will be set to, or UUID.Zero if you /// do not want the object to be associated with a specific group
position System.Vector3 An approximation of the position at which to rez the prim
scale System.Vector3 Scale vector to size this prim
rotation Quaternion Rotation quaternion to rotate this prim
return void

AddPrim() public method

Create (rez) a new prim object in a simulator
Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties
public AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation, PrimFlags createFlags ) : void
simulator Simulator A reference to the object to place the object in
prim Primitive Data describing the prim object to rez
groupID UUID Group ID that this prim will be set to, or UUID.Zero if you /// do not want the object to be associated with a specific group
position System.Vector3 An approximation of the position at which to rez the prim
scale System.Vector3 Scale vector to size this prim
rotation Quaternion Rotation quaternion to rotate this prim
createFlags PrimFlags Specify the
return void

AddTree() public method

Rez a Linden tree
public AddTree ( Simulator simulator, System.Vector3 scale, Quaternion rotation, System.Vector3 position, Tree treeType, UUID groupOwner, bool newTree ) : void
simulator Simulator A reference to the object where the object resides
scale System.Vector3 The size of the tree
rotation Quaternion The rotation of the tree
position System.Vector3 The position of the tree
treeType Tree The Type of tree
groupOwner UUID The of the group to set the tree to, /// or UUID.Zero if no group is to be set
newTree bool true to use the "new" Linden trees, false to use the old
return void

AttachObject() public method

Attach an object to this avatar
public AttachObject ( Simulator simulator, uint localID, AttachmentPoint attachPoint, Quaternion rotation ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
attachPoint AttachmentPoint The point on the avatar the object will be attached
rotation Quaternion The rotation of the attached object
return void

BuildBasicShape() public static method

Setup construction data for a basic primitive shape
public static BuildBasicShape ( PrimType type ) : Primitive.ConstructionData
type PrimType Primitive shape to construct
return Primitive.ConstructionData

BuyObject() public method

Attempt to purchase an original object, a copy, or the contents of an object
public BuyObject ( Simulator simulator, uint localID, SaleType saleType, int price, UUID groupID, UUID categoryID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
saleType SaleType Whether the original, a copy, or the object /// contents are on sale. This is used for verification, if the this /// sale type is not valid for the object the purchase will fail
price int Price of the object. This is used for /// verification, if it does not match the actual price the purchase /// will fail
groupID UUID Group ID that will be associated with the new /// purchase
categoryID UUID Inventory folder UUID where the object or objects /// purchased should be placed
return void

ClickObject() public method

Perform a click action on an object
public ClickObject ( Simulator simulator, uint localID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
return void

ClickObject() public method

Perform a click action (Grab) on a single object
public ClickObject ( Simulator simulator, uint localID, System.Vector3 uvCoord, System.Vector3 stCoord, int faceIndex, System.Vector3 position, System.Vector3 normal, System.Vector3 binormal ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
uvCoord System.Vector3 The texture coordinates to touch
stCoord System.Vector3 The surface coordinates to touch
faceIndex int The face of the position to touch
position System.Vector3 The region coordinates of the position to touch
normal System.Vector3 The surface normal of the position to touch (A normal is a vector perpindicular to the surface)
binormal System.Vector3 The surface binormal of the position to touch (A binormal is a vector tangen to the surface /// pointing along the U direction of the tangent space
return void

DecodeParticleUpdate() protected method

protected DecodeParticleUpdate ( ObjectUpdatePacket block ) : void
block ObjectUpdatePacket
return void

DeedObject() public method

Deed an object (prim) to a group, Object must be shared with group which can be accomplished with SetPermissions()
public DeedObject ( Simulator simulator, uint localID, UUID groupOwner ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
groupOwner UUID The of the group to deed the object to
return void

DeedObjects() public method

Deed multiple objects (prims) to a group, Objects must be shared with group which can be accomplished with SetPermissions()
public DeedObjects ( Simulator simulator, List localIDs, UUID groupOwner ) : void
simulator Simulator A reference to the object where the object resides
localIDs List An array which contains the IDs of the objects to deed
groupOwner UUID The of the group to deed the object to
return void

DelinkPrims() public method

Delink/Unlink multiple prims from a linkset
public DelinkPrims ( Simulator simulator, List localIDs ) : void
simulator Simulator A reference to the object where the objects reside
localIDs List An array which contains the IDs of the objects to delink
return void

DeselectObject() public method

Deselect a single object
public DeselectObject ( Simulator simulator, uint localID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
return void

DeselectObjects() public method

Deselect multiple objects.
public DeselectObjects ( Simulator simulator, uint localIDs ) : void
simulator Simulator The the objects are located
localIDs uint An array containing the Local IDs of the objects
return void

DetachObjects() public method

Detach an object from yourself
public DetachObjects ( Simulator simulator, List localIDs ) : void
simulator Simulator A reference to the /// object where the objects reside /// /// This will always be the simulator the avatar is currently in ///
localIDs List An array which contains the IDs of the objects to detach
return void

DropObject() public method

Drop an attached object from this avatar
public DropObject ( Simulator simulator, uint localID ) : void
simulator Simulator A reference to the /// object where the objects reside. This will always be the simulator the avatar is currently in ///
localID uint The object's ID which is local to the simulator the object is in
return void

GetAvatar() protected method

protected GetAvatar ( Simulator simulator, uint localID, UUID fullID ) : Avatar
simulator Simulator
localID uint
fullID UUID
return Avatar

GetPrimitive() protected method

protected GetPrimitive ( Simulator simulator, uint localID, UUID fullID ) : Primitive
simulator Simulator
localID uint
fullID UUID
return Primitive

GetPrimitive() public method

public GetPrimitive ( Simulator simulator, uint localID, UUID fullID, bool createIfMissing ) : Primitive
simulator Simulator
localID uint
fullID UUID
createIfMissing bool
return Primitive

ImprovedTerseObjectUpdateHandler() protected method

A terse object update, used when a transformation matrix or velocity/acceleration for an object changes but nothing else (scale/position/rotation/acceleration/velocity)
protected ImprovedTerseObjectUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
return void

InterpolationTimer_Elapsed() protected method

protected InterpolationTimer_Elapsed ( object obj ) : void
obj object
return void

KillObjectHandler() protected method

Process an incoming packet and raise the appropriate events
protected KillObjectHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
return void

LinkPrims() public method

Link multiple prims into a linkset
The last object in the array will be the root object of the linkset TODO: Is this true?
public LinkPrims ( Simulator simulator, List localIDs ) : void
simulator Simulator A reference to the object where the objects reside
localIDs List An array which contains the IDs of the objects to link
return void

NavigateObjectMedia() public method

Update current URL of the previously set prim media
public NavigateObjectMedia ( UUID primID, int face, string newURL, Simulator sim ) : void
primID UUID UUID of the prim
face int Prim face number
newURL string Set current URL to this
sim Simulator Simulator in which prim is located
return void

ObjectManager() public method

Construct a new instance of the ObjectManager class
public ObjectManager ( GridClient client ) : System
client GridClient A reference to the instance
return System

ObjectPhysicsPropertiesHandler() protected method

protected ObjectPhysicsPropertiesHandler ( string capsKey, IMessage message, Simulator simulator ) : void
capsKey string
message IMessage
simulator Simulator
return void

ObjectPropertiesFamilyHandler() protected method

Process an incoming packet and raise the appropriate events
protected ObjectPropertiesFamilyHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
return void

ObjectPropertiesHandler() protected method

Process an incoming packet and raise the appropriate events
protected ObjectPropertiesHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
return void

ObjectUpdateCachedHandler() protected method

Process an incoming packet and raise the appropriate events
protected ObjectUpdateCachedHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
return void

ObjectUpdateCompressedHandler() protected method

Process an incoming packet and raise the appropriate events
protected ObjectUpdateCompressedHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
return void

ObjectUpdateHandler() protected method

Process an incoming packet and raise the appropriate events
protected ObjectUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
return void

OnAvatarSitChanged() protected method

Raises the AvatarSitChanged Event
protected OnAvatarSitChanged ( AvatarSitChangedEventArgs e ) : void
e AvatarSitChangedEventArgs A AvatarSitChangedEventArgs object containing /// the data sent from the simulator
return void

OnAvatarUpdate() protected method

Raises the AvatarUpdate Event
protected OnAvatarUpdate ( AvatarUpdateEventArgs e ) : void
e AvatarUpdateEventArgs A AvatarUpdateEventArgs object containing /// the data sent from the simulator
return void

OnKillObject() protected method

Raises the KillObject Event
protected OnKillObject ( KillObjectEventArgs e ) : void
e KillObjectEventArgs A KillObjectEventArgs object containing /// the data sent from the simulator
return void

OnKillObjects() protected method

Raises the KillObjects Event
protected OnKillObjects ( KillObjectsEventArgs e ) : void
e KillObjectsEventArgs A KillObjectsEventArgs object containing /// the data sent from the simulator
return void

OnObjectDataBlockUpdate() protected method

Raises the ObjectDataBlockUpdate Event
protected OnObjectDataBlockUpdate ( ObjectDataBlockUpdateEventArgs e ) : void
e ObjectDataBlockUpdateEventArgs A ObjectDataBlockUpdateEventArgs object containing /// the data sent from the simulator
return void

OnObjectProperties() protected method

Raises the ObjectProperties Event
protected OnObjectProperties ( ObjectPropertiesEventArgs e ) : void
e ObjectPropertiesEventArgs A ObjectPropertiesEventArgs object containing /// the data sent from the simulator
return void

OnObjectPropertiesFamily() protected method

Raises the ObjectPropertiesFamily Event
protected OnObjectPropertiesFamily ( ObjectPropertiesFamilyEventArgs e ) : void
e ObjectPropertiesFamilyEventArgs A ObjectPropertiesFamilyEventArgs object containing /// the data sent from the simulator
return void

OnObjectPropertiesUpdated() protected method

Raises the ObjectPropertiesUpdated Event
protected OnObjectPropertiesUpdated ( ObjectPropertiesUpdatedEventArgs e ) : void
e ObjectPropertiesUpdatedEventArgs A ObjectPropertiesUpdatedEventArgs object containing /// the data sent from the simulator
return void

OnParticleUpdate() protected method

Raises the ParticleUpdate Event
protected OnParticleUpdate ( ParticleUpdateEventArgs e ) : void
e ParticleUpdateEventArgs A ParticleUpdateEventArgs object containing /// the data sent from the simulator
return void

OnPayPriceReply() protected method

Raises the PayPriceReply Event
protected OnPayPriceReply ( PayPriceReplyEventArgs e ) : void
e PayPriceReplyEventArgs A PayPriceReplyEventArgs object containing /// the data sent from the simulator
return void

OnPhysicsProperties() protected method

Raises the PhysicsProperties Event
protected OnPhysicsProperties ( PhysicsPropertiesEventArgs e ) : void
e PhysicsPropertiesEventArgs A PhysicsPropertiesEventArgs object containing /// the data sent from the simulator
return void

PayPriceReplyHandler() protected method

Process an incoming packet and raise the appropriate events
protected PayPriceReplyHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
return void

RequestObject() public method

Request information for a single object from a Simulator you are currently connected to
public RequestObject ( Simulator simulator, uint localID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
return void

RequestObjectMedia() public method

Retrieve information about object media
public RequestObjectMedia ( UUID primID, Simulator sim, ObjectMediaCallback callback ) : void
primID UUID UUID of the primitive
sim Simulator Simulator where prim is located
callback ObjectMediaCallback Call this callback when done
return void

RequestObjectPropertiesFamily() public method

Request additional properties for an object
public RequestObjectPropertiesFamily ( Simulator simulator, UUID objectID ) : void
simulator Simulator A reference to the object where the object resides
objectID UUID
return void

RequestObjectPropertiesFamily() public method

Request additional properties for an object
public RequestObjectPropertiesFamily ( Simulator simulator, UUID objectID, bool reliable ) : void
simulator Simulator A reference to the object where the object resides
objectID UUID Absolute UUID of the object
reliable bool Whether to require server acknowledgement of this request
return void

RequestObjects() public method

Request information for multiple objects contained in the same simulator
public RequestObjects ( Simulator simulator, List localIDs ) : void
simulator Simulator The the objects are located
localIDs List An array containing the Local IDs of the objects
return void

RequestPayPrice() public method

Request prices that should be displayed in pay dialog. This will triggger the simulator to send us back a PayPriceReply which can be handled by OnPayPriceReply event
The result is raised in the PayPriceReply event
public RequestPayPrice ( Simulator simulator, UUID objectID ) : void
simulator Simulator The the object is located
objectID UUID The ID of the object
return void

SelectObject() public method

Select a single object. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event
public SelectObject ( Simulator simulator, uint localID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
return void

SelectObject() public method

Select a single object. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event
public SelectObject ( Simulator simulator, uint localID, bool automaticDeselect ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
automaticDeselect bool if true, a call to is /// made immediately following the request
return void

SelectObjects() public method

Select multiple objects. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event
public SelectObjects ( Simulator simulator, uint localIDs ) : void
simulator Simulator The the objects are located
localIDs uint An array containing the Local IDs of the objects
return void

SelectObjects() public method

Select multiple objects. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event
public SelectObjects ( Simulator simulator, uint localIDs, bool automaticDeselect ) : void
simulator Simulator The the objects are located
localIDs uint An array containing the Local IDs of the objects
automaticDeselect bool Should objects be deselected immediately after selection
return void

SetAvatarSittingOn() protected method

protected SetAvatarSittingOn ( Simulator sim, Avatar av, uint localid, uint oldSeatID ) : void
sim Simulator
av Avatar
localid uint
oldSeatID uint
return void

SetDescription() public method

Set the description of an object
public SetDescription ( Simulator simulator, uint localID, string description ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
description string A string containing the new description of the object
return void

SetDescriptions() public method

Set the descriptions of multiple objects
public SetDescriptions ( Simulator simulator, uint localIDs, string descriptions ) : void
simulator Simulator A reference to the object where the objects reside
localIDs uint An array which contains the IDs of the objects to change the description of
descriptions string An array which contains the new descriptions of the objects
return void

SetExtraParamOff() public method

Unset additional primitive parameters on an object
public SetExtraParamOff ( Simulator simulator, uint localID, ExtraParamType type ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
type ExtraParamType The extra parameters to set
return void

SetFlags() public method

Update the properties of an object
public SetFlags ( Simulator simulator, uint localID, bool physical, bool temporary, bool phantom, bool castsShadow ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
physical bool true to turn the objects physical property on
temporary bool true to turn the objects temporary property on
phantom bool true to turn the objects phantom property on
castsShadow bool true to turn the objects cast shadows property on
return void

SetFlags() public method

Update the properties of an object
public SetFlags ( Simulator simulator, uint localID, bool physical, bool temporary, bool phantom, bool castsShadow, PhysicsShapeType physicsType, float density, float friction, float restitution, float gravityMultiplier ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
physical bool true to turn the objects physical property on
temporary bool true to turn the objects temporary property on
phantom bool true to turn the objects phantom property on
castsShadow bool true to turn the objects cast shadows property on
physicsType PhysicsShapeType Type of the represetnation prim will have in the physics engine
density float Density - normal value 1000
friction float Friction - normal value 0.6
restitution float Restitution - standard value 0.5
gravityMultiplier float Gravity multiplier - standar value 1.0
return void

SetFlexible() public method

Set the flexible data on an object
public SetFlexible ( Simulator simulator, uint localID, Primitive flexible ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
flexible Primitive A object containing the data to set
return void

SetLight() public method

Set the Light data on an object
public SetLight ( Simulator simulator, uint localID, Primitive light ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
light Primitive A object containing the data to set
return void

SetMaterial() public method

Set the Material data of an object
public SetMaterial ( Simulator simulator, uint localID, Material material ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
material Material The new material of the object
return void

SetName() public method

Set the name of an object
public SetName ( Simulator simulator, uint localID, string name ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
name string A string containing the new name of the object
return void

SetNames() public method

Set the name of multiple objects
public SetNames ( Simulator simulator, uint localIDs, string names ) : void
simulator Simulator A reference to the object where the objects reside
localIDs uint An array which contains the IDs of the objects to change the name of
names string An array which contains the new names of the objects
return void

SetObjectsGroup() public method

Set the ownership of a list of objects to the specified group
public SetObjectsGroup ( Simulator simulator, List localIds, UUID groupID ) : void
simulator Simulator A reference to the object where the objects reside
localIds List An array which contains the IDs of the objects to set the group id on
groupID UUID The Groups ID
return void

SetPermissions() public method

Set the permissions on multiple objects
public SetPermissions ( Simulator simulator, List localIDs, PermissionWho who, PermissionMask permissions, bool set ) : void
simulator Simulator A reference to the object where the objects reside
localIDs List An array which contains the IDs of the objects to set the permissions on
who PermissionWho The new Who mask to set
permissions PermissionMask Which permission to modify
set bool The new state of permission
return void

SetPosition() public method

Change the position of an object, Will change position of entire linkset
public SetPosition ( Simulator simulator, uint localID, System.Vector3 position ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
position System.Vector3 The new position of the object
return void

SetPosition() public method

Change the position of an object
public SetPosition ( Simulator simulator, uint localID, System.Vector3 position, bool childOnly ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
position System.Vector3 The new position of the object
childOnly bool if true, will change position of (this) child prim only, not entire linkset
return void

SetRotation() public method

Change the rotation of an object
public SetRotation ( Simulator simulator, uint localID, Quaternion rotation ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
rotation Quaternion The new rotation of the object
return void

SetRotation() public method

Change the Rotation of an object that is either a child or a whole linkset
public SetRotation ( Simulator simulator, uint localID, Quaternion quat, bool childOnly ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
quat Quaternion The new scale of the object
childOnly bool If true, will change rotation of this prim only, not entire linkset
return void

SetSaleInfo() public method

Sets the sale properties of multiple objects
public SetSaleInfo ( Simulator simulator, List localIDs, SaleType saleType, int price ) : void
simulator Simulator The the objects are located
localIDs List An array containing the Local IDs of the objects
saleType SaleType One of the options from the enum
price int The price of the object
return void

SetSaleInfo() public method

Sets the sale properties of a single object
public SetSaleInfo ( Simulator simulator, uint localID, SaleType saleType, int price ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
saleType SaleType One of the options from the enum
price int The price of the object
return void

SetScale() public method

Change the Scale (size) of an object
public SetScale ( Simulator simulator, uint localID, System.Vector3 scale, bool childOnly, bool uniform ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
scale System.Vector3 The new scale of the object
childOnly bool If true, will change scale of this prim only, not entire linkset
uniform bool True to resize prims uniformly
return void

SetSculpt() public method

Set the sculptie texture and data on an object
public SetSculpt ( Simulator simulator, uint localID, Primitive sculpt ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
sculpt Primitive A object containing the data to set
return void

SetShape() public method

Set the Shape data of an object
public SetShape ( Simulator simulator, uint localID, Primitive prim ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
prim Primitive Data describing the prim shape
return void

SetTextures() public method

Set the textures to apply to the faces of an object
public SetTextures ( Simulator simulator, uint localID, Primitive textures ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
textures Primitive The texture data to apply
return void

SetTextures() public method

Set the textures to apply to the faces of an object
public SetTextures ( Simulator simulator, uint localID, Primitive textures, string mediaUrl ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
textures Primitive The texture data to apply
mediaUrl string A media URL (not used)
return void

UpdateDilation() protected method

protected UpdateDilation ( Simulator s, uint dilation ) : void
s Simulator
dilation uint
return void

UpdateObject() public method

Send a Multiple Object Update packet to change the size, scale or rotation of a primitive
public UpdateObject ( Simulator simulator, uint localID, System.Vector3 data, UpdateType type ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
data System.Vector3 The new rotation, size, or position of the target object
type UpdateType The flags from the Enum
return void

UpdateObjectMedia() public method

Set object media
public UpdateObjectMedia ( UUID primID, OpenMetaverse.MediaEntry faceMedia, Simulator sim ) : void
primID UUID UUID of the prim
faceMedia OpenMetaverse.MediaEntry Array the length of prims number of faces. Null on face indexes where there is /// no media, on faces which contain the media
sim Simulator Simulatior in which prim is located
return void

Property Details

Client protected_oe property

Reference to the GridClient object
protected GridClient,OpenMetaverse Client
return GridClient