12 #include <json/json.h>
17 namespace visualization {
20 value[
"class_name"] =
"RenderOption";
21 value[
"version_major"] = 1;
22 value[
"version_minor"] = 0;
25 value[
"background_color"])) {
32 value[
"light_ambient_color"])) {
36 value[
"light0_position"])) {
46 value[
"light1_position"])) {
56 value[
"light2_position"])) {
66 value[
"light3_position"])) {
85 value[
"default_mesh_color"])) {
99 if (!value.isObject()) {
101 "ViewTrajectory read JSON failed: unsupported json format.");
104 if (value.get(
"class_name",
"").asString() !=
"RenderOption" ||
105 value.get(
"version_major", 1).asInt() != 1 ||
106 value.get(
"version_minor", 0).asInt() != 0) {
108 "ViewTrajectory read JSON failed: unsupported json format.");
113 value[
"background_color"])) {
123 value[
"light_ambient_color"])) {
127 value[
"light0_position"])) {
143 value[
"light1_position"])) {
159 value[
"light2_position"])) {
175 value[
"light3_position"])) {
212 value[
"default_mesh_color"])) {
static bool EigenVector3dFromJsonArray(Eigen::Vector3d &vec, const Json::Value &value)
static bool EigenVector3dToJsonArray(const Eigen::Vector3d &vec, Json::Value &value)
const double POINT_SIZE_MAX
Eigen::Vector3d default_mesh_color_
bool ConvertToJsonValue(Json::Value &value) const override
const double LINE_WIDTH_MAX
Eigen::Vector3d light_color_[4]
MeshShadeOption
Enum class for mesh shading for TriangleMesh.
void ChangePointSize(double change)
bool mesh_show_back_face_
Whether to show back faces for TriangleMesh.
const double LINE_WIDTH_MIN
TextureInterpolationOption interpolation_option_
Eigen::Vector3d light_position_relative_[4]
Eigen::Vector3d background_color_
Background RGB color.
PointColorOption
Enum class for point color for PointCloud.
TextureInterpolationOption
double light_diffuse_power_[4]
int GetGLDepthFunc() const
Eigen::Vector3d light_ambient_color_
MeshColorOption mesh_color_option_
Color option for TriangleMesh.
bool point_show_normal_
Whether to show normal for PointCloud.
MeshColorOption
Enum class for color for TriangleMesh.
double light_specular_power_[4]
bool ConvertFromJsonValue(const Json::Value &value) override
const double POINT_SIZE_MIN
double point_size_
Point size for PointCloud.
void ChangeLineWidth(double change)
double line_width_
Line width for LineSet.
const double POINT_SIZE_STEP
ImageStretchOption image_stretch_option_
MeshShadeOption mesh_shade_option_
Mesh shading option for TriangleMesh.
double light_specular_shininess_[4]
const double LINE_WIDTH_STEP
bool show_coordinate_frame_
Whether to show coordinate frame.
bool light_on_
Whether to turn on Phong lighting.
PointColorOption point_color_option_
Point color option for PointCloud.
bool mesh_show_wireframe_
void SetPointSize(double size)
Generic file read and write utility for python interface.