Open3D (C++ API)  0.18.0
ViewParameters.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Eigen/Core>
11 #include <Eigen/StdVector>
12 
14 
15 namespace open3d {
16 namespace visualization {
17 
19 public:
20  typedef Eigen::Matrix<double, 17, 4, Eigen::RowMajor> Matrix17x4d;
21  typedef Eigen::Matrix<double, 17, 1> Vector17d;
22  typedef Eigen::aligned_allocator<Matrix17x4d> Matrix17x4d_allocator;
23 
24 public:
26  : field_of_view_(0),
27  zoom_(0),
28  lookat_(0, 0, 0),
29  up_(0, 0, 0),
30  front_(0, 0, 0),
31  boundingbox_min_(0, 0, 0),
32  boundingbox_max_(0, 0, 0) {}
33  ~ViewParameters() override {}
34 
35 public:
37  void ConvertFromVector17d(const Vector17d &v);
38  bool ConvertToJsonValue(Json::Value &value) const override;
39  bool ConvertFromJsonValue(const Json::Value &value) override;
40 
41 public:
43  double zoom_;
44  Eigen::Vector3d lookat_;
45  Eigen::Vector3d up_;
46  Eigen::Vector3d front_;
47  Eigen::Vector3d boundingbox_min_;
48  Eigen::Vector3d boundingbox_max_;
49 };
50 
51 } // namespace visualization
52 } // namespace open3d
Definition: IJsonConvertible.h:40
Definition: ViewParameters.h:18
Eigen::Matrix< double, 17, 4, Eigen::RowMajor > Matrix17x4d
Definition: ViewParameters.h:20
ViewParameters()
Definition: ViewParameters.h:25
Eigen::Vector3d up_
Definition: ViewParameters.h:45
double zoom_
Definition: ViewParameters.h:43
Vector17d ConvertToVector17d()
Definition: ViewParameters.cpp:19
bool ConvertToJsonValue(Json::Value &value) const override
Definition: ViewParameters.cpp:41
Eigen::Vector3d boundingbox_min_
Definition: ViewParameters.h:47
void ConvertFromVector17d(const Vector17d &v)
Definition: ViewParameters.cpp:31
Eigen::Vector3d lookat_
Definition: ViewParameters.h:44
Eigen::aligned_allocator< Matrix17x4d > Matrix17x4d_allocator
Definition: ViewParameters.h:22
double field_of_view_
Definition: ViewParameters.h:42
Eigen::Vector3d front_
Definition: ViewParameters.h:46
Eigen::Vector3d boundingbox_max_
Definition: ViewParameters.h:48
bool ConvertFromJsonValue(const Json::Value &value) override
Definition: ViewParameters.cpp:62
Eigen::Matrix< double, 17, 1 > Vector17d
Definition: ViewParameters.h:21
~ViewParameters() override
Definition: ViewParameters.h:33
Definition: PinholeCameraIntrinsic.cpp:16