Torque3D Documentation / _generateds / GuiConvexEditorCtrl

GuiConvexEditorCtrl

Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.h

More...

Classes:

Public User Defined

enum
UndoType {
  ModifyShape = 0
  CreateShape 
  DeleteShape 
  HollowShape 
}

Interface with Tools.

Private Types

Parent 

Public Friends

Public Functions

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)
bool
bool
bool
bool
hollowShape(ConvexShape * shape, F32 thickness)
bool
bool

Called when this object is added to the scene.

bool

Happens when a key is depressed.

bool

Happens when a key is released.

Called when this object is removed.

Called when this object is asked to sleep.

bool

Called when this object is asked to wake up returns true if it's actually awake at the end.

renderScene(const RectI & updateRect)
scaleFace(ConvexShape * shape, S32 faceId, Point3F scale)
setGridSnapSize(float gridSize)
setSelectedFaceMaterial(const char * materialName)
setSelectedFaceZRot(float degrees)
setSelection(ConvexShape * shape, S32 faceId)
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.

updateShape(ConvexShape * shape, S32 offsetFace)

Public Static Functions

Protected Functions

Protected Static Functions

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)

Protected Static Functions

_cursorCastCallback(RayInfo * ri)