11 #include <json/json.h>
13 #include <Eigen/Dense>
16 namespace visualization {
24 v.block<3, 1>(5, 0) =
up_;
25 v.block<3, 1>(8, 0) =
front_;
35 up_ = v.block<3, 1>(5, 0);
36 front_ = v.block<3, 1>(8, 0);
43 value[
"zoom"] =
zoom_;
63 if (!value.isObject()) {
65 "ViewParameters read JSON failed: unsupported json format.");
69 zoom_ = value.get(
"zoom", 0.7).asDouble();
83 value[
"boundingbox_min"])) {
88 value[
"boundingbox_max"])) {
static bool EigenVector3dFromJsonArray(Eigen::Vector3d &vec, const Json::Value &value)
static bool EigenVector3dToJsonArray(const Eigen::Vector3d &vec, Json::Value &value)
Vector17d ConvertToVector17d()
void ConvertFromVector17d(const Vector17d &v)
Eigen::Vector3d boundingbox_max_
Eigen::Vector3d boundingbox_min_
bool ConvertToJsonValue(Json::Value &value) const override
Eigen::Matrix< double, 17, 1 > Vector17d
bool ConvertFromJsonValue(const Json::Value &value) override
Generic file read and write utility for python interface.