|
Public Types |
| enum | {
DropAtOrigin = 0,
DropAtCamera,
DropAtCameraWithRot,
DropBelowCamera,
DropAtScreenCenter,
DropAtCentroid,
DropToGround
} |
Public Member Functions |
| void | ignoreObjClass (U32 argc, const char **argv) |
| void | clearIgnoreList () |
| void | undo () |
| void | redo () |
| void | clearSelection () |
| void | selectObject (const char *obj) |
| void | unselectObject (const char *obj) |
| S32 | getSelectionSize () |
| S32 | getSelectObject (S32 index) |
| const char * | getSelectionCentroid () |
| void | dropCurrentSelection () |
| void | deleteCurrentSelection () |
| void | copyCurrentSelection () |
| bool | canPasteSelection () |
| const char * | getMode () |
| bool | setMode (const char *mode) |
| void | addUndoState () |
| void | redirectConsole (S32 objID) |
| bool | deleteSelection (Selection &sel) |
| bool | copySelection (Selection &sel) |
| bool | pasteSelection () |
| void | dropSelection (Selection &sel) |
| void | hideSelection (bool hide) |
| void | lockSelection (bool lock) |
| bool | objClassIgnored (const SceneObject *obj) |
| void | renderObjectBox (SceneObject *obj, const ColorI &col) |
| | WorldEditor () |
| | ~WorldEditor () |
| bool | onAdd () |
| | Called when this object is added to the scene.
|
| void | onEditorEnable () |
| | Called when the editor is activated.
|
| void | setDirty () |
| void | on3DMouseMove (const Gui3DMouseEvent &event) |
| void | on3DMouseDown (const Gui3DMouseEvent &event) |
| void | on3DMouseUp (const Gui3DMouseEvent &event) |
| void | on3DMouseDragged (const Gui3DMouseEvent &event) |
| void | on3DMouseEnter (const Gui3DMouseEvent &event) |
| void | on3DMouseLeave (const Gui3DMouseEvent &event) |
| void | on3DRightMouseDown (const Gui3DMouseEvent &event) |
| void | on3DRightMouseUp (const Gui3DMouseEvent &event) |
| void | updateGuiInfo () |
| void | renderScene (const RectI &updateRect) |
| | DECLARE_CONOBJECT (WorldEditor) |
Static Public Member Functions |
| static SceneObject * | getClientObj (SceneObject *) |
| static void | setClientObjInfo (SceneObject *, const MatrixF &, const VectorF &) |
| static void | updateClientTransforms (Selection &) |
| static void | initPersistFields () |
| | Register dynamic fields in a subclass of ConsoleObject.
|
Data Fields |
| bool | mPlanarMovement |
| S32 | mUndoLimit |
| S32 | mDropType |
| F32 | mProjectDistance |
| bool | mBoundingBoxCollision |
| bool | mRenderPlane |
| bool | mRenderPlaneHashes |
| ColorI | mGridColor |
| F32 | mPlaneDim |
| Point3F | mGridSize |
| bool | mRenderPopupBackground |
| ColorI | mPopupBackgroundColor |
| ColorI | mPopupTextColor |
| StringTableEntry | mSelectHandle |
| StringTableEntry | mDefaultHandle |
| StringTableEntry | mLockedHandle |
| ColorI | mObjectTextColor |
| bool | mObjectsUseBoxCenter |
| S32 | mAxisGizmoMaxScreenLen |
| bool | mAxisGizmoActive |
| F32 | mMouseMoveScale |
| F32 | mMouseRotateScale |
| F32 | mMouseScaleScale |
| F32 | mMinScaleFactor |
| F32 | mMaxScaleFactor |
| ColorI | mObjSelectColor |
| ColorI | mObjMouseOverSelectColor |
| ColorI | mObjMouseOverColor |
| bool | mShowMousePopupInfo |
| ColorI | mDragRectColor |
| bool | mRenderObjText |
| bool | mRenderObjHandle |
| StringTableEntry | mObjTextFormat |
| ColorI | mFaceSelectColor |
| bool | mRenderSelectionBox |
| ColorI | mSelectionBoxColor |
| bool | mSelectionLocked |
| bool | mSnapToGrid |
| bool | mSnapRotations |
| F32 | mRotationSnap |
| bool | mToggleIgnoreList |
| bool | mRenderNav |
| bool | mNoMouseDrag |
Private Types |
| enum | {
Move = 0,
Rotate,
Scale
} |
| enum | {
HandCursor = 0,
RotateCursor,
ScaleCursor,
MoveCursor,
ArrowCursor,
DefaultCursor,
NumCursors
} |
| typedef EditTSCtrl | Parent |
Private Member Functions |
| SelectionState * | createUndo (Selection &) |
| void | addUndo (Vector< SelectionState * > &list, SelectionState *sel) |
| bool | processUndo (Vector< SelectionState * > &src, Vector< SelectionState * > &dest) |
| void | clearUndo (Vector< SelectionState * > &list) |
| SceneObject * | getControlObject () |
| bool | collide (const Gui3DMouseEvent &event, CollisionInfo &info) |
| void | renderObjectFace (SceneObject *obj, const VectorF &normal, const ColorI &col) |
| void | renderSelectionWorldBox (Selection &sel) |
| void | renderPlane (const Point3F &origin) |
| void | renderMousePopupInfo () |
| void | renderScreenObj (SceneObject *obj, Point2I sPos) |
| void | renderPaths (SimObject *obj) |
| void | renderSplinePath (Path *path) |
| void | calcAxisInfo () |
| bool | collideAxisGizmo (const Gui3DMouseEvent &event) |
| void | renderAxisGizmo () |
| void | renderAxisGizmoText () |
| Point3F | snapPoint (const Point3F &pnt) |
| ClassInfo::Entry * | getClassEntry (StringTableEntry name) |
| ClassInfo::Entry * | getClassEntry (const SceneObject *obj) |
| bool | addClassEntry (ClassInfo::Entry *entry) |
| bool | grabCursors () |
| void | setCursor (U32 cursor) |
| void | get3DCursor (GuiCursor *&cursor, bool &visible, const Gui3DMouseEvent &event) |
Private Attributes |
| Vector< SelectionState * > | mUndoList |
| Vector< SelectionState * > | mRedoList |
| Vector< U8[2048]> | mStreamBufs |
| Point3F | mAxisGizmoCenter |
| VectorF | mAxisGizmoVector [3] |
| F32 | mAxisGizmoProjLen |
| S32 | mAxisGizmoSelAxis |
| bool | mUsingAxisGizmo |
| bool | mIsDirty |
| bool | mMouseDown |
| Selection | mSelected |
| bool | mUseVertMove |
| Selection | mDragSelected |
| bool | mDragSelect |
| RectI | mDragRect |
| Point2I | mDragStart |
| U32 | mCurrentMode |
| U32 | mDefaultMode |
| S32 | mRedirectID |
| CollisionInfo | mHitInfo |
| Point3F | mHitOffset |
| SimObjectPtr< SceneObject > | mHitObject |
| Point2I | mHitMousePos |
| Point3F | mHitCentroid |
| EulerF | mHitRotation |
| bool | mMouseDragged |
| Gui3DMouseEvent | mLastMouseEvent |
| F32 | mLastRotation |
| ClassInfo | mClassInfo |
| ClassInfo::Entry | mDefaultClassEntry |
| GuiCursor * | mCursors [NumCursors] |
| GuiCursor * | mCurrentCursor |
Data Structures |
| class | ClassInfo |
| struct | CollisionInfo |
| class | Selection |
| struct | SelectionState |