C# Class OpenSim.Region.Framework.Scenes.Serialization.SceneObjectSerializer

Serialize and deserialize scene objects.
Datei anzeigen Open project: N3X15/VoxelSim Class Usage Examples

Public Methods

Method Description
FromOriginalXmlFormat ( UUID fromUserInventoryItemID, string xmlData ) : SceneObjectGroup

Deserialize a scene object from the original xml format

FromOriginalXmlFormat ( string serialization ) : SceneObjectGroup

Deserialize a scene object from the original xml format

FromXml2Format ( string xmlData ) : SceneObjectGroup
SOGToXml2 ( XmlTextWriter writer, SceneObjectGroup sog, object>.Dictionary options ) : void
SOPToXml2 ( XmlTextWriter writer, SceneObjectPart sop, object>.Dictionary options ) : void
ToOriginalXmlFormat ( SceneObjectGroup sceneObject ) : string

Serialize a scene object to the original xml format

ToOriginalXmlFormat ( SceneObjectGroup sceneObject, XmlTextWriter writer ) : void

Serialize a scene object to the original xml format

ToXml2Format ( SceneObjectGroup sceneObject ) : string

Serialize a scene object to the 'xml2' format.

Xml2ToSOG ( XmlTextReader reader, SceneObjectGroup sog ) : bool
Xml2ToSOP ( XmlTextReader reader ) : SceneObjectPart

Protected Methods

Method Description
ToXmlFormat ( SceneObjectPart part, XmlTextWriter writer ) : void

Private Methods

Method Description
ProcessAcceleration ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessAllowedDrop ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessAngularVelocity ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessBaseMask ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessCategory ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessClickAction ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessCollisionSound ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessCollisionSoundVolume ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessColor ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessCreationDate ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessCreatorID ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessDescription ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessEveryoneMask ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessFlags ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessFolderID ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessGroupID ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessGroupMask ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessGroupPosition ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessInventorySerial ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessLastOwnerID ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessLinkNum ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessLocalId ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessMaterial ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessMediaUrl ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessName ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessNextOwnerMask ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessObjectSaleType ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessOffsetPosition ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessOwnerID ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessOwnerMask ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessOwnershipCost ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessParentID ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessParticleSystem ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessPassTouches ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessRegionHandle ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessRotationOffset ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessSalePrice ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessScale ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessScriptAccessPin ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessShape ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessShpExtraParams ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiDrag ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiEntry ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiForceX ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiForceY ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiForceZ ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiGravity ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiSoftness ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiTension ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpFlexiWind ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpHollowShape ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightColorA ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightColorB ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightColorG ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightColorR ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightCutoff ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightEntry ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightFalloff ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightIntensity ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpLightRadius ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpMedia ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPCode ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathBegin ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathCurve ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathEnd ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathRadiusOffset ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathRevolutions ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathScaleX ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathScaleY ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathShearX ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathShearY ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathSkew ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathTaperX ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathTaperY ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathTwist ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpPathTwistBegin ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpProfileBegin ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpProfileCurve ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpProfileEnd ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpProfileHollow ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpProfileShape ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpScale ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpSculptData ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpSculptEntry ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpSculptTexture ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpSculptType ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpState ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessShpTextureEntry ( PrimitiveBaseShape shp, XmlTextReader reader ) : void
ProcessSitName ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessSitTargetOrientation ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessSitTargetOrientationLL ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessSitTargetPosition ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessSitTargetPositionLL ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessTIAssetID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIBasePermissions ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTICreationDate ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTICreatorID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTICurrentPermissions ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIDescription ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIEveryonePermissions ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIFlags ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIGroupID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIGroupPermissions ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIInvType ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIItemID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTILastOwnerID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIName ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTINextPermissions ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIOldItemID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIOwnerChanged ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIOwnerID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIParentID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIParentPartID ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIPermsGranter ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIPermsMask ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTIType ( TaskInventoryItem item, XmlTextReader reader ) : void
ProcessTaskInventory ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessText ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessTextureAnimation ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessTouchName ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessUUID ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessUpdateFlag ( SceneObjectPart obj, XmlTextReader reader ) : void
ProcessVelocity ( SceneObjectPart obj, XmlTextReader reader ) : void
ReadQuaternion ( XmlTextReader reader, string name ) : Quaternion
ReadShape ( XmlTextReader reader, string name ) : PrimitiveBaseShape
ReadTaskInventory ( XmlTextReader reader, string name ) : TaskInventoryDictionary
ReadUUID ( XmlTextReader reader, string name ) : UUID
ReadVector ( XmlTextReader reader, string name ) : System.Vector3
SceneObjectSerializer ( ) : System
WriteBytes ( XmlTextWriter writer, string name, byte data ) : void
WriteFlags ( XmlTextWriter writer, string name, string flagsStr, object>.Dictionary options ) : void
WriteQuaternion ( XmlTextWriter writer, string name, Quaternion quat ) : void
WriteShape ( XmlTextWriter writer, PrimitiveBaseShape shp, object>.Dictionary options ) : void
WriteTaskInventory ( XmlTextWriter writer, TaskInventoryDictionary tinv, object>.Dictionary options ) : void
WriteUUID ( XmlTextWriter writer, string name, UUID id, object>.Dictionary options ) : void
WriteVector ( XmlTextWriter writer, string name, Vector3 vec ) : void

Method Details

FromOriginalXmlFormat() public static method

Deserialize a scene object from the original xml format
public static FromOriginalXmlFormat ( UUID fromUserInventoryItemID, string xmlData ) : SceneObjectGroup
fromUserInventoryItemID UUID
xmlData string
return SceneObjectGroup

FromOriginalXmlFormat() public static method

Deserialize a scene object from the original xml format
public static FromOriginalXmlFormat ( string serialization ) : SceneObjectGroup
serialization string
return SceneObjectGroup

FromXml2Format() public static method

public static FromXml2Format ( string xmlData ) : SceneObjectGroup
xmlData string
return SceneObjectGroup

SOGToXml2() public static method

public static SOGToXml2 ( XmlTextWriter writer, SceneObjectGroup sog, object>.Dictionary options ) : void
writer System.Xml.XmlTextWriter
sog SceneObjectGroup
options object>.Dictionary
return void

SOPToXml2() public static method

public static SOPToXml2 ( XmlTextWriter writer, SceneObjectPart sop, object>.Dictionary options ) : void
writer System.Xml.XmlTextWriter
sop SceneObjectPart
options object>.Dictionary
return void

ToOriginalXmlFormat() public static method

Serialize a scene object to the original xml format
public static ToOriginalXmlFormat ( SceneObjectGroup sceneObject ) : string
sceneObject SceneObjectGroup
return string

ToOriginalXmlFormat() public static method

Serialize a scene object to the original xml format
public static ToOriginalXmlFormat ( SceneObjectGroup sceneObject, XmlTextWriter writer ) : void
sceneObject SceneObjectGroup
writer System.Xml.XmlTextWriter
return void

ToXml2Format() public static method

Serialize a scene object to the 'xml2' format.
public static ToXml2Format ( SceneObjectGroup sceneObject ) : string
sceneObject SceneObjectGroup
return string

ToXmlFormat() protected static method

protected static ToXmlFormat ( SceneObjectPart part, XmlTextWriter writer ) : void
part SceneObjectPart
writer XmlTextWriter
return void

Xml2ToSOG() public static method

public static Xml2ToSOG ( XmlTextReader reader, SceneObjectGroup sog ) : bool
reader XmlTextReader
sog SceneObjectGroup
return bool

Xml2ToSOP() public static method

public static Xml2ToSOP ( XmlTextReader reader ) : SceneObjectPart
reader XmlTextReader
return SceneObjectPart