![]() |
NDEVR
API Documentation
|
A Qt compatible AbstractTableModel for showing properties around a series of Geometry Vertex objects. More...
Public Member Functions | |
| QTVertexManagerView (const DynamicPointer< QTDesignObject > &root, QObject *parent=nullptr) | |
| Constructs a vertex manager view targeting a specific design object. | |
| QTVertexManagerView (QObject *parent=nullptr) | |
| Constructs an empty vertex manager view. | |
| void | autoPopulateColumns () |
| Automatically populates column parameters based on the target geometry. | |
| void | contentsChanged () |
| Emitted when vertex data changes. | |
| void | displayLineworkEditor (uint04 vertex_index, PopupInfo info) |
| Displays a linework editor dialog for a specific vertex. | |
| bool | isEditable () const |
| Checks whether the table is currently editable. | |
| bool | isSpecialCallbackIndex (const QModelIndex &index) const |
| Checks whether the given index corresponds to a special callback column. | |
| Model | model () const |
| Retrieves the model associated with the current target. | |
| void | onClicked (const QModelIndex &index, QRect rect) |
| Handles a click on a table cell, potentially opening an editor. | |
| void | onHovered (const QModelIndex &index, QRect rect) |
| Handles a hover event on a table cell. | |
| void | setEditable (bool editable) |
| Enables or disables editing of vertex values. | |
| void | setParameters (const Buffer< DesignParameter > ¶ms, bool enable_edit, bool enable_primitive_edit) |
| Sets the design parameters displayed as columns in the table. | |
| void | setParametersToGlobalLinework () |
| Configures the view to show global linework parameters. | |
| void | setParametersToGlobalLocations () |
| Configures the view to show global location parameters. | |
| void | setParametersToLocalLocations () |
| Configures the view to show local location parameters. | |
| void | setTarget (const DynamicPointer< QTDesignObject > &root) |
| Sets the target design object whose vertices are displayed. | |
| void | setUseGlobalTransform (bool toggle) |
| Sets whether to use global transforms when displaying vertex positions. | |
| DynamicPointer< QTDesignObject > | target () const |
| Retrieves the current target design object. | |
Protected Attributes | |
| bool | m_has_primitive_edit_column = false |
| Whether a primitive edit button column is shown. | |
| bool | m_has_vertex_edit_column = false |
| Whether a vertex edit button column is shown. | |
| bool | m_is_editable = false |
| Whether the table allows editing. | |
| bool | m_is_global = false |
| Whether to use global transforms. | |
| bool | m_is_linework = false |
| Whether the geometry is linework type. | |
| uint04 | m_num_of_decimal |
| Number of decimal places for display. | |
| Buffer< DesignParameterAccumulator > | m_properties |
| The design parameters used as table columns. | |
| DynamicPointer< QTDesignObject > | m_root |
| The target design object. | |
| UUID | m_vertex_highlight_id = Constant<UUID>::Invalid |
| UUID of the highlighted vertex decoration. | |
A Qt compatible AbstractTableModel for showing properties around a series of Geometry Vertex objects.
Definition at line 68 of file QTVertexManagerView.h.
| QTVertexManagerView::QTVertexManagerView | ( | QObject * | parent = nullptr | ) |
Constructs an empty vertex manager view.
| [in] | parent | The parent QObject. |
Referenced by QTVertexManagerView().
| QTVertexManagerView::QTVertexManagerView | ( | const DynamicPointer< QTDesignObject > & | root, |
| QObject * | parent = nullptr ) |
Constructs a vertex manager view targeting a specific design object.
| [in] | root | The design object whose vertices to display. |
| [in] | parent | The parent QObject. |
References QTVertexManagerView().
Displays a linework editor dialog for a specific vertex.
| [in] | vertex_index | The index of the vertex to edit. |
| [in] | info | The popup positioning information. |
|
inline |
Checks whether the table is currently editable.
Definition at line 160 of file QTVertexManagerView.h.
References m_is_editable.
| bool QTVertexManagerView::isSpecialCallbackIndex | ( | const QModelIndex & | index | ) | const |
Checks whether the given index corresponds to a special callback column.
| [in] | index | The model index to check. |
| Model QTVertexManagerView::model | ( | ) | const |
Retrieves the model associated with the current target.
| void QTVertexManagerView::onClicked | ( | const QModelIndex & | index, |
| QRect | rect ) |
Handles a click on a table cell, potentially opening an editor.
| [in] | index | The clicked model index. |
| [in] | rect | The bounding rectangle of the cell. |
| void QTVertexManagerView::onHovered | ( | const QModelIndex & | index, |
| QRect | rect ) |
Handles a hover event on a table cell.
| [in] | index | The hovered model index. |
| [in] | rect | The bounding rectangle of the cell. |
| void QTVertexManagerView::setEditable | ( | bool | editable | ) |
Enables or disables editing of vertex values.
| [in] | editable | Whether editing is allowed. |
| void QTVertexManagerView::setParameters | ( | const Buffer< DesignParameter > & | params, |
| bool | enable_edit, | ||
| bool | enable_primitive_edit ) |
Sets the design parameters displayed as columns in the table.
| [in] | params | The parameters to display. |
| [in] | enable_edit | Whether vertex editing is enabled. |
| [in] | enable_primitive_edit | Whether primitive editing is enabled. |
| void QTVertexManagerView::setTarget | ( | const DynamicPointer< QTDesignObject > & | root | ) |
Sets the target design object whose vertices are displayed.
| [in] | root | The design object to target. |
|
inline |
Sets whether to use global transforms when displaying vertex positions.
| [in] | toggle | True to use global transforms, false for local. |
Definition at line 106 of file QTVertexManagerView.h.
References m_is_global.
| DynamicPointer< QTDesignObject > QTVertexManagerView::target | ( | ) | const |
Retrieves the current target design object.