iVS3D v2.0.0
Loading...
Searching...
No Matches
lib3d::ots::ui::ColmapWrapperControlsFactory Class Reference

Class providing ui elements for controlling ColmapWrapper. More...

#include <colmapwrapper.h>

Inheritance diagram for lib3d::ots::ui::ColmapWrapperControlsFactory:

Signals

void updateToLightTheme ()
 Signal to update ui to light theme.
 
void updateToDarkTheme ()
 Signal to update ui to dark theme.
 

Public Member Functions

QPushButton * createNewProductPushButton (ETheme iTheme=LIGHT, QWidget *parent=nullptr, QPushButton *rhs=nullptr)
 Create a QPushButton that opens the "New Product" dialog.
 
QToolButton * createNewProductToolButton (ETheme iTheme=LIGHT, QWidget *parent=nullptr, QToolButton *rhs=nullptr)
 Create a QToolButton that opens the "New Product" dialog.
 
QPushButton * createSettingsPushButton (ETheme iTheme=LIGHT, QWidget *parent=nullptr, QPushButton *rhs=nullptr)
 Create a QPushButton that opens the settings dialog.
 
QToolButton * createSettingsToolButton (ETheme iTheme=LIGHT, QWidget *parent=nullptr, QToolButton *rhs=nullptr)
 Create a QToolButton that opens the settings dialog.
 
QAction * createSettingsAction (ETheme iTheme=LIGHT, QWidget *parent=nullptr, QAction *rhs=nullptr)
 Create a QAction that opens the settings dialog.
 
QWidget * createViewWidget (QWidget *parent=nullptr)
 Create ViewWidget for interaction with MetashapeWrapper.
 
void updateIconTheme (ETheme iTheme)
 Method to update icon themes.
 

Private Slots

void showSettingsDialog ()
 Slot to show "Settings" dialog.
 
void showNewProductDialog ()
 Slot to show "New Product" dialog.
 

Private Member Functions

 ColmapWrapperControlsFactory (lib3d::ots::ColmapWrapper *ipColmapWrapper)
 Private cosntructor.
 

Private Attributes

lib3d::ots::ColmapWrappermpMsWrapper = nullptr
 Member pointer to MetashapeWrapper.
 
QSharedPointer< colmapwrapper::NewProductDialogmpMsWrapperNewProductDialog = nullptr
 MetashapeWrapperNewProductDialog Member.
 
QSharedPointer< colmapwrapper::SettingsDialogmpMsWrapperSettingsDialog = nullptr
 MetashapeWrapperSettingsDialog Member.
 

Friends

class lib3d::ots::ColmapWrapper
 

Detailed Description

Class providing ui elements for controlling ColmapWrapper.

Author
Ruf, Boitumelo boitu.nosp@m.melo.nosp@m..ruf@.nosp@m.iosb.nosp@m..frau.nosp@m.nhof.nosp@m.er.de

Constructor & Destructor Documentation

◆ ColmapWrapperControlsFactory()

lib3d::ots::ui::ColmapWrapperControlsFactory::ColmapWrapperControlsFactory ( lib3d::ots::ColmapWrapper ipColmapWrapper)
private

Private cosntructor.

Parameters
[in]ipColmapWrapperPointer to object of MetashapeWrapper.

Member Function Documentation

◆ createNewProductPushButton()

QPushButton * lib3d::ots::ui::ColmapWrapperControlsFactory::createNewProductPushButton ( ui::ETheme  iTheme = LIGHT,
QWidget *  parent = nullptr,
QPushButton *  rhs = nullptr 
)

Create a QPushButton that opens the "New Product" dialog.

Parameters
[in]iThemeTheme for Icon to use.
[in]rhsPointer to already instatiated QPushButton. If null, a new Object of a QPushButton will be instatiated. Can be used to adjust the icon.
Returns
Pointer to instatiated object.

◆ createNewProductToolButton()

QToolButton * lib3d::ots::ui::ColmapWrapperControlsFactory::createNewProductToolButton ( ui::ETheme  iTheme = LIGHT,
QWidget *  parent = nullptr,
QToolButton *  rhs = nullptr 
)

Create a QToolButton that opens the "New Product" dialog.

Parameters
[in]iThemeTheme for Icon to use.
[in]rhsPointer to already instatiated QToolButton. If null, a new Object of a QToolButton will be instatiated. Can be used to adjust the icon.
Returns
Pointer to instatiated object.

◆ createSettingsAction()

QAction * lib3d::ots::ui::ColmapWrapperControlsFactory::createSettingsAction ( ui::ETheme  iTheme = LIGHT,
QWidget *  parent = nullptr,
QAction *  rhs = nullptr 
)

Create a QAction that opens the settings dialog.

Parameters
[in]iThemeTheme for Icon to use.
[in]rhsPointer to already instatiated QToolButton. If null, a new Object of a QToolButton will be instatiated. Can be used to adjust the icon.
Returns
Pointer to instatiated object.

◆ createSettingsPushButton()

QPushButton * lib3d::ots::ui::ColmapWrapperControlsFactory::createSettingsPushButton ( ETheme  iTheme = LIGHT,
QWidget *  parent = nullptr,
QPushButton *  rhs = nullptr 
)

Create a QPushButton that opens the settings dialog.

Parameters
[in]iThemeTheme for Icon to use.
[in]rhsPointer to already instatiated QPushButton. If null, a new Object of a QPushButton will be instatiated. Can be used to adjust the icon.
Returns
Pointer to instatiated object.

◆ createSettingsToolButton()

QToolButton * lib3d::ots::ui::ColmapWrapperControlsFactory::createSettingsToolButton ( ETheme  iTheme = LIGHT,
QWidget *  parent = nullptr,
QToolButton *  rhs = nullptr 
)

Create a QToolButton that opens the settings dialog.

Parameters
[in]iThemeTheme for Icon to use.
[in]rhsPointer to already instatiated QToolButton. If null, a new Object of a QToolButton will be instatiated. Can be used to adjust the icon.
Returns
Pointer to instatiated object.

◆ createViewWidget()

QWidget * lib3d::ots::ui::ColmapWrapperControlsFactory::createViewWidget ( QWidget *  parent = nullptr)

Create ViewWidget for interaction with MetashapeWrapper.

Parameters
[in]parentPointer to parent object.
Returns
Pointer to ViewWidget.

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