ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
cBaseObjectSelectionMixin

cQtWindow Base class for object mixins. More...

Inheritance diagram for cBaseObjectSelectionMixin:
[legend]

Public Member Functions

 cBaseObjectSelectionMixin ()
 Constructor.
 
QWidget * CreateView () override
 Creates the view with the XService. More...
 
tVoid ReleaseView () override
 Releases the view with the XService.
 
tResult InitScene () override
 Init the scene of this mixin. More...
 
tResult ProcessInput (adtf::streaming::flash::ISampleReader *pReader, const adtf::ucom::ant::iobject_ptr< const adtf::streaming::ant::ISample > &pSample) override
 Process input override. More...
 
tResult OnIdle () override
 Handle a an idle event. More...
 

Protected Member Functions

virtual void AttachItemsToWidget (QWidget *pWidget)
 Creates Qt widgets for displaying data. More...
 
virtual tResult UpdateWidgets (cBaseObjectScene *pScene, cBaseObject *pObj)
 Updates the Qt widgets based on the currently selected object. More...
 

Protected Attributes

std::unique_ptr< cImplementation > m_pImplementation
 D-Pointer implementation.
 

Detailed Description

cQtWindow Base class for object mixins.

These support selection (pick functionality).

Implement the cBaseObjectMixin::UpdateScene method to add data to your scene. To add additional widgets to display custom information overwrite the AttachItemsToWidget method. Call the base implementation at the beginning of your method and use pWidget->layout() to add your own widgets (optional). In your UpdateWidgets method call the base method and update your own widgets (Mind that the parameters can equal NULL, which means that no object is currently selected).

Definition at line 46 of file baseobjectselectionmixin.h.

Member Function Documentation

◆ AttachItemsToWidget()

virtual void AttachItemsToWidget ( QWidget *  pWidget)
protectedvirtual

Creates Qt widgets for displaying data.

Overwrite this and call the base to add your own widgets.

Parameters
pWidget[in] The base widget of this mixin.

◆ CreateView()

QWidget* CreateView ( )
override

Creates the view with the XService.

Returns
pointer to a qwidget

◆ InitScene()

tResult InitScene ( )
override

Init the scene of this mixin.

See adtf::disptb::mixinlib::IMixin for further reference.

Returns
standard result

◆ OnIdle()

tResult OnIdle ( )
override

Handle a an idle event.

See adtf::disptb::mixinlib::IMixin for further reference.

Returns
standard result

◆ ProcessInput()

tResult ProcessInput ( adtf::streaming::flash::ISampleReader *  pReader,
const adtf::ucom::ant::iobject_ptr< const adtf::streaming::ant::ISample > &  pSample 
)
override

Process input override.

Parameters
pReader[in] pointer to the sample reader
pSample[in] pointer to current sample
Returns
standard result

◆ UpdateWidgets()

virtual tResult UpdateWidgets ( cBaseObjectScene pScene,
cBaseObject pObj 
)
protectedvirtual

Updates the Qt widgets based on the currently selected object.

Overwrite this and call the base to update your own widgets.

Parameters
pScene[in] The scene that the selected object belongs to, can be NULL.
pObj[in] The selected object, can be NULL.
Returns
Standard result.