Torque3D Documentation / _generateds / GuiRoadEditorCtrl

GuiRoadEditorCtrl

Engine/source/environment/editors/guiRoadEditorCtrl.h

More...

Private Types

Parent 

Public Friends

Public Functions

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

Called when this object is added to the scene.

bool

Happens when a key is depressed.

onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

Called when this object is asked to sleep.

renderGui(Point2I offset, const RectI & updateRect)

Subclasses can override this to perform 2D rendering.

renderScene(const RectI & updateRect)
setMode(String mode, bool sourceShortcut)

Public Static Functions

Protected Functions

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)