15 namespace visualization {
20 static constexpr
const char*
CUSTOM_IBL =
"Custom KTX file...";
23 "Material from file [default]";
25 "Cloudy day (no direct sun)";
34 rendering::Scene::Transform::Identity();
108 const std::string&
name);
139 void SetOnChanged(std::function<
void(
bool)> on_changed);
142 Eigen::Vector3f bg_color_ = {1.0f, 1.0f, 1.0f};
143 bool show_skybox_ =
false;
144 bool show_axes_ =
false;
145 bool show_ground_ =
false;
146 bool sun_follows_cam_ =
true;
147 LightingProfile lighting_;
149 Materials current_materials_;
150 Eigen::Vector3f custom_default_color = {-1.0f, -1.0f, 1.0f};
151 bool user_has_changed_color_ =
false;
152 bool user_has_changed_lighting_profile_ =
false;
153 bool user_has_customized_lighting_ =
false;
154 bool displaying_point_clouds_ =
false;
155 bool user_wants_estimate_normals_ =
false;
156 bool basic_mode_enabled_ =
false;
157 bool wireframe_mode_enabled_ =
false;
159 std::function<
void(
bool)> on_changed_;
161 void NotifyChanged(
bool material_changed =
false);
math::float4 color
Definition: LineSetBuffers.cpp:45
Open3DScene::LightingProfile profile
Definition: O3DVisualizer.cpp:269
Definition: GuiSettingsModel.h:17
void SetBasicMode(bool enable)
Definition: GuiSettingsModel.cpp:206
bool GetUserHasChangedLightingProfile() const
Definition: GuiSettingsModel.cpp:376
bool GetShowSkybox() const
Definition: GuiSettingsModel.cpp:181
void SetShowAxes(bool show)
Definition: GuiSettingsModel.cpp:188
const Eigen::Vector3f & GetBackgroundColor() const
Definition: GuiSettingsModel.cpp:219
void SetShowSkybox(bool show)
Definition: GuiSettingsModel.cpp:182
int GetPointSize() const
Definition: GuiSettingsModel.cpp:345
static constexpr const char * DEFAULT_IBL
Definition: GuiSettingsModel.h:19
void SetCurrentMaterialColor(const Eigen::Vector3f &color)
Definition: GuiSettingsModel.cpp:310
static const std::map< std::string, const LitMaterial > prefab_materials_
Definition: GuiSettingsModel.h:73
bool GetSunFollowsCamera() const
Definition: GuiSettingsModel.cpp:199
void UnsetCustomDefaultColor()
Definition: GuiSettingsModel.cpp:341
bool GetShowGround() const
Definition: GuiSettingsModel.cpp:193
void SetBackgroundColor(const Eigen::Vector3f &color)
Definition: GuiSettingsModel.cpp:222
bool GetDisplayingPointClouds() const
Definition: GuiSettingsModel.cpp:368
void SetCurrentMaterials(const Materials &materials, const std::string &name)
Definition: GuiSettingsModel.cpp:271
bool GetShowAxes() const
Definition: GuiSettingsModel.cpp:187
void SetMaterialsToDefault()
Definition: GuiSettingsModel.cpp:283
void SetCustomDefaultColor(const Eigen::Vector3f color)
Definition: GuiSettingsModel.cpp:337
MaterialType GetMaterialType() const
Definition: GuiSettingsModel.cpp:243
static const LightingProfile & GetDefaultLightingProfile()
Definition: GuiSettingsModel.cpp:152
void SetPointSize(int size)
Definition: GuiSettingsModel.cpp:349
bool GetUserHasCustomizedLighting() const
Definition: GuiSettingsModel.cpp:380
static constexpr const char * MATERIAL_FROM_FILE_NAME
Definition: GuiSettingsModel.h:22
void SetMaterialType(MaterialType type)
Definition: GuiSettingsModel.cpp:246
void SetOnChanged(std::function< void(bool)> on_changed)
Definition: GuiSettingsModel.cpp:388
static constexpr const char * DEFAULT_MATERIAL_NAME
Definition: GuiSettingsModel.h:21
void SetSunFollowsCamera(bool follow)
Definition: GuiSettingsModel.cpp:200
static const std::vector< LightingProfile > lighting_profiles_
Definition: GuiSettingsModel.h:72
bool GetBasicMode() const
Definition: GuiSettingsModel.cpp:205
const LightingProfile & GetLighting() const
Definition: GuiSettingsModel.cpp:227
void ResetColors()
Definition: GuiSettingsModel.cpp:324
void SetLightingProfile(const LightingProfile &profile)
Definition: GuiSettingsModel.cpp:231
static constexpr const char * CUSTOM_IBL
Definition: GuiSettingsModel.h:20
static constexpr const char * POINT_CLOUD_PROFILE_NAME
Definition: GuiSettingsModel.h:24
const Materials & GetCurrentMaterials() const
Definition: GuiSettingsModel.cpp:251
const Eigen::Vector3f & GetCurrentMaterialColor() const
Definition: GuiSettingsModel.cpp:295
void SetLitMaterial(const LitMaterial &material, const std::string &name)
Definition: GuiSettingsModel.cpp:260
static const LitMaterial & GetDefaultLitMaterial()
Definition: GuiSettingsModel.cpp:162
MaterialType
Definition: GuiSettingsModel.h:40
@ LIT
Definition: GuiSettingsModel.h:41
@ DEPTH
Definition: GuiSettingsModel.h:44
@ NORMAL_MAP
Definition: GuiSettingsModel.h:43
@ UNLIT
Definition: GuiSettingsModel.h:42
GuiSettingsModel()
Definition: GuiSettingsModel.cpp:175
bool GetUserWantsEstimateNormals()
Definition: GuiSettingsModel.cpp:354
void EstimateNormalsClicked()
Definition: GuiSettingsModel.cpp:363
void SetShowGround(bool show)
Definition: GuiSettingsModel.cpp:194
static const LightingProfile & GetDefaultPointCloudLightingProfile()
Definition: GuiSettingsModel.cpp:157
void SetCustomLighting(const LightingProfile &profile)
Definition: GuiSettingsModel.cpp:237
void SetWireframeMode(bool enable)
Definition: GuiSettingsModel.cpp:214
void SetDisplayingPointClouds(bool displaying)
If true, enables point size.
Definition: GuiSettingsModel.cpp:371
bool GetWireframeMode() const
Definition: GuiSettingsModel.cpp:211
bool GetUserHasChangedColor() const
Definition: GuiSettingsModel.cpp:384
Eigen::Transform< float, 3, Eigen::Affine > Transform
Definition: Scene.h:49
const char const char value recording_handle imu_sample void
Definition: K4aPlugin.cpp:250
Definition: PinholeCameraIntrinsic.cpp:16
Definition: GuiSettingsModel.h:27
bool use_default_ibl
Definition: GuiSettingsModel.h:36
rendering::Scene::Transform ibl_rotation
Definition: GuiSettingsModel.h:33
Eigen::Vector3f sun_dir
Definition: GuiSettingsModel.h:31
double ibl_intensity
Definition: GuiSettingsModel.h:29
double sun_intensity
Definition: GuiSettingsModel.h:30
bool ibl_enabled
Definition: GuiSettingsModel.h:35
Eigen::Vector3f sun_color
Definition: GuiSettingsModel.h:32
bool sun_enabled
Definition: GuiSettingsModel.h:37
std::string name
Definition: GuiSettingsModel.h:28
Definition: GuiSettingsModel.h:47
float reflectance
Definition: GuiSettingsModel.h:51
float clear_coat_roughness
Definition: GuiSettingsModel.h:53
float anisotropy
Definition: GuiSettingsModel.h:54
float metallic
Definition: GuiSettingsModel.h:49
Eigen::Vector3f base_color
Definition: GuiSettingsModel.h:48
float roughness
Definition: GuiSettingsModel.h:50
float clear_coat
Definition: GuiSettingsModel.h:52
Definition: GuiSettingsModel.h:63
float point_size
Definition: GuiSettingsModel.h:66
UnlitMaterial unlit
Definition: GuiSettingsModel.h:65
std::string lit_name
Definition: GuiSettingsModel.h:69
LitMaterial lit
Definition: GuiSettingsModel.h:64
Definition: GuiSettingsModel.h:57
Eigen::Vector3f base_color
Definition: GuiSettingsModel.h:60