ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
ecvGuiParameters.h
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
#pragma once
9
10
/***************************************************
11
GUI parameters
12
***************************************************/
13
15
19
// LOCAL
20
#include "
ecvColorTypes.h
"
21
22
// Qt
23
#include <QString>
24
25
class
CV_DB_LIB_API
ecvGui
{
26
public
:
28
struct
CV_DB_LIB_API
ParamStruct
{
30
ecvColor::Rgbaf
lightDiffuseColor;
32
ecvColor::Rgbaf
lightAmbientColor;
34
ecvColor::Rgbaf
lightSpecularColor;
36
bool
lightDoubleSided;
37
39
ecvColor::Rgbaf
meshFrontDiff;
41
ecvColor::Rgbaf
meshBackDiff;
43
ecvColor::Rgbaf
meshSpecular;
44
46
ecvColor::Rgbub
textDefaultCol;
48
ecvColor::Rgbub
pointsDefaultCol;
50
ecvColor::Rgbub
backgroundCol;
52
ecvColor::Rgbub
labelBackgroundCol;
54
ecvColor::Rgbub
labelMarkerCol;
56
ecvColor::Rgbub
bbDefaultCol;
58
bool
showBBOnSelected;
60
double
bbOpacity;
62
unsigned
bbLineWidth;
63
65
bool
drawBackgroundGradient;
67
bool
decimateMeshOnMove;
69
unsigned
minLoDMeshSize;
71
bool
decimateCloudOnMove;
73
unsigned
minLoDCloudSize;
75
bool
displayCross;
77
bool
useVBOs;
78
80
unsigned
labelMarkerSize;
81
83
bool
colorScaleShowHistogram;
85
bool
colorScaleUseShader;
87
bool
colorScaleShaderSupported;
89
unsigned
colorScaleRampWidth;
90
92
unsigned
defaultFontSize;
94
unsigned
labelFontSize;
96
unsigned
displayedNumPrecision;
98
unsigned
labelOpacity;
99
101
double
zoomSpeed;
102
104
enum
ComputeOctreeForPicking
{ ALWAYS = 0, ASK_USER = 1, NEVER = 2 };
105
107
ComputeOctreeForPicking
autoComputeOctree;
108
110
bool
drawRoundedPoints;
111
113
ParamStruct
();
114
116
void
reset();
117
void
initFontSizesIfNeeded();
118
120
void
fromPersistentSettings();
121
123
void
toPersistentSettings()
const
;
124
127
129
bool
isInPersistentSettings(QString paramName)
const
;
130
};
131
133
static
const
ParamStruct
&
Parameters
();
134
136
static
void
Set(
const
ParamStruct
& params);
137
138
static
void
UpdateParameters();
139
141
static
void
ReleaseInstance();
142
143
protected
:
145
ParamStruct
params;
146
};
ecvColorTypes.h
ecvGui
This class manages some persistent parameters (mostly for display)
Definition:
ecvGuiParameters.h:25
ecvGui::ParamStruct::ComputeOctreeForPicking
ComputeOctreeForPicking
Octree computation (for picking) behaviors.
Definition:
ecvGuiParameters.h:108
ecvColor::RgbTpl
RGB color structure.
Definition:
ecvColorTypes.h:49
Parameters
Algorithm parameters.
Definition:
ecvPoissonReconDlg.cpp:43
CV_DB_LIB_API
#define CV_DB_LIB_API
Definition:
CV_db.h:15
ecvGui::ParamStruct
GUI parameters.
Definition:
ecvGuiParameters.h:30
ecvColor::RgbaTpl
RGBA color structure.
Definition:
ecvColorTypes.h:145
libs
CV_db
include
ecvGuiParameters.h
Generated on Wed Nov 18 2026 14:48:06 for ACloudViewer by
1.8.17