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

#include <ManipulatorAdapterRegistry.h>

Public Member Functions

void QueryGridSettings (const ezDocument *pDocument, ezGridSettingsMsgToEngine &out_gridSettings)
 Collects grid settings from all active adapters for the given document.
 

Public Attributes

ezRttiMappedObjectFactory< ezManipulatorAdapterm_Factory
 

Detailed Description

Singleton that owns and manages ezManipulatorAdapter instances for all open documents.

Listens to ezManipulatorManager::m_Events. When the active manipulator changes, it tears down all existing adapters for that document and creates new ones via m_Factory, one per object in the selection. m_Factory maps the RTTI of an ezManipulatorAttribute subclass to the corresponding ezManipulatorAdapter subclass. Adapters must be registered there by the code that introduces them.

Adapters are heap-allocated and owned by this registry. They are deleted synchronously in ClearAdapters, which means an adapter must not call into code that reaches ClearAdapters on the same call stack (e.g. changing the document selection from within a gizmo event).

Member Data Documentation

◆ m_Factory

ezRttiMappedObjectFactory<ezManipulatorAdapter> ezManipulatorAdapterRegistry::m_Factory

Maps ezManipulatorAttribute RTTI types to their corresponding ezManipulatorAdapter factory functions. Register new adapter types here to make them available to the system.


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