EditTSCtrl

Engine/source/gui/worldEditor/editTSCtrl.h

More...

Protected Types

enum
DisplayType {
  DisplayTypeTop 
  DisplayTypeBottom 
  DisplayTypeFront 
  DisplayTypeBack 
  DisplayTypeLeft 
  DisplayTypeRight 
  DisplayTypePerspective 
  DisplayTypeIsometric 
}

Private Types

Parent 

Protected Functions

getCursor(GuiCursor *& cursor, bool & showCursor, const GuiEvent & lastGuiEvent)

Get information about the cursor.

bool

General input handler.

orthoZoom(F32 steps)

Zoom in/out in ortho views by "steps".

renderWorld(const RectI & updateRect)

Subclasses can override this to perform 3D rendering.

Public Functions

calcOrthoCamOffset(F32 mousex, F32 mousey, U8 modifier)
DECLARE_CATEGORY("Gui Editor" )
get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & )
bool
getCameraTransform(MatrixF * cameraMatrix)
bool

Return true if the current view is an ortho projection along one of the world axes.

bool

Called when this object is added to the scene.

Called when this object is removed.

onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

bool
resize(const Point2I & newPosition, const Point2I & newExtent)

Changes the size and/or position of this control.

Set flags or other Gizmo state appropriate for the current situation.

Public Static Functions

Detailed Description

Protected Types

DisplayType

Enumerator

DisplayTypeTop
DisplayTypeBottom
DisplayTypeFront
DisplayTypeBack
DisplayTypeLeft
DisplayTypeRight
DisplayTypePerspective
DisplayTypeIsometric

Private Types

typedef GuiTSCtrl Parent 

Protected Attributes

bool mAllowBorderMove 
S32 mDisplayType 
SimObjectPtr< Gizmo > mGizmo 
GizmoProfile * mGizmoProfile 
F32 mIsoCamAngle 
EulerF mIsoCamRot 
Point3F mIsoCamRotCenter 
U32 mLastBorderMoveTime 
Gui3DMouseEvent mLastEvent 
bool mLastMouseClamping 
Point2I mLastMousePos 
bool mLeftMouseDown 
bool mMiddleMouseDown 
bool mMiddleMouseTriggered 
bool mMouseLeft 
S32 mMouseMoveBorder 
F32 mMouseMoveSpeed 
Point3F mOrthoCamTrans 
F32 mOrthoFOV 
Point3F mRawCamPos 
bool mRightMouseDown 

Public Attributes

GFXStateBlockRef mBlendSB 
S32 mConsoleCircleSegments 
ColorI mConsoleFillColor 
ColorI mConsoleFrameColor 
S32 mConsoleLineWidth 
bool mConsoleRendering 
S32 mConsoleSphereLevel 
ColorI mGridPlaneColor 
ColorI mGridPlaneMinorTickColor 
S32 mGridPlaneMinorTicks 
ColorI mGridPlaneOriginColor 
F32 mGridPlaneSize 
F32 mGridPlaneSizePixelBias 
bool mMiddleMousePassThru 
ColorI mMissionAreaFillColor 
ColorI mMissionAreaFrameColor 
F32 mMissionAreaHeightAdjust 
bool mRenderGridPlane 
bool mRenderMissionArea 
bool mRightMousePassThru 

Public Static Attributes

F32 smCamFOV 
MatrixF smCamMatrix 
F32 smCamNearPlane 
bool smCamOrtho 
Point3F smCamPos 
Point3F smMinSceneBounds 
U32 smSceneBoundsMask 
F32 smVisibleDistanceScale 

Protected Functions

_renderScene(ObjectRenderInst * , SceneRenderState * state, BaseMatInstance * )

getCursor(GuiCursor *& cursor, bool & showCursor, const GuiEvent & lastGuiEvent)

Reimplemented from: GuiControl

make3DMouseEvent(Gui3DMouseEvent & gui3Devent, const GuiEvent & event)

onInputEvent(const InputEventInfo & event)

Reimplemented from: GuiControl

Reimplemented by: TerrainEditor

onMiddleMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

onMiddleMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

onMiddleMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

onMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

onMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

onMouseEnter(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseLeave(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseMove(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

onMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview, ForestEditorCtrl

onMouseWheelDown(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: ForestEditorCtrl, TerrainEditor

onMouseWheelUp(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: ForestEditorCtrl, TerrainEditor

onRightMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

onRightMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

onRightMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

Reimplemented by: GuiShapeEdPreview

orthoZoom(F32 steps)

Zoom in/out in ortho views by "steps".

renderCameraAxis()

renderGrid()

Reimplemented by: GuiShapeEdPreview

renderMissionArea()

renderScene(const RectI & )

Reimplemented by: VPathEditor, GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, ForestEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, TerrainEditor, WorldEditor, GuiNavEditorCtrl

renderWorld(const RectI & updateRect)

Reimplemented from: GuiTSCtrl

updateGuiInfo()

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, ForestEditorCtrl, GuiDecalEditorCtrl, TerrainEditor, WorldEditor, GuiNavEditorCtrl

Public Functions

EditTSCtrl()

~EditTSCtrl()

calcOrthoCamOffset(F32 mousex, F32 mousey, U8 modifier)

computeSceneBounds(Box3F & bounds)

Reimplemented by: GuiShapeEdPreview

DECLARE_CATEGORY("Gui Editor" )

DECLARE_CONOBJECT(EditTSCtrl )

get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & )

Reimplemented by: WorldEditor, GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, ForestEditorCtrl, GuiShapeEdPreview, GuiConvexEditorCtrl, GuiDecalEditorCtrl, GuiMissionAreaEditorCtrl, GuiNavEditorCtrl, TerrainEditor

getActiveTerrain()

Reimplemented by: TerrainEditor

getCameraTransform(MatrixF * cameraMatrix)

Reimplemented by: GuiShapeEdPreview

getDisplayType()

getGizmo()

getOrthoFOV()

isMiddleMouseDown()

isOrthoDisplayType()

Return true if the current view is an ortho projection along one of the world axes.

on3DMouseDown(const Gui3DMouseEvent & )

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, WorldEditor, GuiNavEditorCtrl, ForestEditorCtrl, TerrainEditor, VPathEditor

on3DMouseDragged(const Gui3DMouseEvent & )

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, WorldEditor, GuiNavEditorCtrl, ForestEditorCtrl, TerrainEditor, VPathEditor

on3DMouseEnter(const Gui3DMouseEvent & )

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, WorldEditor, GuiNavEditorCtrl, ForestEditorCtrl

on3DMouseLeave(const Gui3DMouseEvent & )

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, WorldEditor, GuiNavEditorCtrl, ForestEditorCtrl

on3DMouseMove(const Gui3DMouseEvent & )

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, WorldEditor, GuiNavEditorCtrl, ForestEditorCtrl, TerrainEditor, VPathEditor

on3DMouseUp(const Gui3DMouseEvent & )

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, WorldEditor, GuiNavEditorCtrl, ForestEditorCtrl, TerrainEditor, VPathEditor

on3DMouseWheelDown(const Gui3DMouseEvent & )

Reimplemented by: GuiShapeEdPreview

on3DMouseWheelUp(const Gui3DMouseEvent & )

Reimplemented by: GuiShapeEdPreview

on3DRightMouseDown(const Gui3DMouseEvent & )

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, WorldEditor, ForestEditorCtrl

on3DRightMouseDragged(const Gui3DMouseEvent & )

on3DRightMouseUp(const Gui3DMouseEvent & )

Reimplemented by: GuiMeshRoadEditorCtrl, GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiConvexEditorCtrl, GuiDecalEditorCtrl, WorldEditor, ForestEditorCtrl

onAdd()

Reimplemented from: GuiControl

Reimplemented by: GuiConvexEditorCtrl, GuiDecalEditorCtrl, GuiMissionAreaEditorCtrl, TerrainEditor, WorldEditor, GuiNavEditorCtrl, VPathEditor

onRemove()

Reimplemented from: GuiControl

Reimplemented by: GuiConvexEditorCtrl

onRender(Point2I offset, const RectI & updateRect)

Reimplemented from: GuiTSCtrl

Reimplemented by: GuiRiverEditorCtrl, GuiRoadEditorCtrl, GuiDecalEditorCtrl, GuiNavEditorCtrl

processCameraQuery(CameraQuery * query)

Reimplemented from: GuiTSCtrl

resize(const Point2I & newPosition, const Point2I & newExtent)

Reimplemented from: GuiContainer

setDisplayType(S32 type)

Reimplemented by: GuiShapeEdPreview

setOrthoFOV(F32 fov)

updateGizmo()

Set flags or other Gizmo state appropriate for the current situation.

For example derived classes may override this to disable certain axes of modes of manipulation.

Reimplemented by: ForestEditorCtrl, GuiConvexEditorCtrl

Public Static Functions

consoleInit()

initPersistFields()