![]() |
NDEVR
API Documentation
|
A factory for creating custom buttons that appear when objects are selected. More...
Public Member Functions | |
| virtual SelectionButtonFactory * | clone ()=0 |
| Creates a copy of this factory. | |
| virtual Buffer< Button * > | getButtons (DesignWidget::PropertiesStruct props, const Buffer< DynamicPointer< QTDesignObject > > &selection)=0 |
| Creates buttons for the given selection and properties. | |
| virtual UUID | id () const =0 |
| Retrieves the unique identifier for this factory. | |
| virtual void | updateButtonStates (DesignWidget::PropertiesStruct props, const Buffer< DynamicPointer< QTDesignObject > > &selection)=0 |
| Updates the enabled/checked states of buttons for the current selection. | |
Static Public Member Functions | |
| static Buffer< SelectionButtonFactory * > | DefaultFactories () |
| Retrieves all registered default selection button factories. | |
| static void | RegisterDefault (SelectionButtonFactory *factory) |
| Registers a default selection button factory. | |
Static Protected Attributes | |
| static Dictionary< UUID, SelectionButtonFactory * > | s_default_factories |
| Registered default factories. | |
A factory for creating custom buttons that appear when objects are selected.
Definition at line 58 of file SelectionWidget.h.
|
pure virtual |
Creates a copy of this factory.
Implemented in SurfaceSelectionButtonFactory.
|
static |
Retrieves all registered default selection button factories.
|
pure virtual |
Creates buttons for the given selection and properties.
| [in] | props | The properties of the selected design object. |
| [in] | selection | The currently selected design objects. |
Implemented in SurfaceSelectionButtonFactory.
|
pure virtual |
Retrieves the unique identifier for this factory.
Implemented in SurfaceSelectionButtonFactory.
|
static |
Registers a default selection button factory.
| [in] | factory | The factory to register. |
|
pure virtual |
Updates the enabled/checked states of buttons for the current selection.
| [in] | props | The properties of the selected design object. |
| [in] | selection | The currently selected design objects. |
Implemented in SurfaceSelectionButtonFactory.