VPathEditor

Engine/source/Verve/VPath/VPathEditor.h

More...

Classes:

Public Types

enum
EditMode {
  k_Gizmo 
  k_AddNode 
  k_DeleteNode 
}
enum
RenderType {
  k_RenderSegments 
  k_RenderNodes 
}

Private Types

Parent 

Public Functions

deleteNode(const S32 & pNodeIndex)
bool
getPointOnBezierPath(VPath * pPath, const Gui3DMouseEvent & pEvent, S32 & pNode, MatrixF & pTransform)
bool
getPointOnLinearPath(VPath * pPath, const Gui3DMouseEvent & pEvent, S32 & pNode, MatrixF & pTransform)
bool
getPointOnPath(VPath * pPath, const Gui3DMouseEvent & pEvent, S32 & pNode, MatrixF & pTransform)
bool

Called when this object is added to the scene.

bool

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

renderBezierPath(VPath * pPath, const ColorI & pColor)
renderLinearPath(VPath * pPath, const ColorI & pColor)
renderPath(const RenderType & pRenderType, VPath * pPath, const ColorI & pColor)
renderScene(const RectI & pUpdateRect)
setNodePosition(const S32 & pNodeIndex, const Point3F & pPosition)
setNodeRotation(const S32 & pNodeIndex, const QuatF & pRotation)
setNodeWeight(const S32 & pNodeIndex, const F32 & pWeight)
updateSelection(VPath * pPathObject, const S32 & pNodeIndex)

Public Static Functions

Detailed Description

Public Types

EditMode

Enumerator

k_Gizmo
k_AddNode
k_DeleteNode
RenderType

Enumerator

k_RenderSegments
k_RenderNodes

Private Types

typedef EditTSCtrl Parent 

Public Attributes

EditMode mEditMode 
bool mEditWeight 
S32 mEditWeightHandle 
bool mIsDirty 
NodeEditAction mNodeEdit 
PathEditAction mPathEdit 
Selection mSelection 
GFXStateBlockRef mStateBlock 

Public Functions

VPathEditor(void )

addNode(const Gui3DMouseEvent & pEvent)

DECLARE_CONOBJECT(VPathEditor )

deleteNode(const S32 & pNodeIndex)

getClientPath(VPath * pPath)

getPointOnBezierPath(VPath * pPath, const Gui3DMouseEvent & pEvent, S32 & pNode, MatrixF & pTransform)

getPointOnLinearPath(VPath * pPath, const Gui3DMouseEvent & pEvent, S32 & pNode, MatrixF & pTransform)

getPointOnPath(VPath * pPath, const Gui3DMouseEvent & pEvent, S32 & pNode, MatrixF & pTransform)

isEditingWeight(const Gui3DMouseEvent & pEvent)

isEditingWeight(void )

isValidSelection(void )

on3DMouseDown(const Gui3DMouseEvent & pEvent)

Reimplemented from: EditTSCtrl

on3DMouseDragged(const Gui3DMouseEvent & pEvent)

Reimplemented from: EditTSCtrl

on3DMouseMove(const Gui3DMouseEvent & pEvent)

Reimplemented from: EditTSCtrl

on3DMouseUp(const Gui3DMouseEvent & pEvent)

Reimplemented from: EditTSCtrl

onAdd(void )

Reimplemented from: EditTSCtrl

onWake(void )

Reimplemented from: GuiTSCtrl

popNodeEdit(void )

popPathEdit(void )

pushNodeEdit(void )

pushPathEdit(void )

renderBezierPath(VPath * pPath, const ColorI & pColor)

renderLinearPath(VPath * pPath, const ColorI & pColor)

renderPath(const RenderType & pRenderType, VPath * pPath, const ColorI & pColor)

renderPaths(const RenderType & pRenderType)

renderScene(const RectI & pUpdateRect)

Reimplemented from: EditTSCtrl

setNodeOrientationMode(const S32 & pNodeIndex, const VPathNode::eOrientationType & pType)

setNodeOrientationMode(const S32 & pNodeIndex, const VPathNode::eOrientationType & pType, const Point3F & pPoint)

setNodePosition(const S32 & pNodeIndex, const Point3F & pPosition)

setNodeRotation(const S32 & pNodeIndex, const QuatF & pRotation)

setNodeWeight(const S32 & pNodeIndex, const F32 & pWeight)

setPathPosition(const Point3F & pPosition)

setPathRotation(const QuatF & pRotation)

setPathScale(const VectorF & pScale)

setPathTransform(const MatrixF & pTransform)

setStateBlock(void )

setWorldEditorDirty(void )

updateSelection(const Gui3DMouseEvent & pEvent)

updateSelection(void )

updateSelection(VPath * pPathObject, const S32 & pNodeIndex)

updateWeight(const Gui3DMouseEvent & pEvent)

Public Static Functions

initPersistFields(void )