ezEngine Release 26.9
Loading...
Searching...
No Matches
ezBoneManipulatorAdapter Class Reference

Makes an array of ezExposedBone properties editable in the viewport. More...

#include <BoneManipulatorAdapter.h>

Inheritance diagram for ezBoneManipulatorAdapter:

Classes

struct  ElementGizmo
 

Protected Member Functions

virtual void Finalize () override
 Called once after SetManipulator(). Use this for one-time gizmo setup that depends on m_pObject being valid.
 
void MigrateSelection ()
 
virtual void Update () override
 Called when a relevant property on m_pObject changes, after a transaction finishes, or on visibility changes.
 
void RotateGizmoEventHandler (const ezGizmoEvent &e)
 
void ClickGizmoEventHandler (const ezGizmoEvent &e)
 
virtual void UpdateGizmoTransform () override
 Called every frame before the viewport redraws. Update gizmo world-space transforms here.
 
void RetrieveBones ()
 
void ConfigureGizmos ()
 
void SetTransform (ezUInt32 uiBone, const ezTransform &value)
 
ezMat4 ComputeFullTransform (ezUInt32 uiBone) const
 
ezMat4 ComputeParentTransform (ezUInt32 uiBone) const
 
- Protected Member Functions inherited from ezManipulatorAdapter
virtual ezTransform GetOffsetTransform () const
 
virtual ezTransform GetObjectTransform () const
 
ezObjectAccessorBaseGetObjectAccessor () const
 
const ezAbstractPropertyGetProperty (const char *szProperty) const
 
void BeginTemporaryInteraction ()
 Starts a temporary command sequence for live drag interaction. Must be paired with EndTemporaryInteraction() or CancelTemporayInteraction().
 
void EndTemporaryInteraction ()
 
void CancelTemporayInteraction ()
 
void ChangeProperties (const char *szProperty1, ezVariant value1, const char *szProperty2=nullptr, ezVariant value2=ezVariant(), const char *szProperty3=nullptr, ezVariant value3=ezVariant(), const char *szProperty4=nullptr, ezVariant value4=ezVariant(), const char *szProperty5=nullptr, ezVariant value5=ezVariant(), const char *szProperty6=nullptr, ezVariant value6=ezVariant())
 Convenience wrapper that starts a transaction, sets up to six properties on m_pObject, and finishes the transaction.
 
void ClampProperty (const char *szProperty, ezVariant &value) const
 

Protected Attributes

ezVariantArray m_Keys
 
ezDynamicArray< ezExposedBonem_Bones
 
ezDeque< ElementGizmom_Gizmos
 
ezTransform m_RootTransform = ezTransform::MakeIdentity()
 
- Protected Attributes inherited from ezManipulatorAdapter
bool m_bManipulatorIsVisible = false
 
const ezManipulatorAttributem_pManipulatorAttr = nullptr
 
const ezDocumentObjectm_pObject = nullptr
 The document object this adapter operates on. Valid for the lifetime of the adapter.
 

Static Protected Attributes

static ezString s_sLastSelectedBone
 

Additional Inherited Members

- Public Member Functions inherited from ezManipulatorAdapter
void SetManipulator (const ezManipulatorAttribute *pAttribute, const ezDocumentObject *pObject)
 Connects this adapter to the given attribute and document object, then calls Finalize() and Update().
 
virtual void QueryGridSettings (ezGridSettingsMsgToEngine &out_gridSettings)
 

Detailed Description

Makes an array of ezExposedBone properties editable in the viewport.

Enabled by attaching the ezBoneManipulatorAttribute.

Member Function Documentation

◆ Finalize()

void ezBoneManipulatorAdapter::Finalize ( )
overrideprotectedvirtual

Called once after SetManipulator(). Use this for one-time gizmo setup that depends on m_pObject being valid.

Implements ezManipulatorAdapter.

◆ Update()

void ezBoneManipulatorAdapter::Update ( )
overrideprotectedvirtual

Called when a relevant property on m_pObject changes, after a transaction finishes, or on visibility changes.

Implements ezManipulatorAdapter.

◆ UpdateGizmoTransform()

void ezBoneManipulatorAdapter::UpdateGizmoTransform ( )
overrideprotectedvirtual

Called every frame before the viewport redraws. Update gizmo world-space transforms here.

Implements ezManipulatorAdapter.


The documentation for this class was generated from the following files: