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

#include <ecvCustomViewpointButtonDlg.h>

Inheritance diagram for ecvCustomViewpointButtonDlg:
Collaboration diagram for ecvCustomViewpointButtonDlg:

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

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

Detailed Description

Definition at line 36 of file ecvCustomViewpointButtonDlg.h.

Constructor & Destructor Documentation

◆ ecvCustomViewpointButtonDlg()

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

◆ ~ecvCustomViewpointButtonDlg()

ecvCustomViewpointButtonDlg::~ecvCustomViewpointButtonDlg ( )
override

Definition at line 225 of file ecvCustomViewpointButtonDlg.cpp.

References NULL.

Member Function Documentation

◆ getConfigurations()

QStringList ecvCustomViewpointButtonDlg::getConfigurations ( )

◆ getCurrentConfiguration()

QString ecvCustomViewpointButtonDlg::getCurrentConfiguration ( )

Definition at line 296 of file ecvCustomViewpointButtonDlg.cpp.

◆ 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.

Definition at line 275 of file ecvCustomViewpointButtonDlg.cpp.

References CVLog::Error().

Referenced by setToolTipsAndConfigurations().

◆ setCurrentConfiguration()

void ecvCustomViewpointButtonDlg::setCurrentConfiguration ( const QString &  config)

Set/get the current camera configuration.

Definition at line 290 of file ecvCustomViewpointButtonDlg.cpp.

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.

Definition at line 261 of file ecvCustomViewpointButtonDlg.cpp.

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.

Definition at line 231 of file ecvCustomViewpointButtonDlg.cpp.

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.

Definition at line 54 of file ecvCustomViewpointButtonDlg.h.

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: