17 #include <GLFW/glfw3.h>
21 #include <unordered_map>
24 namespace visualization {
33 typedef Eigen::Matrix<float, 3, 1, Eigen::ColMajor>
GLVector3f;
34 typedef Eigen::Matrix<float, 4, 1, Eigen::ColMajor>
GLVector4f;
35 typedef Eigen::Matrix<float, 4, 4, Eigen::ColMajor>
GLMatrix4f;
38 const Eigen::Vector3d &lookat,
39 const Eigen::Vector3d &up);
58 Eigen::Vector3d
Unproject(
const Eigen::Vector3d &screen_point,
GLMatrix4f LookAt(const Eigen::Vector3d &eye, const Eigen::Vector3d &lookat, const Eigen::Vector3d &up)
const std::unordered_map< int, unsigned int > & GetTextureTypeMap()
GLMatrix4f Perspective(double field_of_view_, double aspect, double z_near, double z_far)
Eigen::Matrix< float, 4, 1, Eigen::ColMajor > GLVector4f
const std::unordered_map< int, unsigned int > & GetTextureFormatMap()
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > GLMatrix4f
Eigen::Vector3d Unproject(const Eigen::Vector3d &screen_point, const GLMatrix4f &mvp_matrix, const int width, const int height)
Eigen::Vector3d Project(const Eigen::Vector3d &point, const GLMatrix4f &mvp_matrix, const int width, const int height)
Eigen::Matrix< float, 3, 1, Eigen::ColMajor > GLVector3f
int ColorCodeToPickIndex(const Eigen::Vector4i &color)
GLMatrix4f Ortho(double left, double right, double bottom, double top, double z_near, double z_far)
Generic file read and write utility for python interface.
Eigen::Matrix< Index, 4, 1 > Vector4i