GuiRoadEditorCtrl
Engine/source/environment/editors/guiRoadEditorCtrl.h
Private Types
Parent
Public Friends
class
Public Attributes
Protected Attributes
bool
bool
Public Functions
deleteSelectedRoad(bool undoAble)
get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & event_)
bool
getTerrainPos(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)
setNodePosition(const Point3F & pos)
setNodeWidth(F32 width)
setSelectedNode(S32 node)
setSelectedRoad(DecalRoad * road)
Public Static Functions
Protected Functions
_drawRoadControlNodes(DecalRoad * road, const ColorI & color)
_drawRoadSpline(DecalRoad * road, const ColorI & color)
submitUndo(const UTF8 * name)
Detailed Description
Private Types
typedef EditTSCtrl Parent
Public Friends
Public Attributes
String mAddNodeMode
String mAddRoadMode
String mInsertPointMode
AssetPtr< MaterialAsset > mMaterialAsset
StringTableEntry mMaterialAssetId
String mMovePointMode
String mRemovePointMode
String mScalePointMode
String mSelectRoadMode
Protected Attributes
U32 mAddNodeIdx
F32 mDefaultWidth
S32 mHoverNode
ColorI mHoverNodeColor
SimObjectPtr< DecalRoad > mHoverRoad
ColorI mHoverSplineColor
S32 mInsertIdx
bool mIsDirty
String mMode
Point2I mNodeHalfSize
SimSet * mRoadSet
bool mSavedDrag
ColorI mSelectedSplineColor
S32 mSelNode
SimObjectPtr< DecalRoad > mSelRoad
F32 mStartWidth
Point3F mStartWorld
S32 mStartX
GFXStateBlockRef mZDisableSB
Public Functions
GuiRoadEditorCtrl()
~GuiRoadEditorCtrl()
DECLARE_CONOBJECT(GuiRoadEditorCtrl )
deleteSelectedNode()
deleteSelectedRoad(bool undoAble)
get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & event_)
Reimplemented from: EditTSCtrl
getMode()
getNodePosition()
getNodeWidth()
getSelectedNode()
getSelectedRoad()
getTerrainPos(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
renderGui(Point2I offset, const RectI & updateRect)
Reimplemented from: GuiTSCtrl
renderScene(const RectI & updateRect)
Reimplemented from: EditTSCtrl
setMode(String mode, bool sourceShortcut)
setNodePosition(const Point3F & pos)
setNodeWidth(F32 width)
setSelectedNode(S32 node)
setSelectedRoad(DecalRoad * road)
setTextureFile(StringTableEntry file)
updateGuiInfo()
Reimplemented from: EditTSCtrl
Public Static Functions
initPersistFields()
Protected Functions
_drawRoadControlNodes(DecalRoad * road, const ColorI & color)
_drawRoadSpline(DecalRoad * road, const ColorI & color)
submitUndo(const UTF8 * name)