Open3D (C++ API)  0.18.0+fcf98ee
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
open3d::visualization::GuiSettingsModel Class Reference

#include <GuiSettingsModel.h>

Data Structures

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_
 

Member Enumeration Documentation

◆ MaterialType

Enumerator
LIT 
UNLIT 
NORMAL_MAP 
DEPTH 

Constructor & Destructor Documentation

◆ GuiSettingsModel()

open3d::visualization::GuiSettingsModel::GuiSettingsModel ( )

Member Function Documentation

◆ EstimateNormalsClicked()

void open3d::visualization::GuiSettingsModel::EstimateNormalsClicked ( )

◆ GetBackgroundColor()

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

◆ GetBasicMode()

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

◆ GetCurrentMaterialColor()

const Eigen::Vector3f & open3d::visualization::GuiSettingsModel::GetCurrentMaterialColor ( ) const

◆ GetCurrentMaterials() [1/2]

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

◆ GetCurrentMaterials() [2/2]

const GuiSettingsModel::Materials & open3d::visualization::GuiSettingsModel::GetCurrentMaterials ( ) const

◆ GetDefaultLightingProfile()

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

◆ GetDefaultLitMaterial()

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

◆ GetDefaultPointCloudLightingProfile()

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

◆ GetDisplayingPointClouds()

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

◆ GetLighting()

const GuiSettingsModel::LightingProfile & open3d::visualization::GuiSettingsModel::GetLighting ( ) const

◆ GetMaterialType()

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

◆ GetPointSize()

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

◆ GetShowAxes()

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

◆ GetShowGround()

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

◆ GetShowSkybox()

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

◆ GetSunFollowsCamera()

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

◆ GetUserHasChangedColor()

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

◆ GetUserHasChangedLightingProfile()

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

◆ GetUserHasCustomizedLighting()

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

◆ GetUserWantsEstimateNormals()

bool open3d::visualization::GuiSettingsModel::GetUserWantsEstimateNormals ( )

◆ GetWireframeMode()

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

◆ ResetColors()

void open3d::visualization::GuiSettingsModel::ResetColors ( )

◆ SetBackgroundColor()

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

◆ SetBasicMode()

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

◆ SetCurrentMaterialColor()

void open3d::visualization::GuiSettingsModel::SetCurrentMaterialColor ( const Eigen::Vector3f &  color)

◆ SetCurrentMaterials() [1/2]

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

◆ SetCurrentMaterials() [2/2]

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

◆ SetCustomDefaultColor()

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

◆ SetCustomLighting()

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

◆ SetDisplayingPointClouds()

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

If true, enables point size.

◆ SetLightingProfile()

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

◆ SetLitMaterial()

void open3d::visualization::GuiSettingsModel::SetLitMaterial ( const LitMaterial material,
const std::string &  name 
)

◆ SetMaterialsToDefault()

void open3d::visualization::GuiSettingsModel::SetMaterialsToDefault ( )

◆ SetMaterialType()

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

◆ SetOnChanged()

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

◆ SetPointSize()

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

◆ SetShowAxes()

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

◆ SetShowGround()

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

◆ SetShowSkybox()

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

◆ SetSunFollowsCamera()

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

◆ SetWireframeMode()

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

◆ UnsetCustomDefaultColor()

void open3d::visualization::GuiSettingsModel::UnsetCustomDefaultColor ( )

Field Documentation

◆ CUSTOM_IBL

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

◆ DEFAULT_IBL

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

◆ DEFAULT_MATERIAL_NAME

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

◆ lighting_profiles_

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

◆ MATERIAL_FROM_FILE_NAME

constexpr const char * open3d::visualization::GuiSettingsModel::MATERIAL_FROM_FILE_NAME
staticconstexpr
Initial value:
=
"Material from file [default]"

◆ POINT_CLOUD_PROFILE_NAME

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

◆ prefab_materials_

const std::map< std::string, const GuiSettingsModel::LitMaterial > open3d::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: GuiSettingsModel.h:21

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