ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvCustomViewpointButtonDlg Class Reference

#include <ecvCustomViewpointButtonDlg.h>

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

Public Member Functions

 ecvCustomViewpointButtonDlg (QWidget *parent, Qt::WindowFlags f, QStringList &toolTips, QStringList &configurations, QString &currentConfig)
 
 ~ecvCustomViewpointButtonDlg () override
 
void setToolTipsAndConfigurations (const QStringList &toolTips, const QStringList &configs)
 
void setToolTips (const QStringList &toolTips)
 
QStringList getToolTips ()
 
void setConfigurations (const QStringList &configs)
 
QStringList getConfigurations ()
 
void setCurrentConfiguration (const QString &config)
 
QString getCurrentConfiguration ()
 

Static Public Attributes

const static QString DEFAULT_TOOLTIP
 
const static int MINIMUM_NUMBER_OF_ITEMS = 0
 
const static int MAXIMUM_NUMBER_OF_ITEMS = 30
 

Constructor & Destructor Documentation

◆ ecvCustomViewpointButtonDlg()

ecvCustomViewpointButtonDlg::ecvCustomViewpointButtonDlg ( QWidget *  parent,
Qt::WindowFlags  f,
QStringList &  toolTips,
QStringList &  configurations,
QString &  currentConfig 
)

◆ ~ecvCustomViewpointButtonDlg()

ecvCustomViewpointButtonDlg::~ecvCustomViewpointButtonDlg ( )
override

References NULL.

Member Function Documentation

◆ getConfigurations()

QStringList ecvCustomViewpointButtonDlg::getConfigurations ( )

◆ getCurrentConfiguration()

QString ecvCustomViewpointButtonDlg::getCurrentConfiguration ( )

◆ getToolTips()

QStringList ecvCustomViewpointButtonDlg::getToolTips ( )

◆ setConfigurations()

void ecvCustomViewpointButtonDlg::setConfigurations ( const QStringList &  configs)

Set/get a list of camera configurations, one for each button. The number of items in configs must match the current number of configs. Use setToolTipsAndConfigurations to change the number of items.

References CVLog::Error().

Referenced by setToolTipsAndConfigurations().

◆ setCurrentConfiguration()

void ecvCustomViewpointButtonDlg::setCurrentConfiguration ( const QString &  config)

Set/get the current camera configuration.

Referenced by ecvCustomViewpointButtonDlg().

◆ setToolTips()

void ecvCustomViewpointButtonDlg::setToolTips ( const QStringList &  toolTips)

Set/get a list of tool tips, one for each button. The number of items in the toolTips list must match the current number of tooltips being shown. Use setToolTipsAndConfigurations to change the number of items.

References CVLog::Error(), and pqCustomViewpointButtonDialogUI::setToolTips().

◆ setToolTipsAndConfigurations()

void ecvCustomViewpointButtonDlg::setToolTipsAndConfigurations ( const QStringList &  toolTips,
const QStringList &  configs 
)

Set the list of tool tips and configurations. This is the preferred way of settings these as it supports changing the number of items.

References DEFAULT_TOOLTIP, MAXIMUM_NUMBER_OF_ITEMS, MINIMUM_NUMBER_OF_ITEMS, setConfigurations(), pqCustomViewpointButtonDialogUI::setNumberOfRows(), and pqCustomViewpointButtonDialogUI::setToolTips().

Referenced by ecvCustomViewpointButtonDlg().

Member Data Documentation

◆ DEFAULT_TOOLTIP

const QString ecvCustomViewpointButtonDlg::DEFAULT_TOOLTIP
static
Initial value:
=
QString("Unnamed Viewpoint")

Constant variable that contains the default name for the tool tips.

Referenced by ecvCameraParamEditDlg::CustomViewpointConfigurations(), ecvCameraParamEditDlg::CustomViewpointToolTips(), pqCustomViewpointButtonDialogUI::setNumberOfRows(), and setToolTipsAndConfigurations().

◆ MAXIMUM_NUMBER_OF_ITEMS

◆ MINIMUM_NUMBER_OF_ITEMS

const int ecvCustomViewpointButtonDlg::MINIMUM_NUMBER_OF_ITEMS = 0
static

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