29 using System.Collections.Generic;
33 namespace OpenSim.
Region.Framework.Scenes
44 public UUID CreatorId {
get; set; }
53 lock (m_memberObjects)
54 return m_memberObjects.Count;
61 public bool HasObjects {
get {
return Count > 0; } }
66 public List<SceneObjectGroup> Objects
70 lock (m_memberObjects)
71 return new List<SceneObjectGroup>(m_memberObjects);
93 protected List<SceneObjectGroup> m_memberObjects =
new List<SceneObjectGroup>();
97 CreatorId = creatorId;
113 lock (m_memberObjects)
114 m_memberObjects.Add(obj);
124 lock (m_memberObjects)
125 return m_memberObjects.Remove(obj);
138 float minX, minY, minZ;
139 float maxX, maxY, maxZ;
142 = Scene.GetCombinedBoundingBox(
143 Objects, out minX, out maxX, out minY, out maxY, out minZ, out maxZ);
145 float sizeX = maxX - minX;
146 float sizeY = maxY - minY;
147 float sizeZ = maxZ - minZ;
149 size =
new Vector3(sizeX, sizeY, sizeZ);
bool Remove(SceneObjectGroup obj)
Removes a scene object from the coalescene
A scene object group is conceptually an object in the scene. The object is constituted of SceneObject...
Vector3[] GetSizeAndOffsets(out Vector3 size)
Get the total size of the coalescence (the size required to cover all the objects within it) and the ...
void Add(SceneObjectGroup obj)
Add an object to the coalescence.
CoalescedSceneObjects(UUID creatorId, params SceneObjectGroup[] objs)
CoalescedSceneObjects(UUID creatorId)
Represents a coalescene of scene objects. A coalescence occurs when objects that are not in the same ...