27#ifndef EASY3D_UTIL_SETTING_H
28#define EASY3D_UTIL_SETTING_H
30#include <easy3d/core/types.h>
31#include <easy3d/util/export.h>
54 void initialize(
const std::string &setting_file =
"default");
57 bool save(
const std::string &filename);
60 bool load(
const std::string &filename);
Default parameters used for initializing rendering and UI.
EASY3D_UTIL_EXPORT float effect_ssao_radius
Radius of the SSAO (Screen Space Ambient Occlusion) effect.
EASY3D_UTIL_EXPORT float effect_shadow_softness
Softness of the shadow effect.
EASY3D_UTIL_EXPORT bool points_drawable_distinct_backside_color
Whether a distinct backside color is used for points drawable.
EASY3D_UTIL_EXPORT bool effect_transparency_enabled
Whether transparency effect is enabled.
EASY3D_UTIL_EXPORT bool surface_mesh_edges_imposters
Whether surface mesh edges are rendered as impostors.
EASY3D_UTIL_EXPORT bool surface_mesh_faces_visible
Whether surface mesh faces are visible.
EASY3D_UTIL_EXPORT float effect_shadow_darkness
Darkness of the shadow effect.
EASY3D_UTIL_EXPORT vec4 highlight_color
Default highlight color for highlighted/selected primitives.
void initialize(const std::string &setting_file="default")
Initializes the default setting for rendering.
EASY3D_UTIL_EXPORT float point_cloud_vertices_size
Size of point cloud vertices.
EASY3D_UTIL_EXPORT float effect_ssao_intensity
Intensity of the SSAO (Screen Space Ambient Occlusion) effect.
EASY3D_UTIL_EXPORT bool triangles_drawable_distinct_backside_color
Whether a distinct backside color is used for triangles drawable.
EASY3D_UTIL_EXPORT bool surface_mesh_vertices_visible
Whether surface mesh vertices are visible.
EASY3D_UTIL_EXPORT float effect_shadow_light_distance
Distance of the light source to the scene (w.r.t. the scene radius).
EASY3D_UTIL_EXPORT bool poly_mesh_edges_visible
Whether polyhedral mesh edges are visible.
EASY3D_UTIL_EXPORT float graph_vertices_size
Size of graph vertices.
EASY3D_UTIL_EXPORT float material_shininess
Default shininess of the material.
EASY3D_UTIL_EXPORT vec4 triangles_drawable_backside_color
Backside color for triangles drawable.
EASY3D_UTIL_EXPORT bool surface_mesh_borders_imposters
Whether surface mesh borders are rendered as impostors.
EASY3D_UTIL_EXPORT vec4 material_specular
Default specular color of the material.
bool save(const std::string &filename)
Save the setting (i.e., rendering parameters) to a file.
EASY3D_UTIL_EXPORT vec4 poly_mesh_faces_color
Color of polyhedral mesh faces.
EASY3D_UTIL_EXPORT vec4 surface_mesh_borders_color
Color of surface mesh borders.
EASY3D_UTIL_EXPORT bool surface_mesh_edges_visible
Whether surface mesh edges are visible.
EASY3D_UTIL_EXPORT vec4 clipping_plane_color
Default color of the clipping plane.
EASY3D_UTIL_EXPORT bool poly_mesh_vertices_visible
Whether polyhedral mesh vertices are visible.
EASY3D_UTIL_EXPORT vec4 surface_mesh_faces_color
Color of surface mesh faces.
EASY3D_UTIL_EXPORT bool surface_mesh_borders_visible
Whether surface mesh borders are visible.
EASY3D_UTIL_EXPORT bool effect_edl_enabled
Whether EDL (Eye-Dome Lighting) effect is enabled.
EASY3D_UTIL_EXPORT vec4 lines_drawable_backside_color
Backside color for lines drawable.
EASY3D_UTIL_EXPORT bool point_cloud_vertices_impostors
Whether point cloud vertices are rendered as impostors.
EASY3D_UTIL_EXPORT bool graph_edges_imposters
Whether graph edges are rendered as impostors.
EASY3D_UTIL_EXPORT float surface_mesh_vertices_size
Size of surface mesh vertices.
EASY3D_UTIL_EXPORT vec4 poly_mesh_vertices_color
Color of polyhedral mesh vertices.
EASY3D_UTIL_EXPORT float effect_ssao_bias
Bias of the SSAO (Screen Space Ambient Occlusion) effect.
EASY3D_UTIL_EXPORT float poly_mesh_edges_size
Size of polyhedral mesh edges.
EASY3D_UTIL_EXPORT vec4 light_position
Default light position defined in the camera coordinate system.
EASY3D_UTIL_EXPORT vec4 poly_mesh_edges_color
Color of polyhedral mesh edges.
EASY3D_UTIL_EXPORT bool poly_mesh_faces_visible
Whether polyhedral mesh faces are visible.
EASY3D_UTIL_EXPORT vec4 background_color
Background color of the viewer.
EASY3D_UTIL_EXPORT bool poly_mesh_edges_imposters
Whether polyhedral mesh edges are rendered as impostors.
bool load(const std::string &filename)
Load the setting (i.e., rendering parameters) from a file.
EASY3D_UTIL_EXPORT vec4 material_ambient
Default ambient color of the material.
EASY3D_UTIL_EXPORT vec4 points_drawable_backside_color
Backside color for points drawable.
EASY3D_UTIL_EXPORT vec4 graph_vertices_color
Color of graph vertices.
EASY3D_UTIL_EXPORT vec4 surface_mesh_edges_color
Color of surface mesh edges.
EASY3D_UTIL_EXPORT float surface_mesh_edges_size
Size of surface mesh edges.
EASY3D_UTIL_EXPORT float graph_edges_size
Size of graph edges.
EASY3D_UTIL_EXPORT bool poly_mesh_vertices_imposters
Whether polyhedral mesh vertices are rendered as impostors.
EASY3D_UTIL_EXPORT vec4 graph_edges_color
Color of graph edges.
EASY3D_UTIL_EXPORT float surface_mesh_borders_size
Size of surface mesh borders.
EASY3D_UTIL_EXPORT bool point_cloud_vertices_visible
Whether point cloud vertices are visible.
EASY3D_UTIL_EXPORT bool lines_drawable_two_side_lighting
Whether two-side lighting is enabled for lines drawable.
EASY3D_UTIL_EXPORT bool graph_edges_visible
Whether graph edges are visible.
EASY3D_UTIL_EXPORT vec4 surface_mesh_vertices_color
Color of surface mesh vertices.
EASY3D_UTIL_EXPORT bool points_drawable_two_side_lighting
Whether two-side lighting is enabled for points drawable.
EASY3D_UTIL_EXPORT float surface_mesh_faces_opacity
Opacity of surface mesh faces.
EASY3D_UTIL_EXPORT float poly_mesh_vertices_size
Size of polyhedral mesh vertices.
EASY3D_UTIL_EXPORT vec4 point_cloud_vertices_color
Color of point cloud vertices.
EASY3D_UTIL_EXPORT bool lines_drawable_distinct_backside_color
Whether a distinct backside color is used for lines drawable.
EASY3D_UTIL_EXPORT float effect_ssao_sharpness
Sharpness of the SSAO (Screen Space Ambient Occlusion) effect.
EASY3D_UTIL_EXPORT bool surface_mesh_vertices_imposters
Whether surface mesh vertices are rendered as impostors.
EASY3D_UTIL_EXPORT bool effect_shadow_enabled
Whether shadow effect is enabled.
EASY3D_UTIL_EXPORT bool graph_vertices_visible
Whether graph vertices are visible.
EASY3D_UTIL_EXPORT bool surface_mesh_faces_phong_shading
Whether Phong shading is enabled for surface mesh faces.
EASY3D_UTIL_EXPORT bool triangles_drawable_two_side_lighting
Whether two-side lighting is enabled for triangles drawable.
EASY3D_UTIL_EXPORT bool graph_vertices_imposters
Whether graph vertices are rendered as impostors.
Definition collider.cpp:182
Vec< 4, float > vec4
A 4D point/vector of float type.
Definition types.h:46