![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Defines rendering options for visualizer. More...
#include <RenderOption.h>
Public Member Functions | |
| RenderOption () | |
| Default Constructor. More... | |
| ~RenderOption () override | |
| bool | ConvertToJsonValue (Json::Value &value) const override |
| bool | ConvertFromJsonValue (const Json::Value &value) override |
| void | ToggleLightOn () |
| void | ToggleInterpolationOption () |
| void | ChangePointSize (double change) |
| void | SetPointSize (double size) |
| void | ChangeLineWidth (double change) |
| void | TogglePointShowNormal () |
| void | ToggleShadingOption () |
| void | ToggleMeshShowBackFace () |
| void | ToggleMeshShowWireframe () |
| void | ToggleImageStretchOption () |
| int | GetGLDepthFunc () const |
Public Member Functions inherited from cloudViewer::utility::IJsonConvertible | |
| virtual | ~IJsonConvertible () |
| virtual std::string | ToString () const |
| Convert to a styled string representation of JSON data for display. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from cloudViewer::utility::IJsonConvertible | |
| static bool | EigenVector3dFromJsonArray (Eigen::Vector3d &vec, const Json::Value &value) |
| static bool | EigenVector3dToJsonArray (const Eigen::Vector3d &vec, Json::Value &value) |
| static bool | EigenVector4dFromJsonArray (Eigen::Vector4d &vec, const Json::Value &value) |
| static bool | EigenVector4dToJsonArray (const Eigen::Vector4d &vec, Json::Value &value) |
| static bool | EigenMatrix3dFromJsonArray (Eigen::Matrix3d &mat, const Json::Value &value) |
| static bool | EigenMatrix3dToJsonArray (const Eigen::Matrix3d &mat, Json::Value &value) |
| static bool | EigenMatrix4dFromJsonArray (Eigen::Matrix4d &mat, const Json::Value &value) |
| static bool | EigenMatrix4dToJsonArray (const Eigen::Matrix4d &mat, Json::Value &value) |
| static bool | EigenMatrix4dFromJsonArray (Eigen::Matrix4d_u &mat, const Json::Value &value) |
| static bool | EigenMatrix4dToJsonArray (const Eigen::Matrix4d_u &mat, Json::Value &value) |
| static bool | EigenMatrix6dFromJsonArray (Eigen::Matrix6d &mat, const Json::Value &value) |
| static bool | EigenMatrix6dToJsonArray (const Eigen::Matrix6d &mat, Json::Value &value) |
| static bool | EigenMatrix6dFromJsonArray (Eigen::Matrix6d_u &mat, const Json::Value &value) |
| static bool | EigenMatrix6dToJsonArray (const Eigen::Matrix6d_u &mat, Json::Value &value) |
Defines rendering options for visualizer.
Enum class for point color for PointCloud.
| Enumerator | |
|---|---|
| Default | |
| Color | |
| XCoordinate | |
| YCoordinate | |
| ZCoordinate | |
| Normal | |
|
inline |
Default Constructor.
References light_color_, light_diffuse_power_, light_position_relative_, light_specular_power_, and light_specular_shininess_.
|
inlineoverride |
| void cloudViewer::visualization::RenderOption::ChangeLineWidth | ( | double | change | ) |
References line_width_, LINE_WIDTH_MAX, LINE_WIDTH_MIN, and LINE_WIDTH_STEP.
| void cloudViewer::visualization::RenderOption::ChangePointSize | ( | double | change | ) |
References point_size_, POINT_SIZE_MAX, POINT_SIZE_MIN, and POINT_SIZE_STEP.
|
overridevirtual |
Implements cloudViewer::utility::IJsonConvertible.
Reimplemented in cloudViewer::visualization::RenderOptionWithEditing.
References background_color_, default_mesh_color_, cloudViewer::utility::IJsonConvertible::EigenVector3dFromJsonArray(), image_max_depth_, image_stretch_option_, interpolation_option_, light_ambient_color_, light_color_, light_diffuse_power_, light_on_, light_position_relative_, light_specular_power_, light_specular_shininess_, line_width_, LogWarning, mesh_color_option_, mesh_shade_option_, mesh_show_back_face_, mesh_show_wireframe_, point_color_option_, point_show_normal_, point_size_, and show_coordinate_frame_.
Referenced by cloudViewer::visualization::RenderOptionWithEditing::ConvertFromJsonValue().
|
overridevirtual |
Implements cloudViewer::utility::IJsonConvertible.
Reimplemented in cloudViewer::visualization::RenderOptionWithEditing.
References background_color_, default_mesh_color_, cloudViewer::utility::IJsonConvertible::EigenVector3dToJsonArray(), image_max_depth_, image_stretch_option_, interpolation_option_, light_ambient_color_, light_color_, light_diffuse_power_, light_on_, light_position_relative_, light_specular_power_, light_specular_shininess_, line_width_, mesh_color_option_, mesh_shade_option_, mesh_show_back_face_, mesh_show_wireframe_, point_color_option_, point_show_normal_, point_size_, and show_coordinate_frame_.
Referenced by cloudViewer::visualization::RenderOptionWithEditing::ConvertToJsonValue().
| int cloudViewer::visualization::RenderOption::GetGLDepthFunc | ( | ) | const |
| void cloudViewer::visualization::RenderOption::SetPointSize | ( | double | size | ) |
References point_size_, POINT_SIZE_MAX, POINT_SIZE_MIN, and size.
Referenced by cloudViewer::visualization::VisualizerWithVertexSelection::SetPointSize().
|
inline |
References image_stretch_option_, OriginalSize, StretchKeepRatio, and StretchWithWindow.
|
inline |
References interpolation_option_, Linear, and Nearest.
|
inline |
References light_on_.
|
inline |
References mesh_show_back_face_.
|
inline |
References mesh_show_wireframe_.
|
inline |
References point_show_normal_.
|
inline |
References FlatShade, mesh_shade_option_, and SmoothShade.
| Eigen::Vector3d cloudViewer::visualization::RenderOption::background_color_ = Eigen::Vector3d::Ones() |
Background RGB color.
Referenced by ConvertFromJsonValue(), and ConvertToJsonValue().
| Eigen::Vector3d cloudViewer::visualization::RenderOption::default_mesh_color_ = Eigen::Vector3d(0.7, 0.7, 0.7) |
Referenced by ConvertFromJsonValue(), and ConvertToJsonValue().
| DepthFunc cloudViewer::visualization::RenderOption::depthFunc_ = DepthFunc::Less |
Referenced by GetGLDepthFunc().
| int cloudViewer::visualization::RenderOption::image_max_depth_ = 3000 |
Referenced by ConvertFromJsonValue(), and ConvertToJsonValue().
| ImageStretchOption cloudViewer::visualization::RenderOption::image_stretch_option_ |
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and ToggleImageStretchOption().
| TextureInterpolationOption cloudViewer::visualization::RenderOption::interpolation_option_ |
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and ToggleInterpolationOption().
| Eigen::Vector3d cloudViewer::visualization::RenderOption::light_ambient_color_ = Eigen::Vector3d::Zero() |
Referenced by ConvertFromJsonValue(), and ConvertToJsonValue().
| Eigen::Vector3d cloudViewer::visualization::RenderOption::light_color_[4] |
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and RenderOption().
| double cloudViewer::visualization::RenderOption::light_diffuse_power_[4] |
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and RenderOption().
| bool cloudViewer::visualization::RenderOption::light_on_ = true |
Whether to turn on Phong lighting.
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and ToggleLightOn().
| Eigen::Vector3d cloudViewer::visualization::RenderOption::light_position_relative_[4] |
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and RenderOption().
| double cloudViewer::visualization::RenderOption::light_specular_power_[4] |
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and RenderOption().
| double cloudViewer::visualization::RenderOption::light_specular_shininess_[4] |
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and RenderOption().
| double cloudViewer::visualization::RenderOption::line_width_ = LINE_WIDTH_DEFAULT |
Line width for LineSet.
Referenced by ChangeLineWidth(), ConvertFromJsonValue(), and ConvertToJsonValue().
| const double cloudViewer::visualization::RenderOption::LINE_WIDTH_DEFAULT = 1.0 |
| const double cloudViewer::visualization::RenderOption::LINE_WIDTH_MAX = 10.0 |
Referenced by ChangeLineWidth().
| const double cloudViewer::visualization::RenderOption::LINE_WIDTH_MIN = 1.0 |
Referenced by ChangeLineWidth().
| const double cloudViewer::visualization::RenderOption::LINE_WIDTH_STEP = 1.0 |
Referenced by ChangeLineWidth().
| MeshColorOption cloudViewer::visualization::RenderOption::mesh_color_option_ = MeshColorOption::Color |
Color option for TriangleMesh.
Referenced by ConvertFromJsonValue(), and ConvertToJsonValue().
| MeshShadeOption cloudViewer::visualization::RenderOption::mesh_shade_option_ = MeshShadeOption::FlatShade |
Mesh shading option for TriangleMesh.
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and ToggleShadingOption().
| bool cloudViewer::visualization::RenderOption::mesh_show_back_face_ = false |
Whether to show back faces for TriangleMesh.
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), cloudViewer::visualization::DrawGeometries(), and ToggleMeshShowBackFace().
| bool cloudViewer::visualization::RenderOption::mesh_show_wireframe_ = false |
| PointColorOption cloudViewer::visualization::RenderOption::point_color_option_ = PointColorOption::Default |
Point color option for PointCloud.
Referenced by ConvertFromJsonValue(), and ConvertToJsonValue().
| bool cloudViewer::visualization::RenderOption::point_show_normal_ = false |
Whether to show normal for PointCloud.
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), cloudViewer::visualization::DrawGeometries(), and TogglePointShowNormal().
| double cloudViewer::visualization::RenderOption::point_size_ = POINT_SIZE_DEFAULT |
| const double cloudViewer::visualization::RenderOption::POINT_SIZE_DEFAULT = 5.0 |
| const double cloudViewer::visualization::RenderOption::POINT_SIZE_MAX = 25.0 |
Referenced by ChangePointSize(), and SetPointSize().
| const double cloudViewer::visualization::RenderOption::POINT_SIZE_MIN = 1.0 |
Referenced by ChangePointSize(), and SetPointSize().
| const double cloudViewer::visualization::RenderOption::POINT_SIZE_STEP = 1.0 |
Referenced by ChangePointSize().
| bool cloudViewer::visualization::RenderOption::show_coordinate_frame_ = false |
Whether to show coordinate frame.
Referenced by ConvertFromJsonValue(), ConvertToJsonValue(), and main().