Open3D (C++ API)  0.11.0
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)
 
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 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

◆ GetBackgroundColor()

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

◆ GetCurrentMaterialColor()

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

◆ GetCurrentMaterials() [1/2]

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

◆ GetCurrentMaterials() [2/2]

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

◆ 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

◆ GetShowSkybox()

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

◆ GetUserHasChangedColor()

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

◆ GetUserHasChangedLightingProfile()

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

◆ GetUserHasCustomizedLighting()

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

◆ ResetColors()

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

◆ SetBackgroundColor()

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

◆ 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)

◆ SetShowSkybox()

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

◆ UnsetCustomDefaultColor()

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

Field Documentation

◆ CUSTOM_IBL

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

◆ DEFAULT_IBL

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

◆ DEFAULT_MATERIAL_NAME

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

◆ 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
static
Initial value:
=
"Material from file [default]"

◆ POINT_CLOUD_PROFILE_NAME

constexpr const char* open3d::visualization::GuiSettingsModel::POINT_CLOUD_PROFILE_NAME
static
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}},
}

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