WorldEditorSelection
Engine/source/gui/worldEditor/worldEditorSelection.h
A selection set in the World Editor.
Transforms
Note that these methods do not update transforms of client objects.
Use WorldEditor::updateClientTransforms to do that.
Public Types
Parent
Private Attributes
bool
The bounding box around the selection.
The center point of the bounding box around the selection.
bool
If false, the selection has been modified and bounding box values and center points need to be recomputed.
bool
If true, the selection contains one or more objects that have global bounds enabled.
Private Functions
Public Functions
bool
DECLARE_CATEGORY("Editor <a href="/coding/file/gizmo_8h/#gizmo_8h_1a10fcd3bee2ea25191e31795e36bdeba1a81f4537631c9ab219ec74de554483adc">World</a>" )
DECLARE_DESCRIPTION("A selection set <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> the <a href="/coding/file/gizmo_8h/#gizmo_8h_1a10fcd3bee2ea25191e31795e36bdeba1a81f4537631c9ab219ec74de554483adc">World</a> Editor." )
Disable collision for all objects in the selection.
Enable collision for all objects in the selection.
bool
removeObject(SimObject * object)
Remove the given object from the set.
setAutoSelect(bool b)
setCanSave(bool val)
Set serialization flag.
Public Static Functions
Detailed Description
A selection set in the World Editor.
Selections are by default transient objects, but can be made persistent and saved to disk.
Transforms
Note that these methods do not update transforms of client objects.
Use WorldEditor::updateClientTransforms to do that.
getCentroid()
getBoxCentroid()
getBoxBounds()
getBoxBottomCenter()
getTransform()
offset(const Point3F & delta, F32 gridSnap)
setPosition(const Point3F & pos)
_snapFloat(const F32 & val, const F32 & snap)
setCentroidPosition(bool useBoxCenter, const Point3F & pos)
orient(const MatrixF & , const Point3F & )
rotate(const EulerF & )
rotate(const EulerF & , const Point3F & )
setRotate(const EulerF & )
scale(const VectorF & )
scale(const VectorF & , const Point3F & )
setScale(const VectorF & )
setScale(const VectorF & , const Point3F & )
addSize(const VectorF & )
setSize(const VectorF & )
Public Types
typedef SimPersistSet Parent
Private Attributes
bool mAutoSelect
Box3F mBoxBounds
The bounding box around the selection.
Point3F mBoxCentroid
The center point of the bounding box around the selection.
Point3F mCentroid
The averaged positions of all objects in the selection.
bool mCentroidValid
If false, the selection has been modified and bounding box values and center points need to be recomputed.
bool mContainsGlobalBounds
If true, the selection contains one or more objects that have global bounds enabled.
Point3F mPrevCentroid
MatrixF mTransform
Private Functions
updateCentroid()
Public Functions
WorldEditorSelection()
~WorldEditorSelection()
addObject(SimObject * object)
Reimplemented from: SimPersistSet
containsGlobalBounds()
DECLARE_CATEGORY("Editor <a href="/coding/file/gizmo_8h/#gizmo_8h_1a10fcd3bee2ea25191e31795e36bdeba1a81f4537631c9ab219ec74de554483adc">World</a>" )
DECLARE_CONOBJECT(WorldEditorSelection )
DECLARE_DESCRIPTION("A selection set <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1a2732ab74fa0237854c2ba0f75f88a624">for</a> the <a href="/coding/file/gizmo_8h/#gizmo_8h_1a10fcd3bee2ea25191e31795e36bdeba1a81f4537631c9ab219ec74de554483adc">World</a> Editor." )
disableCollision()
Disable collision for all objects in the selection.
enableCollision()
Enable collision for all objects in the selection.
hasCentroidChanged()
invalidateCentroid()
objInSet(SimObject * object)
Return true if "object" is contained in the selection.
removeObject(SimObject * object)
Reimplemented from: SimSet
setAutoSelect(bool b)
setCanSave(bool val)
Reimplemented from: SimObject
storeCurrentCentroid()