GuiRiverEditorCtrl
Engine/source/environment/editors/guiRiverEditorCtrl.h
Private Types
Parent
Public Friends
class
Public Attributes
Protected Attributes
bool
bool
Public Functions
deleteSelectedRiver(bool undoAble)
get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & event_)
bool
getStaticPos(const Gui3DMouseEvent & event, Point3F & tpos)
on3DMouseDown(const Gui3DMouseEvent & event)
on3DMouseDragged(const Gui3DMouseEvent & event)
on3DMouseEnter(const Gui3DMouseEvent & event)
on3DMouseLeave(const Gui3DMouseEvent & event)
on3DMouseMove(const Gui3DMouseEvent & event)
on3DMouseUp(const Gui3DMouseEvent & event)
on3DRightMouseDown(const Gui3DMouseEvent & event)
on3DRightMouseUp(const Gui3DMouseEvent & event)
bool
onAdd()
Called when this object is added to the scene.
renderScene(const RectI & updateRect)
setNodeDepth(F32 depth)
setNodeNormal(const VectorF & normal)
setNodePosition(const Point3F & pos)
setNodeWidth(F32 width)
setSelectedNode(S32 node)
setSelectedRiver(River * river)
Public Static Functions
Protected Functions
_drawRiverControlNodes(River * river, const ColorI & color)
_drawRiverSpline(River * river, const ColorI & color)
_prepRenderImage(SceneManager * sceneGraph, const SceneRenderState * sceneState)
_process3DMouseDown(const Gui3DMouseEvent & event)
_renderSelectedRiver(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * matInst)
submitUndo(const UTF8 * name)
Detailed Description
Private Types
typedef EditTSCtrl Parent
Public Friends
Public Attributes
String mAddNodeMode
String mAddRiverMode
String mInsertPointMode
String mMovePointMode
String mRemovePointMode
String mRotatePointMode
String mScalePointMode
String mSelectRiverMode
Protected Attributes
U32 mAddNodeIdx
F32 mDefaultDepth
VectorF mDefaultNormal
F32 mDefaultWidth
S32 mHoverNode
ColorI mHoverNodeColor
SimObjectPtr< River > mHoverRiver
ColorI mHoverSplineColor
S32 mInsertIdx
bool mIsDirty
Gui3DMouseEvent mLastMouseEvent
String mMode
Point2I mNodeHalfSize
ColorI mNodeSphereFillColor
ColorI mNodeSphereLineColor
F32 mNodeSphereRadius
SimSet * mRiverSet
bool mSavedDrag
ColorI mSelectedSplineColor
S32 mSelNode
SimObjectPtr< River > mSelRiver
Point2I mStartDragMousePoint
Point3F mStartDragNodePos
F32 mStartHeight
F32 mStartWidth
Point3F mStartWorld
S32 mStartX
GFXStateBlockRef mZDisableSB
GFXStateBlockRef mZEnableSB
Public Functions
GuiRiverEditorCtrl()
~GuiRiverEditorCtrl()
DECLARE_CONOBJECT(GuiRiverEditorCtrl )
deleteSelectedNode()
deleteSelectedRiver(bool undoAble)
get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & event_)
Reimplemented from: EditTSCtrl
getMode()
getNodeDepth()
getNodeNormal()
getNodePosition()
getNodeWidth()
getSelectedRiver()
getStaticPos(const Gui3DMouseEvent & event, Point3F & tpos)
on3DMouseDown(const Gui3DMouseEvent & event)
Reimplemented from: EditTSCtrl
on3DMouseDragged(const Gui3DMouseEvent & event)
Reimplemented from: EditTSCtrl
on3DMouseEnter(const Gui3DMouseEvent & event)
Reimplemented from: EditTSCtrl
on3DMouseLeave(const Gui3DMouseEvent & event)
Reimplemented from: EditTSCtrl
on3DMouseMove(const Gui3DMouseEvent & event)
Reimplemented from: EditTSCtrl
on3DMouseUp(const Gui3DMouseEvent & event)
Reimplemented from: EditTSCtrl
on3DRightMouseDown(const Gui3DMouseEvent & event)
Reimplemented from: EditTSCtrl
on3DRightMouseUp(const Gui3DMouseEvent & event)
Reimplemented from: EditTSCtrl
onAdd()
Reimplemented from: GuiControl
onKeyDown(const GuiEvent & event)
Reimplemented from: GuiControl
onRender(Point2I offset, const RectI & updateRect)
Reimplemented from: EditTSCtrl
onSleep()
Reimplemented from: GuiTSCtrl
renderScene(const RectI & updateRect)
Reimplemented from: EditTSCtrl
setMode(String mode, bool sourceShortcut)
setNodeDepth(F32 depth)
setNodeNormal(const VectorF & normal)
setNodePosition(const Point3F & pos)
setNodeWidth(F32 width)
setSelectedNode(S32 node)
setSelectedRiver(River * river)
updateGuiInfo()
Reimplemented from: EditTSCtrl
Public Static Functions
initPersistFields()
Protected Functions
_drawRiverControlNodes(River * river, const ColorI & color)
_drawRiverSpline(River * river, const ColorI & color)
_prepRenderImage(SceneManager * sceneGraph, const SceneRenderState * sceneState)
_process3DMouseDown(const Gui3DMouseEvent & event)
_renderSelectedRiver(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * matInst)
submitUndo(const UTF8 * name)