ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::visualization::GuiSettingsModel Class Reference

#include <GuiSettingsModel.h>

Classes

struct  LightingProfile
 
struct  LitMaterial
 
struct  Materials
 
struct  UnlitMaterial
 

Public Types

enum  MaterialType { LIT = 0 , UNLIT , NORMAL_MAP , DEPTH }
 

Public Member Functions

 GuiSettingsModel ()
 
bool GetShowSkybox () const
 
void SetShowSkybox (bool show)
 
bool GetShowAxes () const
 
void SetShowAxes (bool show)
 
bool GetShowGround () const
 
void SetShowGround (bool show)
 
bool GetSunFollowsCamera () const
 
void SetSunFollowsCamera (bool follow)
 
const Eigen::Vector3f & GetBackgroundColor () const
 
void SetBackgroundColor (const Eigen::Vector3f &color)
 
const LightingProfileGetLighting () const
 
void SetLightingProfile (const LightingProfile &profile)
 
void SetCustomLighting (const LightingProfile &profile)
 
MaterialType GetMaterialType () const
 
void SetMaterialType (MaterialType type)
 
const MaterialsGetCurrentMaterials () const
 
MaterialsGetCurrentMaterials ()
 
void SetLitMaterial (const LitMaterial &material, const std::string &name)
 
void SetCurrentMaterials (const Materials &materials, const std::string &name)
 
void SetCurrentMaterials (const std::string &name)
 
void SetMaterialsToDefault ()
 
const Eigen::Vector3f & GetCurrentMaterialColor () const
 
void SetCurrentMaterialColor (const Eigen::Vector3f &color)
 
void ResetColors ()
 
void SetCustomDefaultColor (const Eigen::Vector3f color)
 
void UnsetCustomDefaultColor ()
 
int GetPointSize () const
 
void SetPointSize (int size)
 
bool GetBasicMode () const
 
void SetBasicMode (bool enable)
 
bool GetWireframeMode () const
 
void SetWireframeMode (bool enable)
 
bool GetUserWantsEstimateNormals ()
 
void EstimateNormalsClicked ()
 
bool GetDisplayingPointClouds () const
 
void SetDisplayingPointClouds (bool displaying)
 If true, enables point size. More...
 
bool GetUserHasChangedLightingProfile () const
 
bool GetUserHasCustomizedLighting () const
 
bool GetUserHasChangedColor () const
 
void SetOnChanged (std::function< void(bool)> on_changed)
 

Static Public Member Functions

static const LightingProfileGetDefaultLightingProfile ()
 
static const LightingProfileGetDefaultPointCloudLightingProfile ()
 
static const LitMaterialGetDefaultLitMaterial ()
 

Static Public Attributes

static constexpr const char * DEFAULT_IBL = "default"
 
static constexpr const char * CUSTOM_IBL = "Custom KTX file..."
 
static constexpr const char * DEFAULT_MATERIAL_NAME = "Polished ceramic"
 
static constexpr const char * MATERIAL_FROM_FILE_NAME
 
static constexpr const char * POINT_CLOUD_PROFILE_NAME
 
static const std::vector< LightingProfilelighting_profiles_
 
static const std::map< std::string, const LitMaterialprefab_materials_
 

Detailed Description

Definition at line 17 of file GuiSettingsModel.h.

Member Enumeration Documentation

◆ MaterialType

Enumerator
LIT 
UNLIT 
NORMAL_MAP 
DEPTH 

Definition at line 40 of file GuiSettingsModel.h.

Constructor & Destructor Documentation

◆ GuiSettingsModel()

Member Function Documentation

◆ EstimateNormalsClicked()

void cloudViewer::visualization::GuiSettingsModel::EstimateNormalsClicked ( )

◆ GetBackgroundColor()

const Eigen::Vector3f & cloudViewer::visualization::GuiSettingsModel::GetBackgroundColor ( ) const

◆ GetBasicMode()

bool cloudViewer::visualization::GuiSettingsModel::GetBasicMode ( ) const

◆ GetCurrentMaterialColor()

◆ GetCurrentMaterials() [1/2]

GuiSettingsModel::Materials & cloudViewer::visualization::GuiSettingsModel::GetCurrentMaterials ( )

Definition at line 258 of file GuiSettingsModel.cpp.

◆ GetCurrentMaterials() [2/2]

◆ GetDefaultLightingProfile()

const GuiSettingsModel::LightingProfile & cloudViewer::visualization::GuiSettingsModel::GetDefaultLightingProfile ( )
static

Definition at line 154 of file GuiSettingsModel.cpp.

References lighting_profiles_.

Referenced by GuiSettingsModel().

◆ GetDefaultLitMaterial()

const GuiSettingsModel::LitMaterial & cloudViewer::visualization::GuiSettingsModel::GetDefaultLitMaterial ( )
static

Definition at line 164 of file GuiSettingsModel.cpp.

References DEFAULT_MATERIAL_NAME, LogError, and prefab_materials_.

Referenced by GuiSettingsModel().

◆ GetDefaultPointCloudLightingProfile()

const GuiSettingsModel::LightingProfile & cloudViewer::visualization::GuiSettingsModel::GetDefaultPointCloudLightingProfile ( )
static

◆ GetDisplayingPointClouds()

bool cloudViewer::visualization::GuiSettingsModel::GetDisplayingPointClouds ( ) const

◆ GetLighting()

◆ GetMaterialType()

GuiSettingsModel::MaterialType cloudViewer::visualization::GuiSettingsModel::GetMaterialType ( ) const

◆ GetPointSize()

int cloudViewer::visualization::GuiSettingsModel::GetPointSize ( ) const

◆ GetShowAxes()

bool cloudViewer::visualization::GuiSettingsModel::GetShowAxes ( ) const

◆ GetShowGround()

bool cloudViewer::visualization::GuiSettingsModel::GetShowGround ( ) const

◆ GetShowSkybox()

bool cloudViewer::visualization::GuiSettingsModel::GetShowSkybox ( ) const

◆ GetSunFollowsCamera()

bool cloudViewer::visualization::GuiSettingsModel::GetSunFollowsCamera ( ) const

Definition at line 201 of file GuiSettingsModel.cpp.

◆ GetUserHasChangedColor()

bool cloudViewer::visualization::GuiSettingsModel::GetUserHasChangedColor ( ) const

◆ GetUserHasChangedLightingProfile()

bool cloudViewer::visualization::GuiSettingsModel::GetUserHasChangedLightingProfile ( ) const

Definition at line 378 of file GuiSettingsModel.cpp.

◆ GetUserHasCustomizedLighting()

bool cloudViewer::visualization::GuiSettingsModel::GetUserHasCustomizedLighting ( ) const

◆ GetUserWantsEstimateNormals()

bool cloudViewer::visualization::GuiSettingsModel::GetUserWantsEstimateNormals ( )

◆ GetWireframeMode()

bool cloudViewer::visualization::GuiSettingsModel::GetWireframeMode ( ) const

◆ ResetColors()

◆ SetBackgroundColor()

void cloudViewer::visualization::GuiSettingsModel::SetBackgroundColor ( const Eigen::Vector3f &  color)

Definition at line 224 of file GuiSettingsModel.cpp.

References color.

Referenced by cloudViewer::visualization::GuiSettingsView::GuiSettingsView().

◆ SetBasicMode()

void cloudViewer::visualization::GuiSettingsModel::SetBasicMode ( bool  enable)

◆ SetCurrentMaterialColor()

◆ SetCurrentMaterials() [1/2]

void cloudViewer::visualization::GuiSettingsModel::SetCurrentMaterials ( const Materials materials,
const std::string &  name 
)

◆ SetCurrentMaterials() [2/2]

void cloudViewer::visualization::GuiSettingsModel::SetCurrentMaterials ( const std::string &  name)

◆ SetCustomDefaultColor()

void cloudViewer::visualization::GuiSettingsModel::SetCustomDefaultColor ( const Eigen::Vector3f  color)

Definition at line 339 of file GuiSettingsModel.cpp.

References color.

◆ SetCustomLighting()

void cloudViewer::visualization::GuiSettingsModel::SetCustomLighting ( const LightingProfile profile)

◆ SetDisplayingPointClouds()

void cloudViewer::visualization::GuiSettingsModel::SetDisplayingPointClouds ( bool  displaying)

If true, enables point size.

Definition at line 373 of file GuiSettingsModel.cpp.

◆ SetLightingProfile()

void cloudViewer::visualization::GuiSettingsModel::SetLightingProfile ( const LightingProfile profile)

◆ SetLitMaterial()

◆ SetMaterialsToDefault()

◆ SetMaterialType()

void cloudViewer::visualization::GuiSettingsModel::SetMaterialType ( MaterialType  type)

Definition at line 248 of file GuiSettingsModel.cpp.

References type.

Referenced by cloudViewer::visualization::GuiSettingsView::GuiSettingsView().

◆ SetOnChanged()

void cloudViewer::visualization::GuiSettingsModel::SetOnChanged ( std::function< void(bool)>  on_changed)

Definition at line 390 of file GuiSettingsModel.cpp.

◆ SetPointSize()

void cloudViewer::visualization::GuiSettingsModel::SetPointSize ( int  size)

◆ SetShowAxes()

void cloudViewer::visualization::GuiSettingsModel::SetShowAxes ( bool  show)

◆ SetShowGround()

void cloudViewer::visualization::GuiSettingsModel::SetShowGround ( bool  show)

◆ SetShowSkybox()

void cloudViewer::visualization::GuiSettingsModel::SetShowSkybox ( bool  show)

◆ SetSunFollowsCamera()

void cloudViewer::visualization::GuiSettingsModel::SetSunFollowsCamera ( bool  follow)

◆ SetWireframeMode()

void cloudViewer::visualization::GuiSettingsModel::SetWireframeMode ( bool  enable)

◆ UnsetCustomDefaultColor()

void cloudViewer::visualization::GuiSettingsModel::UnsetCustomDefaultColor ( )

Definition at line 343 of file GuiSettingsModel.cpp.

Member Data Documentation

◆ CUSTOM_IBL

constexpr const char * cloudViewer::visualization::GuiSettingsModel::CUSTOM_IBL = "Custom KTX file..."
staticconstexpr

◆ DEFAULT_IBL

constexpr const char * cloudViewer::visualization::GuiSettingsModel::DEFAULT_IBL = "default"
staticconstexpr

◆ DEFAULT_MATERIAL_NAME

constexpr const char * cloudViewer::visualization::GuiSettingsModel::DEFAULT_MATERIAL_NAME = "Polished ceramic"
staticconstexpr

◆ lighting_profiles_

const std::vector< GuiSettingsModel::LightingProfile > cloudViewer::visualization::GuiSettingsModel::lighting_profiles_
static

◆ MATERIAL_FROM_FILE_NAME

constexpr const char * cloudViewer::visualization::GuiSettingsModel::MATERIAL_FROM_FILE_NAME
staticconstexpr

◆ POINT_CLOUD_PROFILE_NAME

constexpr const char * cloudViewer::visualization::GuiSettingsModel::POINT_CLOUD_PROFILE_NAME
staticconstexpr
Initial value:
=
"Cloudy day (no direct sun)"

Definition at line 24 of file GuiSettingsModel.h.

◆ prefab_materials_

const std::map< std::string, const GuiSettingsModel::LitMaterial > cloudViewer::visualization::GuiSettingsModel::prefab_materials_
static
Initial value:
= {
{"Metal (rougher)",
{{1.0f, 1.0f, 1.0f}, 1.0f, 0.5f, 0.5f, 0.0f, 0.0f, 0.0f}},
{"Metal (smoother)",
{{1.0f, 1.0f, 1.0f}, 1.0f, 0.2f, 0.5f, 0.0f, 0.0f, 0.0f}},
{"Plastic",
{{1.0f, 1.0f, 1.0f}, 0.0f, 0.5f, 0.5f, 0.5f, 0.8f, 0.0f}},
{"Glazed ceramic",
{{1.0f, 1.0f, 1.0f}, 0.0f, 0.5f, 0.5f, 1.0f, 0.2f, 0.0f}},
{"Clay",
{{0.7725f, 0.7725f, 0.7725f},
0.0f,
1.0f,
0.35f,
0.0f,
0.0f,
0.0f}},
}
static constexpr const char * DEFAULT_MATERIAL_NAME

Definition at line 73 of file GuiSettingsModel.h.

Referenced by GetDefaultLitMaterial(), and cloudViewer::visualization::GuiSettingsView::GuiSettingsView().


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