![]() |
NDEVR
API Documentation
|
A pointer to a DesignObject within a QTModelManager that receives and emits update signals based on the state of the object. More...
Public Member Functions | |
| void | deletedSignal (UUID id) |
| Emitted when this object is deleted. | |
| void | deleteModel (UUID id) |
| Emits the deleted signal if this object matches the given UUID. | |
| void | deleteObject () |
| Deletes this object from the model manager. | |
| void | descendentUpdatedSignal (UUID id) |
| Emitted when a descendent of this object is updated. | |
| TranslatedString | displayName () const |
| Gets the user-facing display name of this object. | |
| void | exportToFile () |
| Exports this object to an external file format. | |
| template<auto t_property> | |
| decltype(auto) | get () const |
| Gets a compile-time property value from the underlying design object. | |
| template<class t_type, class t_property_type> | |
| decltype(auto) | get (t_property_type property) const |
| Gets a typed property value from the underlying design object. | |
| template<class t_type> | |
| t_type | getAs () const |
| Converts this design object to the specified type. | |
| DesignSelection | getAsSelection () const |
| Gets this object as a DesignSelection. | |
| UUID | id () const |
| Gets the UUID of this design object. | |
| template<class t_type> | |
| bool | is () const |
| Checks whether this object is of the specified design object type. | |
| QTModelManager * | manager () const |
| Gets the model manager that owns this object. | |
| void | postCommand (const DynamicPointer< DesignCommand > &command) |
| Posts a design command to the command queue for deferred execution. | |
| template<class t_design_command_type> | |
| void | postCommand (const DynamicPointer< t_design_command_type > &command) |
| Posts a typed design command to the command queue for deferred execution. | |
| void | postCommand (std::initializer_list< DynamicPointer< DesignCommand > > l) |
| Posts a group of design commands to the command queue for deferred execution. | |
| void | runCommand (const DynamicPointer< DesignCommand > &command) |
| Runs a design command immediately. | |
| template<class t_design_command_type> | |
| void | runCommand (const DynamicPointer< t_design_command_type > &command) |
| Runs a typed design command immediately. | |
| void | runCommand (std::initializer_list< DynamicPointer< DesignCommand > > l) |
| Runs a group of design commands immediately. | |
| void | selectedSignal (UUID id) |
| Emitted when this object is selected. | |
| void | setFocus (bool focus) |
| Sets the UI focus to this object. | |
| void | setSelected (bool is_selected) |
| Sets this object as selected in the model manager. | |
| void | showProperties (const PopupInfo &location=PopupInfo()) |
| Opens the properties dialog for this object. | |
| void | update () |
| Updates the design modified timestamp for this object. | |
| void | updateDescendent () |
| Emits the descendent updated signal for this object. | |
| void | updatedSignal (UUID id) |
| Emitted when this object is updated. | |
| void | updateObject () |
| Emits the updated signal for this object. | |
| void | updateSelected (UUID id, bool is_selected) |
| Emits the selected signal if this object matches the given UUID and is selected. | |
| UUID | uuid () const |
| Gets the UUID of this design object. | |
| void | zoomToModel () const |
| Zooms the viewport camera to focus on this model. | |
Protected Member Functions | |
| QTDesignObject (const QTDesignObject &object) | |
| Copy constructs a QTDesignObject from another. | |
| QTDesignObject (const UUID &object, QTModelManager *manager) | |
| Constructs a QTDesignObject wrapping the given UUID and manager. | |
Protected Attributes | |
| UUID | m_id |
| The UUID of the wrapped design object. | |
| QTModelManager * | m_manager |
| The model manager owning this object. | |
A pointer to a DesignObject within a QTModelManager that receives and emits update signals based on the state of the object.
Definition at line 97 of file QTDesignObject.h.
|
inlineprotected |
Constructs a QTDesignObject wrapping the given UUID and manager.
Definition at line 107 of file QTDesignObject.h.
References m_id, m_manager, and manager().
Referenced by QTDesignObject(), and exportToFile().
|
inlineprotected |
Copy constructs a QTDesignObject from another.
| [in] | object | The QTDesignObject to copy. |
Definition at line 117 of file QTDesignObject.h.
References QTDesignObject(), m_id, and m_manager.
|
inline |
Emits the deleted signal if this object matches the given UUID.
Definition at line 278 of file QTDesignObject.h.
References deletedSignal(), and uuid().
|
inline |
Gets the user-facing display name of this object.
Definition at line 181 of file QTDesignObject.h.
|
inline |
Gets a compile-time property value from the underlying design object.
Definition at line 173 of file QTDesignObject.h.
|
inline |
Gets a typed property value from the underlying design object.
| [in] | property | The property identifier to retrieve. |
Definition at line 164 of file QTDesignObject.h.
References m_id, and m_manager.
Referenced by displayName().
|
inline |
Converts this design object to the specified type.
Definition at line 151 of file QTDesignObject.h.
References m_id, and m_manager.
Referenced by displayName().
| DesignSelection QTDesignObject::getAsSelection | ( | ) | const |
Gets this object as a DesignSelection.
|
inline |
Gets the UUID of this design object.
Definition at line 242 of file QTDesignObject.h.
References m_id.
|
inline |
Checks whether this object is of the specified design object type.
Definition at line 133 of file QTDesignObject.h.
References IsValid(), m_id, and m_manager.
Referenced by displayName().
|
inline |
Gets the model manager that owns this object.
Definition at line 247 of file QTDesignObject.h.
References m_manager.
Referenced by QTDesignObject().
| void QTDesignObject::postCommand | ( | const DynamicPointer< DesignCommand > & | command | ) |
Posts a design command to the command queue for deferred execution.
| [in] | command | The command to post. |
|
inline |
Posts a typed design command to the command queue for deferred execution.
| [in] | command | The command to post. |
Definition at line 199 of file QTDesignObject.h.
References postCommand().
Referenced by postCommand(), and postCommand().
|
inline |
Posts a group of design commands to the command queue for deferred execution.
| [in] | l | The initializer list of commands to post. |
Definition at line 216 of file QTDesignObject.h.
References postCommand().
| void QTDesignObject::runCommand | ( | const DynamicPointer< DesignCommand > & | command | ) |
Runs a design command immediately.
| [in] | command | The command to run. |
|
inline |
Runs a typed design command immediately.
| [in] | command | The command to run. |
Definition at line 208 of file QTDesignObject.h.
References runCommand().
Referenced by runCommand(), and runCommand().
|
inline |
Runs a group of design commands immediately.
| [in] | l | The initializer list of commands to run. |
Definition at line 224 of file QTDesignObject.h.
References runCommand().
|
inline |
Sets the UI focus to this object.
| [in] | focus | Whether to set focus. |
Definition at line 308 of file QTDesignObject.h.
|
inline |
Sets this object as selected in the model manager.
| [in] | is_selected | Whether to select the object. |
Definition at line 317 of file QTDesignObject.h.
References is_selected, m_id, and m_manager.
Opens the properties dialog for this object.
| [in] | location | Popup positioning information for the dialog. |
|
inline |
Emits the selected signal if this object matches the given UUID and is selected.
| [in] | id | The UUID of the object being selected. |
| [in] | is_selected | Whether the object is selected. |
Definition at line 266 of file QTDesignObject.h.
References is_selected, selectedSignal(), and uuid().
|
inline |
Gets the UUID of this design object.
Definition at line 142 of file QTDesignObject.h.
References m_id.
Referenced by deleteModel(), deleteObject(), setFocus(), update(), updateDescendent(), updateObject(), updateSelected(), and zoomToModel().