GuiMeshRoadEditorCtrl
Engine/source/environment/editors/guiMeshRoadEditorCtrl.h
Protected Types
enum
_Anonymous_ { Top = 0 Bottom = 1 Side = 2 SurfaceCount = 3 }
Private Types
Parent
Public Friends
Public Attributes
Protected Attributes
bool
bool
bool
bool
bool
Public Functions
deleteSelectedRoad(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)
setSelectedRoad(MeshRoad * road)
Public Static Functions
Protected Functions
_drawControlNodes(MeshRoad * road, const ColorI & color)
_drawSpline(MeshRoad * road, const ColorI & color)
_getProfileNodeAtScreenPos(MeshRoadProfile * pProfile, const Point2I & posi)
submitUndo(const UTF8 * name)
Detailed Description
Protected Types
@76
Enumerator
- Top = 0
- Bottom = 1
- Side = 2
- SurfaceCount = 3
Private Types
typedef EditTSCtrl Parent
Public Friends
Public Attributes
String mAddMeshRoadMode
String mAddNodeMode
AssetPtr< MaterialAsset > mBottomMaterialAsset
StringTableEntry mBottomMaterialAssetId
String mInsertPointMode
String mMovePointMode
String mRemovePointMode
String mRotatePointMode
String mScalePointMode
String mSelectMeshRoadMode
AssetPtr< MaterialAsset > mSideMaterialAsset
StringTableEntry mSideMaterialAssetId
AssetPtr< MaterialAsset > mTopMaterialAsset
StringTableEntry mTopMaterialAssetId
Protected Attributes
U32 mAddNodeIdx
F32 mDefaultDepth
VectorF mDefaultNormal
F32 mDefaultWidth
bool mDeselectProfileNode
bool mHasCopied
S32 mHoverNode
ColorI mHoverNodeColor
SimObjectPtr< MeshRoad > mHoverRoad
ColorI mHoverSplineColor
bool mIsDirty
String mMode
Point2I mNodeHalfSize
ColorI mProfileColor
S32 mProfileNode
SimSet * mRoadSet
bool mSavedDrag
bool mSavedProfileDrag
ColorI mSelectedSplineColor
S32 mSelNode
Vector< U32 > mSelProfNodeList
SimObjectPtr< MeshRoad > mSelRoad
GFXStateBlockRef mZDisableSB
GFXStateBlockRef mZEnableSB
Public Functions
GuiMeshRoadEditorCtrl()
~GuiMeshRoadEditorCtrl()
DECLARE_CONOBJECT(GuiMeshRoadEditorCtrl )
deleteSelectedNode()
deleteSelectedRoad(bool undoAble)
get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & event_)
Reimplemented from: EditTSCtrl
getMode()
getNodeDepth()
getNodeNormal()
getNodePosition()
getNodeWidth()
getSelectedRoad()
getStaticPos(const Gui3DMouseEvent & event, Point3F & tpos)
matchTerrainToRoad()
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
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)
setSelectedRoad(MeshRoad * road)
updateGuiInfo()
Reimplemented from: EditTSCtrl
Public Static Functions
initPersistFields()
Protected Functions
_drawControlNodes(MeshRoad * road, const ColorI & color)
_drawSpline(MeshRoad * road, const ColorI & color)
_getNodeAtScreenPos(const MeshRoad * pRoad, const Point2I & posi)
_getProfileNodeAtScreenPos(MeshRoadProfile * pProfile, const Point2I & posi)
submitUndo(const UTF8 * name)