ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvGui::ParamStruct Struct Reference

GUI parameters. More...

#include <ecvGuiParameters.h>

Public Types

enum  ComputeOctreeForPicking { ALWAYS = 0 , ASK_USER = 1 , NEVER = 2 }
 Octree computation (for picking) behaviors. More...
 

Public Member Functions

 ParamStruct ()
 Default constructor. More...
 
void reset ()
 Resets parameters to default values. More...
 
void initFontSizesIfNeeded ()
 
void fromPersistentSettings ()
 Loads from persistent DB. More...
 
void toPersistentSettings () const
 Saves to persistent DB. More...
 
bool isInPersistentSettings (QString paramName) const
 

Public Attributes

ecvColor::Rgbaf lightDiffuseColor
 Light diffuse color (RGBA) More...
 
ecvColor::Rgbaf lightAmbientColor
 Light ambient color (RGBA) More...
 
ecvColor::Rgbaf lightSpecularColor
 Light specular color (RGBA) More...
 
bool lightDoubleSided
 Double sided light. More...
 
ecvColor::Rgbaf meshFrontDiff
 Default mesh diffuse color (front) More...
 
ecvColor::Rgbaf meshBackDiff
 Default mesh diffuse color (back) More...
 
ecvColor::Rgbaf meshSpecular
 Default mesh specular color. More...
 
ecvColor::Rgbub textDefaultCol
 Default text color. More...
 
ecvColor::Rgbub pointsDefaultCol
 Default 3D points color. More...
 
ecvColor::Rgbub backgroundCol
 Background color. More...
 
ecvColor::Rgbub labelBackgroundCol
 Labels background color. More...
 
ecvColor::Rgbub labelMarkerCol
 Labels marker color. More...
 
ecvColor::Rgbub bbDefaultCol
 Bounding-boxes color. More...
 
bool showBBOnSelected
 Show bounding-box on selected objects. More...
 
double bbOpacity
 Bounding-box opacity (0.0 to 1.0) More...
 
unsigned bbLineWidth
 Bounding-box line width. More...
 
bool drawBackgroundGradient
 Use background gradient. More...
 
bool decimateMeshOnMove
 Decimate meshes when moved. More...
 
unsigned minLoDMeshSize
 Min mesh size for decimation. More...
 
bool decimateCloudOnMove
 Decimate clouds when moved. More...
 
unsigned minLoDCloudSize
 Min cloud size for decimation. More...
 
bool displayCross
 Display cross in the middle of the screen. More...
 
bool useVBOs
 Whether to use VBOs for faster display. More...
 
unsigned labelMarkerSize
 Label marker size. More...
 
bool colorScaleShowHistogram
 Color scale option: show histogram next to color ramp. More...
 
bool colorScaleUseShader
 Whether to use shader for color scale display (if available) or not. More...
 
bool colorScaleShaderSupported
 Whether shader for color scale display is available or not. More...
 
unsigned colorScaleRampWidth
 Color scale ramp width (for display) More...
 
unsigned defaultFontSize
 Default displayed font size. More...
 
unsigned labelFontSize
 Label font size. More...
 
unsigned displayedNumPrecision
 Displayed numbers precision. More...
 
unsigned labelOpacity
 Labels background opcaity. More...
 
double zoomSpeed
 Zoom speed (1.0 by default) More...
 
ComputeOctreeForPicking autoComputeOctree
 Octree computation (for picking) behavior. More...
 
bool drawRoundedPoints
 Whether to draw rounded points (slower) or not. More...
 

Detailed Description

GUI parameters.

Definition at line 28 of file ecvGuiParameters.h.

Member Enumeration Documentation

◆ ComputeOctreeForPicking

Octree computation (for picking) behaviors.

Enumerator
ALWAYS 
ASK_USER 
NEVER 

Definition at line 104 of file ecvGuiParameters.h.

Constructor & Destructor Documentation

◆ ParamStruct()

ecvGui::ParamStruct::ParamStruct ( )

Default constructor.

Definition at line 50 of file ecvGuiParameters.cpp.

References reset().

Member Function Documentation

◆ fromPersistentSettings()

◆ initFontSizesIfNeeded()

void ecvGui::ParamStruct::initFontSizesIfNeeded ( )

Definition at line 103 of file ecvGuiParameters.cpp.

References ecvDisplayTools::GetOptimizedFontSize().

◆ isInPersistentSettings()

bool ecvGui::ParamStruct::isInPersistentSettings ( QString  paramName) const

Returns whether a given parameter is already defined in persistent settings or not

Parameters
paramNamethe corresponding attribute name

Definition at line 312 of file ecvGuiParameters.cpp.

◆ reset()

◆ toPersistentSettings()

void ecvGui::ParamStruct::toPersistentSettings ( ) const

Saves to persistent DB.

Definition at line 248 of file ecvGuiParameters.cpp.

References c_fColorArraySize, and c_ubColorArraySize.

Referenced by ccDisplayOptionsDlg::doAccept(), and ecvDisplayTools::StartCPUBasedPointPicking().

Member Data Documentation

◆ autoComputeOctree

ComputeOctreeForPicking ecvGui::ParamStruct::autoComputeOctree

Octree computation (for picking) behavior.

Definition at line 107 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeAutoComputeOctreeOption(), ccDisplayOptionsDlg::refresh(), and ecvDisplayTools::StartCPUBasedPointPicking().

◆ backgroundCol

◆ bbDefaultCol

ecvColor::Rgbub ecvGui::ParamStruct::bbDefaultCol

◆ bbLineWidth

unsigned ecvGui::ParamStruct::bbLineWidth

Bounding-box line width.

Definition at line 62 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeBBLineWidth(), ccHObject::draw(), and ccDisplayOptionsDlg::refresh().

◆ bbOpacity

double ecvGui::ParamStruct::bbOpacity

Bounding-box opacity (0.0 to 1.0)

Definition at line 60 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeBBOpacity(), ccHObject::draw(), and ccDisplayOptionsDlg::refresh().

◆ colorScaleRampWidth

unsigned ecvGui::ParamStruct::colorScaleRampWidth

◆ colorScaleShaderSupported

bool ecvGui::ParamStruct::colorScaleShaderSupported

Whether shader for color scale display is available or not.

Definition at line 87 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::refresh().

◆ colorScaleShowHistogram

bool ecvGui::ParamStruct::colorScaleShowHistogram

Color scale option: show histogram next to color ramp.

Definition at line 83 of file ecvGuiParameters.h.

Referenced by ccVolumeCalcTool::ccVolumeCalcTool(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), ccDisplayOptionsDlg::refresh(), and PclTools::UpdateScalarBar().

◆ colorScaleUseShader

bool ecvGui::ParamStruct::colorScaleUseShader

Whether to use shader for color scale display (if available) or not.

Definition at line 85 of file ecvGuiParameters.h.

Referenced by cc2Point5DimEditor::create2DView(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), ccContourExtractorDlg::init(), and ccDisplayOptionsDlg::refresh().

◆ decimateCloudOnMove

bool ecvGui::ParamStruct::decimateCloudOnMove

Decimate clouds when moved.

Definition at line 71 of file ecvGuiParameters.h.

Referenced by ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ decimateMeshOnMove

bool ecvGui::ParamStruct::decimateMeshOnMove

◆ defaultFontSize

unsigned ecvGui::ParamStruct::defaultFontSize

◆ displayCross

bool ecvGui::ParamStruct::displayCross

◆ displayedNumPrecision

◆ drawBackgroundGradient

bool ecvGui::ParamStruct::drawBackgroundGradient

◆ drawRoundedPoints

bool ecvGui::ParamStruct::drawRoundedPoints

Whether to draw rounded points (slower) or not.

Definition at line 110 of file ecvGuiParameters.h.

Referenced by ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ labelBackgroundCol

ecvColor::Rgbub ecvGui::ParamStruct::labelBackgroundCol

◆ labelFontSize

unsigned ecvGui::ParamStruct::labelFontSize

Label font size.

Definition at line 94 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeLabelFontSize(), and ccDisplayOptionsDlg::refresh().

◆ labelMarkerCol

ecvColor::Rgbub ecvGui::ParamStruct::labelMarkerCol

◆ labelMarkerSize

unsigned ecvGui::ParamStruct::labelMarkerSize

◆ labelOpacity

unsigned ecvGui::ParamStruct::labelOpacity

Labels background opcaity.

Definition at line 98 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeLabelOpacity(), ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ lightAmbientColor

ecvColor::Rgbaf ecvGui::ParamStruct::lightAmbientColor

Light ambient color (RGBA)

Definition at line 32 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeLightAmbientColor(), and ccDisplayOptionsDlg::refresh().

◆ lightDiffuseColor

ecvColor::Rgbaf ecvGui::ParamStruct::lightDiffuseColor

Light diffuse color (RGBA)

Definition at line 30 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeLightDiffuseColor(), and ccDisplayOptionsDlg::refresh().

◆ lightDoubleSided

bool ecvGui::ParamStruct::lightDoubleSided

Double sided light.

Definition at line 36 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::refresh().

◆ lightSpecularColor

ecvColor::Rgbaf ecvGui::ParamStruct::lightSpecularColor

Light specular color (RGBA)

Definition at line 34 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeLightSpecularColor(), and ccDisplayOptionsDlg::refresh().

◆ meshBackDiff

ecvColor::Rgbaf ecvGui::ParamStruct::meshBackDiff

Default mesh diffuse color (back)

Definition at line 41 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeMeshBackDiffuseColor(), ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ meshFrontDiff

ecvColor::Rgbaf ecvGui::ParamStruct::meshFrontDiff

Default mesh diffuse color (front)

Definition at line 39 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeMeshFrontDiffuseColor(), ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ meshSpecular

ecvColor::Rgbaf ecvGui::ParamStruct::meshSpecular

Default mesh specular color.

Definition at line 43 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeMeshSpecularColor(), ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ minLoDCloudSize

unsigned ecvGui::ParamStruct::minLoDCloudSize

Min cloud size for decimation.

Definition at line 73 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeMaxCloudSize(), ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ minLoDMeshSize

unsigned ecvGui::ParamStruct::minLoDMeshSize

Min mesh size for decimation.

Definition at line 69 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeMaxMeshSize(), ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ pointsDefaultCol

ecvColor::Rgbub ecvGui::ParamStruct::pointsDefaultCol

◆ showBBOnSelected

bool ecvGui::ParamStruct::showBBOnSelected

Show bounding-box on selected objects.

Definition at line 58 of file ecvGuiParameters.h.

Referenced by ccHObject::draw(), ccDisplayOptionsDlg::refresh(), and ccPropertiesTreeDelegate::setEditorData().

◆ textDefaultCol

◆ useVBOs

bool ecvGui::ParamStruct::useVBOs

Whether to use VBOs for faster display.

Definition at line 77 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeVBOUsage(), ecvDisplayTools::GetContext(), and ccDisplayOptionsDlg::refresh().

◆ zoomSpeed

double ecvGui::ParamStruct::zoomSpeed

Zoom speed (1.0 by default)

Definition at line 101 of file ecvGuiParameters.h.

Referenced by ccDisplayOptionsDlg::changeZoomSpeed(), ecvDisplayTools::onWheelEvent(), and ccDisplayOptionsDlg::refresh().


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