ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
ccMapDlg.cpp
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - CloudViewer: www.cloudViewer.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.cloudViewer.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#include "
ccMapDlg.h
"
9
10
// CV_DB_LIB
11
#include <
CVLog.h
>
12
13
// Qt
14
#include <qaction.h>
15
#include <qmenu.h>
16
17
#include <QApplication>
18
#include <QEvent>
19
#include <QKeyEvent>
20
21
// system
22
#include <assert.h>
23
24
ccMapDlg::ccMapDlg
(QWidget* parent
/*=0*/
)
25
:
ccOverlayDialog
(parent),
Ui
::mapDlg() {
26
setupUi(
this
);
27
28
// set background color
29
QPalette p;
30
p.setColor(backgroundRole(), QColor(240, 240, 240, 200));
31
setPalette(p);
32
setAutoFillBackground(
true
);
33
34
// create menus
35
m_createObject_menu
=
new
QMenu(
this
);
36
addObjectButton->setMenu(
m_createObject_menu
);
37
38
// create actions
39
m_create_geoObject
=
new
QAction(
"GeoObject"
,
this
);
40
m_create_geoObjectSS
=
new
QAction(
"Single Surface GeoObject"
,
this
);
41
42
// assign tool tips
43
m_create_geoObject
->setToolTip(
44
"Create a GeoObject with upper and lower surfaces and an "
45
"interior."
);
46
m_create_geoObjectSS
->setToolTip(
47
"Create a GeoObject with only a single surface ('interior')."
);
48
49
// add to menu
50
m_createObject_menu
->addAction(
m_create_geoObject
);
51
m_createObject_menu
->addAction(
m_create_geoObjectSS
);
52
}
CVLog.h
ccMapDlg.h
ccMapDlg::m_create_geoObject
QAction * m_create_geoObject
Definition:
ccMapDlg.h:34
ccMapDlg::m_create_geoObjectSS
QAction * m_create_geoObjectSS
Definition:
ccMapDlg.h:35
ccMapDlg::ccMapDlg
ccMapDlg(QWidget *parent=0)
Default constructor.
Definition:
ccMapDlg.cpp:24
ccMapDlg::m_createObject_menu
QMenu * m_createObject_menu
Definition:
ccMapDlg.h:31
ccOverlayDialog
Generic overlay dialog interface.
Definition:
ecvOverlayDialog.h:17
Ui
Definition:
ecvFontPropertyWidget.h:19
plugins
core
Standard
qCompass
src
ccMapDlg.cpp
Generated on Wed Jan 28 2026 09:01:07 for ACloudViewer by
1.9.1