GuiConvexEditorCtrl
Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.h
Classes:
Public User Defined
UndoType { ModifyShape = 0 CreateShape DeleteShape HollowShape }
Interface with Tools.
submitUndo(UndoType type, ConvexShape * shape)
submitUndo(UndoType type, const Vector< ConvexShape * > & shape)
Private Types
Parent
Public Friends
Public Attributes
Protected Attributes
The highlighted ConvexShape ( mouse over ).
The selected ConvexShape.
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
Public Functions
cleanMatrix(MatrixF & mat)
createConvexShapeFrom(SceneObject * polyObject)
createPolyhedralObject(const char * className, SceneObject * geometryProvider)
drawFacePlane(ConvexShape * shape, S32 faceId)
get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & event_)
getEdgeByPoints(ConvexShape * shape, S32 faceId, S32 pId0, S32 pId1)
bool
getEdgesTouchingPoint(ConvexShape * shape, S32 faceId, S32 pId, Vector< U32 > & edgeIdxList, S32 excludeEdge)
float
bool
const char *
bool
float
bool
bool
bool
bool
hollowShape(ConvexShape * shape, F32 thickness)
bool
isShapeValid(ConvexShape * shape)
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.
bool
onWake()
Called when this object is asked to wake up returns true if it's actually awake at the end.
recenterShape(ConvexShape * shape)
renderScene(const RectI & updateRect)
scaleFace(ConvexShape * shape, S32 faceId, Point3F scale)
bool
setActiveTool(ConvexEditorTool * tool)
setGridSnapSize(float gridSize)
setPivotPos(ConvexShape * shape, S32 faceId, const Gui3DMouseEvent & event)
setSelectedFaceHorzFlip(bool flipped)
setSelectedFaceMaterial(const char * materialName)
setSelectedFaceUVOffset(Point2F offset)
setSelectedFaceUVScale(Point2F offset)
setSelectedFaceVertFlip(bool flipped)
setSelectedFaceZRot(float degrees)
setSelection(ConvexShape * shape, S32 faceId)
setupShape(ConvexShape * shape)
setVisible(bool value)
Sets the visibility of the control.
translateFace(ConvexShape * shape, S32 faceId, const Point3F & displace)
Set flags or other Gizmo state appropriate for the current situation.
updateModifiedFace(ConvexShape * shape, S32 faceId)
updateShape(ConvexShape * shape, S32 offsetFace)
Public Static Functions
synchClientObject(const ConvexShape * serverConvex)
Protected Functions
bool
_cursorCast(const Gui3DMouseEvent & event, ConvexShape ** hitShape, S32 * hitFace)
_prepRenderImage(SceneManager * sceneGraph, const SceneRenderState * sceneState)
_renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * matInst)
Protected Static Functions
bool
_cursorCastCallback(RayInfo * ri)
Detailed Description
Public User Defined
UndoType
Enumerator
- ModifyShape = 0
- CreateShape
- DeleteShape
- HollowShape
getCameraMat()
Interface with Tools.
submitUndo(UndoType type, ConvexShape * shape)
submitUndo(UndoType type, const Vector< ConvexShape * > & shape)
Private Types
typedef EditTSCtrl Parent
Public Friends
Public Attributes
StringTableEntry mMaterialName
Protected Attributes
ConvexEditorTool * mActiveTool
SimObjectPtr< ConvexShape > mConvexHL
The highlighted ConvexShape ( mouse over ).
SimObjectPtr< ConvexShape > mConvexSEL
The selected ConvexShape.
ConvexEditorCreateTool * mCreateTool
bool mCtrlDown
bool mDragging
S32 mFaceHL
MatrixF mFaceSavedXfm
S32 mFaceSEL
Point3F mGizmoMatOffset
bool mGridSnap
bool mHasCopied
bool mHasGeometry
bool mIsDirty
RayInfo mLastRayInfo
UndoAction * mLastUndo
Vector< MatrixF > mLastValidShape
bool mMouseDown
Gui3DMouseEvent mMouseDownEvent
Point3F mPivotPos
Vector< ConvexShapeProxy > mProxyObjects
ConvexShape::Geometry mSavedGeometry
U32 mSavedGizmoFlags
Point3F mSavedPivotPos
Vector< MatrixF > mSavedSurfaces
bool mSavedUndo
Vector< SimObjectPtr< ConvexShape > > mSelectedBrushes
Vector< selectedFace > mSelectedFaces
Vector< selectedVert > mSelectedVerts
bool mSettingPivot
UndoManager * mUndoManager
bool mUsingPivot
Public Functions
GuiConvexEditorCtrl()
~GuiConvexEditorCtrl()
cleanMatrix(MatrixF & mat)
clearSelection()
createConvexShapeFrom(SceneObject * polyObject)
createPolyhedralObject(const char * className, SceneObject * geometryProvider)
DECLARE_CONOBJECT(GuiConvexEditorCtrl )
drawFacePlane(ConvexShape * shape, S32 faceId)
dropSelectionAtScreenCenter()
get3DCursor(GuiCursor *& cursor, bool & visible, const Gui3DMouseEvent & event_)
Reimplemented from: EditTSCtrl
getEdgeByPoints(ConvexShape * shape, S32 faceId, S32 pId0, S32 pId1)
getEdgesTouchingPoint(ConvexShape * shape, S32 faceId, S32 pId, Vector< U32 > & edgeIdxList, S32 excludeEdge)
getGridSnapSize()
getSelectedFaceHorzFlip()
getSelectedFaceMaterial()
getSelectedFaceUVOffset()
getSelectedFaceUVScale()
getSelectedFaceVertFlip()
getSelectedFaceZRot()
handleDelete()
handleDeselect()
handleEscape()
handleTab()
hasSelection()
hollowSelection()
hollowShape(ConvexShape * shape, F32 thickness)
isShapeValid(ConvexShape * shape)
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: EditTSCtrl
onKeyDown(const GuiEvent & event)
Reimplemented from: GuiControl
onKeyUp(const GuiEvent & event)
Reimplemented from: GuiControl
onRemove()
Reimplemented from: EditTSCtrl
onSleep()
Reimplemented from: GuiTSCtrl
onWake()
Reimplemented from: GuiTSCtrl
recenterSelection()
recenterShape(ConvexShape * shape)
renderScene(const RectI & updateRect)
Reimplemented from: EditTSCtrl
scaleFace(ConvexShape * shape, S32 faceId, Point3F scale)
setActiveTool(ConvexEditorTool * tool)
setGridSnapSize(float gridSize)
setPivotPos(ConvexShape * shape, S32 faceId, const Gui3DMouseEvent & event)
setSelectedFaceHorzFlip(bool flipped)
setSelectedFaceMaterial(const char * materialName)
setSelectedFaceUVOffset(Point2F offset)
setSelectedFaceUVScale(Point2F offset)
setSelectedFaceVertFlip(bool flipped)
setSelectedFaceZRot(float degrees)
setSelection(ConvexShape * shape, S32 faceId)
setupShape(ConvexShape * shape)
setVisible(bool value)
Reimplemented from: GuiControl
splitSelectedFace()
toggleGridSnapping()
translateFace(ConvexShape * shape, S32 faceId, const Point3F & displace)
updateGizmo()
Reimplemented from: EditTSCtrl
updateGizmoPos()
updateModifiedFace(ConvexShape * shape, S32 faceId)
updateShape()
updateShape(ConvexShape * shape, S32 offsetFace)
Public Static Functions
initPersistFields()
synchClientObject(const ConvexShape * serverConvex)
Protected Functions
_cursorCast(const Gui3DMouseEvent & event, ConvexShape ** hitShape, S32 * hitFace)
_prepRenderImage(SceneManager * sceneGraph, const SceneRenderState * sceneState)
_renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * matInst)