NDEVR
API Documentation
SurfaceSelectionButtonFactory

A SelectionButtonFactory that creates surfacing action buttons in the selection context menu. More...

Inheritance diagram for SurfaceSelectionButtonFactory:
[legend]
Collaboration diagram for SurfaceSelectionButtonFactory:
[legend]

Public Member Functions

virtual SurfaceSelectionButtonFactoryclone () final override
 Creates a clone of this factory.
virtual Buffer< Button * > getButtons (DesignWidget::PropertiesStruct props, const Buffer< DynamicPointer< QTDesignObject > > &selection) final override
 Creates the surfacing buttons for the current selection.
virtual UUID id () const final override
 Returns the unique identifier for this factory.
virtual void updateButtonStates (DesignWidget::PropertiesStruct props, const Buffer< DynamicPointer< QTDesignObject > > &selection) final override
 Updates the enabled/visible states of surfacing buttons.

Protected Attributes

Buttonm_button = nullptr
 The surfacing action button.
Buffer< DynamicPointer< QTDesignObject > > m_selection
 The current design object selection.
GeometrySurfacingWidgetm_widget = nullptr
 The surfacing widget shown when button is clicked.

Additional Inherited Members

Static Public Member Functions inherited from SelectionButtonFactory
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 inherited from SelectionButtonFactory
static Dictionary< UUID, SelectionButtonFactory * > s_default_factories
 Registered default factories.

Detailed Description

A SelectionButtonFactory that creates surfacing action buttons in the selection context menu.


Definition at line 126 of file GeometrySurfacingWidget.h.

Member Function Documentation

◆ clone()

virtual SurfaceSelectionButtonFactory * SurfaceSelectionButtonFactory::clone ( )
finaloverridevirtual

Creates a clone of this factory.

Returns
A pointer to the cloned factory.

Implements SelectionButtonFactory.

References clone().

Referenced by clone().

◆ getButtons()

virtual Buffer< Button * > SurfaceSelectionButtonFactory::getButtons ( DesignWidget::PropertiesStruct props,
const Buffer< DynamicPointer< QTDesignObject > > & selection )
finaloverridevirtual

Creates the surfacing buttons for the current selection.

Parameters
[in]propsThe current property display settings.
[in]selectionThe currently selected design objects.
Returns
A buffer of created Button pointers.

Implements SelectionButtonFactory.

References getButtons().

Referenced by getButtons().

◆ id()

virtual UUID SurfaceSelectionButtonFactory::id ( ) const
finaloverridevirtual

Returns the unique identifier for this factory.

Returns
The factory UUID.

Implements SelectionButtonFactory.

◆ updateButtonStates()

virtual void SurfaceSelectionButtonFactory::updateButtonStates ( DesignWidget::PropertiesStruct props,
const Buffer< DynamicPointer< QTDesignObject > > & selection )
finaloverridevirtual

Updates the enabled/visible states of surfacing buttons.

Parameters
[in]propsThe current property display settings.
[in]selectionThe currently selected design objects.

Implements SelectionButtonFactory.

References updateButtonStates().

Referenced by updateButtonStates().


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