Easy3D 2.6.1
|
Default parameters used for initializing rendering and UI. More...
Functions | |
void | initialize (const std::string &setting_file="default") |
Initializes the default setting for rendering. | |
bool | save (const std::string &filename) |
Save the setting (i.e., rendering parameters) to a file. | |
bool | load (const std::string &filename) |
Load the setting (i.e., rendering parameters) from a file. | |
Variables | |
EASY3D_UTIL_EXPORT vec4 | background_color |
Background color of the viewer. | |
EASY3D_UTIL_EXPORT vec4 | highlight_color |
Default highlight color for highlighted/selected primitives. | |
EASY3D_UTIL_EXPORT vec4 | light_position |
Default light position defined in the camera coordinate system. | |
EASY3D_UTIL_EXPORT vec4 | material_ambient |
Default ambient color of the material. | |
EASY3D_UTIL_EXPORT vec4 | material_specular |
Default specular color of the material. | |
EASY3D_UTIL_EXPORT float | material_shininess |
Default shininess of the material. | |
EASY3D_UTIL_EXPORT float | effect_ssao_radius |
Radius of the SSAO (Screen Space Ambient Occlusion) effect. | |
EASY3D_UTIL_EXPORT float | effect_ssao_intensity |
Intensity of the SSAO (Screen Space Ambient Occlusion) effect. | |
EASY3D_UTIL_EXPORT float | effect_ssao_bias |
Bias of the SSAO (Screen Space Ambient Occlusion) effect. | |
EASY3D_UTIL_EXPORT float | effect_ssao_sharpness |
Sharpness of the SSAO (Screen Space Ambient Occlusion) effect. | |
EASY3D_UTIL_EXPORT bool | effect_edl_enabled |
Whether EDL (Eye-Dome Lighting) effect is enabled. | |
EASY3D_UTIL_EXPORT bool | effect_transparency_enabled |
Whether transparency effect is enabled. | |
EASY3D_UTIL_EXPORT bool | effect_shadow_enabled |
Whether shadow effect is enabled. | |
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 float | effect_shadow_softness |
Softness of the shadow effect. | |
EASY3D_UTIL_EXPORT float | effect_shadow_darkness |
Darkness of the shadow effect. | |
EASY3D_UTIL_EXPORT bool | points_drawable_two_side_lighting |
Whether two-side lighting is enabled for points drawable. | |
EASY3D_UTIL_EXPORT bool | points_drawable_distinct_backside_color |
Whether a distinct backside color is used for points drawable. | |
EASY3D_UTIL_EXPORT vec4 | points_drawable_backside_color |
Backside color for points drawable. | |
EASY3D_UTIL_EXPORT bool | lines_drawable_two_side_lighting |
Whether two-side lighting is enabled for lines drawable. | |
EASY3D_UTIL_EXPORT bool | lines_drawable_distinct_backside_color |
Whether a distinct backside color is used for lines drawable. | |
EASY3D_UTIL_EXPORT vec4 | lines_drawable_backside_color |
Backside color for lines drawable. | |
EASY3D_UTIL_EXPORT bool | triangles_drawable_two_side_lighting |
Whether two-side lighting is enabled for triangles drawable. | |
EASY3D_UTIL_EXPORT bool | triangles_drawable_distinct_backside_color |
Whether a distinct backside color is used for triangles drawable. | |
EASY3D_UTIL_EXPORT vec4 | triangles_drawable_backside_color |
Backside color for triangles drawable. | |
EASY3D_UTIL_EXPORT bool | point_cloud_vertices_visible |
Whether point cloud vertices are visible. | |
EASY3D_UTIL_EXPORT vec4 | point_cloud_vertices_color |
Color of point cloud vertices. | |
EASY3D_UTIL_EXPORT bool | point_cloud_vertices_impostors |
Whether point cloud vertices are rendered as impostors. | |
EASY3D_UTIL_EXPORT float | point_cloud_vertices_size |
Size of point cloud vertices. | |
EASY3D_UTIL_EXPORT bool | surface_mesh_faces_phong_shading |
Whether Phong shading is enabled for surface mesh faces. | |
EASY3D_UTIL_EXPORT bool | surface_mesh_faces_visible |
Whether surface mesh faces are visible. | |
EASY3D_UTIL_EXPORT vec4 | surface_mesh_faces_color |
Color of surface mesh faces. | |
EASY3D_UTIL_EXPORT float | surface_mesh_faces_opacity |
Opacity of surface mesh faces. | |
EASY3D_UTIL_EXPORT bool | surface_mesh_vertices_visible |
Whether surface mesh vertices are visible. | |
EASY3D_UTIL_EXPORT vec4 | surface_mesh_vertices_color |
Color of surface mesh vertices. | |
EASY3D_UTIL_EXPORT bool | surface_mesh_vertices_imposters |
Whether surface mesh vertices are rendered as impostors. | |
EASY3D_UTIL_EXPORT float | surface_mesh_vertices_size |
Size of surface mesh vertices. | |
EASY3D_UTIL_EXPORT bool | surface_mesh_edges_visible |
Whether surface mesh edges are visible. | |
EASY3D_UTIL_EXPORT vec4 | surface_mesh_edges_color |
Color of surface mesh edges. | |
EASY3D_UTIL_EXPORT bool | surface_mesh_edges_imposters |
Whether surface mesh edges are rendered as impostors. | |
EASY3D_UTIL_EXPORT float | surface_mesh_edges_size |
Size of surface mesh edges. | |
EASY3D_UTIL_EXPORT bool | surface_mesh_borders_visible |
Whether surface mesh borders are visible. | |
EASY3D_UTIL_EXPORT vec4 | surface_mesh_borders_color |
Color of surface mesh borders. | |
EASY3D_UTIL_EXPORT bool | surface_mesh_borders_imposters |
Whether surface mesh borders are rendered as impostors. | |
EASY3D_UTIL_EXPORT float | surface_mesh_borders_size |
Size of surface mesh borders. | |
EASY3D_UTIL_EXPORT bool | graph_vertices_visible |
Whether graph vertices are visible. | |
EASY3D_UTIL_EXPORT vec4 | graph_vertices_color |
Color of graph vertices. | |
EASY3D_UTIL_EXPORT bool | graph_vertices_imposters |
Whether graph vertices are rendered as impostors. | |
EASY3D_UTIL_EXPORT float | graph_vertices_size |
Size of graph vertices. | |
EASY3D_UTIL_EXPORT bool | graph_edges_visible |
Whether graph edges are visible. | |
EASY3D_UTIL_EXPORT vec4 | graph_edges_color |
Color of graph edges. | |
EASY3D_UTIL_EXPORT bool | graph_edges_imposters |
Whether graph edges are rendered as impostors. | |
EASY3D_UTIL_EXPORT float | graph_edges_size |
Size of graph edges. | |
EASY3D_UTIL_EXPORT bool | poly_mesh_faces_visible |
Whether polyhedral mesh faces are visible. | |
EASY3D_UTIL_EXPORT vec4 | poly_mesh_faces_color |
Color of polyhedral mesh faces. | |
EASY3D_UTIL_EXPORT bool | poly_mesh_vertices_visible |
Whether polyhedral mesh vertices are visible. | |
EASY3D_UTIL_EXPORT vec4 | poly_mesh_vertices_color |
Color of polyhedral mesh vertices. | |
EASY3D_UTIL_EXPORT bool | poly_mesh_vertices_imposters |
Whether polyhedral mesh vertices are rendered as impostors. | |
EASY3D_UTIL_EXPORT float | poly_mesh_vertices_size |
Size of polyhedral mesh vertices. | |
EASY3D_UTIL_EXPORT bool | poly_mesh_edges_visible |
Whether polyhedral mesh edges are visible. | |
EASY3D_UTIL_EXPORT vec4 | poly_mesh_edges_color |
Color of polyhedral mesh edges. | |
EASY3D_UTIL_EXPORT bool | poly_mesh_edges_imposters |
Whether polyhedral mesh edges are rendered as impostors. | |
EASY3D_UTIL_EXPORT float | poly_mesh_edges_size |
Size of polyhedral mesh edges. | |
EASY3D_UTIL_EXPORT vec4 | clipping_plane_color |
Default color of the clipping plane. | |
Default parameters used for initializing rendering and UI.
void initialize | ( | const std::string & | setting_file = "default" | ) |
Initializes the default setting for rendering.
By calling this function with a valid file name, a setting file with an extension ".ini" will be created on the first startup of the program. This setting file stores the default rendering parameters. Users can modify this file to change the default rendering parameters, then the changes will be effective for the future.
setting_file | A string specifying the name of setting file. Three different values are accepted:
|
|
extern |
Background color of the viewer.
This variable defines the background color used in the viewer. It is represented as a 4D vector (RGBA).
|
extern |
Default color of the clipping plane.
This variable defines the color used for rendering the clipping plane.
|
extern |
Whether EDL (Eye-Dome Lighting) effect is enabled.
This variable enables or disables the EDL effect, which enhances depth perception by adding shading to the scene.
|
extern |
Darkness of the shadow effect.
This variable controls the darkness of the shadow effect, which determines how dark the shadows appear.
|
extern |
Whether shadow effect is enabled.
This variable enables or disables the shadow effect, which adds shadows to the scene based on the light source.
|
extern |
Distance of the light source to the scene (w.r.t. the scene radius).
This variable controls the distance of the light to the scene, which affects the size and softness of shadows.
|
extern |
Softness of the shadow effect.
This variable controls the softness of the shadow effect, which determines how sharp or blurry the shadows appear.
|
extern |
Bias of the SSAO (Screen Space Ambient Occlusion) effect.
This variable controls the bias of the SSAO effect, which helps reduce artifacts by offsetting the occlusion calculation.
|
extern |
Intensity of the SSAO (Screen Space Ambient Occlusion) effect.
This variable controls the intensity of the SSAO effect, which determines how dark the occluded areas appear.
|
extern |
Radius of the SSAO (Screen Space Ambient Occlusion) effect.
This variable controls the radius of the SSAO effect, which determines the area around each pixel where occlusion is calculated.
|
extern |
Sharpness of the SSAO (Screen Space Ambient Occlusion) effect.
This variable controls the sharpness of the SSAO effect, which determines how sharp or smooth the occlusion edges appear.
|
extern |
Whether transparency effect is enabled.
This variable enables or disables the transparency effect, which allows objects to be rendered with transparency.
|
extern |
Color of graph edges.
This variable defines the color used for rendering graph edges.
|
extern |
Whether graph edges are rendered as impostors.
This variable enables or disables the use of impostors (e.g., cylinders) for rendering graph edges.
|
extern |
Size of graph edges.
This variable controls the size of graph edges when rendered.
|
extern |
Whether graph edges are visible.
This variable enables or disables the visibility of graph edges.
|
extern |
Color of graph vertices.
This variable defines the color used for rendering graph vertices.
|
extern |
Whether graph vertices are rendered as impostors.
This variable enables or disables the use of impostors (e.g., spheres) for rendering graph vertices.
|
extern |
Size of graph vertices.
This variable controls the size of graph vertices when rendered.
|
extern |
Whether graph vertices are visible.
This variable enables or disables the visibility of graph vertices.
|
extern |
Default highlight color for highlighted/selected primitives.
This variable defines the color used to highlight or select primitives (e.g., points, lines, faces).
|
extern |
Default light position defined in the camera coordinate system.
This variable defines the position of the light source in the camera coordinate system.
|
extern |
Backside color for lines drawable.
This variable defines the color used for the backside of lines when lines_drawable_distinct_backside_color
is enabled.
|
extern |
Whether a distinct backside color is used for lines drawable.
This variable enables or disables the use of a distinct color for the backside of lines.
|
extern |
Whether two-side lighting is enabled for lines drawable.
This variable enables or disables two-side lighting for lines, which ensures both sides of the lines are illuminated.
|
extern |
Default ambient color of the material.
This variable defines the ambient color of the material, which represents the color of the material under ambient lighting.
|
extern |
Default shininess of the material.
This variable defines the shininess (specular power) of the material, which controls the size and intensity of specular highlights.
|
extern |
Default specular color of the material.
This variable defines the specular color of the material, which represents the color of the material's highlights.
|
extern |
Color of point cloud vertices.
This variable defines the color used for rendering point cloud vertices.
|
extern |
Whether point cloud vertices are rendered as impostors.
This variable enables or disables the use of impostors (e.g., spheres) for rendering point cloud vertices.
|
extern |
Size of point cloud vertices.
This variable controls the size of point cloud vertices when rendered.
|
extern |
Whether point cloud vertices are visible.
This variable enables or disables the visibility of point cloud vertices.
|
extern |
Backside color for points drawable.
This variable defines the color used for the backside of points when points_drawable_distinct_backside_color
is enabled.
|
extern |
Whether a distinct backside color is used for points drawable.
This variable enables or disables the use of a distinct color for the backside of points.
|
extern |
Whether two-side lighting is enabled for points drawable.
This variable enables or disables two-side lighting for points, which ensures both sides of the points are illuminated.
|
extern |
Color of polyhedral mesh edges.
This variable defines the color used for rendering polyhedral mesh edges.
|
extern |
Whether polyhedral mesh edges are rendered as impostors.
This variable enables or disables the use of impostors (e.g., cylinders) for rendering polyhedral mesh edges.
|
extern |
Size of polyhedral mesh edges.
This variable controls the size of polyhedral mesh edges when rendered.
|
extern |
Whether polyhedral mesh edges are visible.
This variable enables or disables the visibility of polyhedral mesh edges.
|
extern |
Color of polyhedral mesh faces.
This variable defines the color used for rendering polyhedral mesh faces.
|
extern |
Whether polyhedral mesh faces are visible.
This variable enables or disables the visibility of polyhedral mesh faces.
|
extern |
Color of polyhedral mesh vertices.
This variable defines the color used for rendering polyhedral mesh vertices.
|
extern |
Whether polyhedral mesh vertices are rendered as impostors.
This variable enables or disables the use of impostors (e.g., spheres) for rendering polyhedral mesh vertices.
|
extern |
Size of polyhedral mesh vertices.
This variable controls the size of polyhedral mesh vertices when rendered.
|
extern |
Whether polyhedral mesh vertices are visible.
This variable enables or disables the visibility of polyhedral mesh vertices.
|
extern |
Color of surface mesh borders.
This variable defines the color used for rendering surface mesh borders.
|
extern |
Whether surface mesh borders are rendered as impostors.
This variable enables or disables the use of impostors (e.g., cylinders) for rendering surface mesh borders.
|
extern |
Size of surface mesh borders.
This variable controls the size of surface mesh borders when rendered.
|
extern |
Whether surface mesh borders are visible.
This variable enables or disables the visibility of surface mesh borders.
|
extern |
Color of surface mesh edges.
This variable defines the color used for rendering surface mesh edges.
|
extern |
Whether surface mesh edges are rendered as impostors.
This variable enables or disables the use of impostors (e.g., cylinders) for rendering surface mesh edges.
|
extern |
Size of surface mesh edges.
This variable controls the size of surface mesh edges when rendered.
|
extern |
Whether surface mesh edges are visible.
This variable enables or disables the visibility of surface mesh edges.
|
extern |
Color of surface mesh faces.
This variable defines the color used for rendering surface mesh faces.
|
extern |
Opacity of surface mesh faces.
This variable controls the opacity of surface mesh faces, where 1.0 is fully opaque and 0.0 is fully transparent.
|
extern |
Whether Phong shading is enabled for surface mesh faces.
This variable enables or disables Phong shading for surface mesh faces, which provides smoother lighting.
|
extern |
Whether surface mesh faces are visible.
This variable enables or disables the visibility of surface mesh faces.
|
extern |
Color of surface mesh vertices.
This variable defines the color used for rendering surface mesh vertices.
|
extern |
Whether surface mesh vertices are rendered as impostors.
This variable enables or disables the use of impostors (e.g., spheres) for rendering surface mesh vertices.
|
extern |
Size of surface mesh vertices.
This variable controls the size of surface mesh vertices when rendered.
|
extern |
Whether surface mesh vertices are visible.
This variable enables or disables the visibility of surface mesh vertices.
|
extern |
Backside color for triangles drawable.
This variable defines the color used for the backside of triangles when triangles_drawable_distinct_backside_color
is enabled.
|
extern |
Whether a distinct backside color is used for triangles drawable.
This variable enables or disables the use of a distinct color for the backside of triangles.
|
extern |
Whether two-side lighting is enabled for triangles drawable.
This variable enables or disables two-side lighting for triangles, which ensures both sides of the triangles are illuminated.