36 namespace visualization {
62 const Eigen::Matrix4d &model_matrix = Eigen::Matrix4d::Identity());
83 virtual void Scale(
double scale);
91 virtual void Rotate(
double x,
double y,
double xo = 0.0,
double yo = 0.0);
108 virtual void Roll(
double x);
void Reset()
Definition: BoundingBox.cpp:40
static const double ROTATION_RADIAN_PER_PIXEL
Definition: ViewControl.h:50
GLHelper::GLVector3f GetRight() const
Definition: ViewControl.h:132
double distance_
Definition: ViewControl.h:147
double z_near_
Definition: ViewControl.h:152
Eigen::Matrix< GLfloat, 3, 1, Eigen::ColMajor > GLVector3f
Definition: GLHelper.h:38
int Dimension() const
Definition: Geometry.h:56
virtual void ChangeFieldOfView(double step)
Definition: ViewControl.cpp:231
Definition: Geometry.h:32
GLHelper::GLMatrix4f view_matrix_
Definition: ViewControl.h:155
void SetProjectionParameters()
Definition: ViewControl.cpp:215
int window_width_
Definition: ViewControl.h:139
Eigen::Vector3d lookat_
Definition: ViewControl.h:143
static const double ZOOM_MAX
Definition: ViewControl.h:47
ProjectionType
Definition: ViewControl.h:52
ProjectionType GetProjectionType() const
Definition: ViewControl.cpp:198
bool ConvertFromViewParameters(const ViewParameters &status)
Definition: ViewControl.cpp:97
const BoundingBox & GetBoundingBox() const
Definition: ViewControl.h:110
Definition: ViewControl.h:38
int GetWindowWidth() const
Definition: ViewControl.h:133
static const double FIELD_OF_VIEW_MAX
Definition: ViewControl.h:40
virtual void Scale(double scale)
Definition: ViewControl.cpp:246
GLHelper::GLMatrix4f model_matrix_
Definition: ViewControl.h:156
double z_far_
Definition: ViewControl.h:153
static const double ZOOM_DEFAULT
Definition: ViewControl.h:45
void ResetBoundingBox()
Definition: ViewControl.h:112
Definition: ViewControl.h:54
static const double FIELD_OF_VIEW_DEFAULT
Definition: ViewControl.h:42
Eigen::Matrix< GLfloat, 4, 4, Eigen::ColMajor > GLMatrix4f
Definition: GLHelper.h:40
GLHelper::GLVector3f GetEye() const
Definition: ViewControl.h:128
double field_of_view_
Definition: ViewControl.h:148
Definition: BoundingBox.h:37
Definition: ViewControl.h:53
Eigen::Vector3d eye_
Definition: ViewControl.h:142
GLHelper::GLMatrix4f GetProjectionMatrix() const
Definition: ViewControl.h:123
void SetViewMatrices(const Eigen::Matrix4d &model_matrix=Eigen::Matrix4d::Identity())
Definition: ViewControl.cpp:48
GLHelper::GLVector3f GetUp() const
Definition: ViewControl.h:130
Definition: Geometry3D.h:38
Eigen::Vector3d right_
Definition: ViewControl.h:146
virtual void Translate(double x, double y, double xo=0.0, double yo=0.0)
Definition: ViewControl.cpp:265
virtual void ChangeWindowSize(int width, int height)
Definition: ViewControl.cpp:239
double GetZFar() const
Definition: ViewControl.h:136
static const double FIELD_OF_VIEW_STEP
Definition: ViewControl.h:43
GLHelper::GLVector3f GetLookat() const
Definition: ViewControl.h:129
double GetZNear() const
Definition: ViewControl.h:135
static const double FIELD_OF_VIEW_MIN
Definition: ViewControl.h:41
static const double ZOOM_MIN
Definition: ViewControl.h:46
double aspect_
Definition: ViewControl.h:151
GLHelper::GLMatrix4f GetMVPMatrix() const
Definition: ViewControl.h:122
Definition: PinholeCameraParameters.h:37
void FitInGeometry(const geometry::Geometry &geometry)
Definition: ViewControl.h:114
int window_height_
Definition: ViewControl.h:140
GLHelper::GLMatrix4f MVP_matrix_
Definition: ViewControl.h:157
int GetWindowHeight() const
Definition: ViewControl.h:134
Definition: PinholeCameraIntrinsic.cpp:34
double zoom_
Definition: ViewControl.h:149
virtual void Roll(double x)
Definition: ViewControl.cpp:276
int height
Definition: FilePCD.cpp:68
Eigen::Vector3d up_
Definition: ViewControl.h:144
Definition: ViewParameters.h:37
double view_ratio_
Definition: ViewControl.h:150
BoundingBox bounding_box_
Definition: ViewControl.h:141
bool ConvertToViewParameters(ViewParameters &status) const
Function to get equivalent view parameters (support orthogonal)
Definition: ViewControl.cpp:86
GLHelper::GLMatrix4f projection_matrix_
Definition: ViewControl.h:154
GLHelper::GLVector3f GetFront() const
Definition: ViewControl.h:131
bool ConvertFromPinholeCameraParameters(const camera::PinholeCameraParameters ¶meters)
Definition: ViewControl.cpp:152
virtual void Reset()
Definition: ViewControl.cpp:206
void FitInGeometry(const geometry::Geometry3D &geometry)
Definition: BoundingBox.cpp:45
Eigen::Vector3d front_
Definition: ViewControl.h:145
bool ConvertToPinholeCameraParameters(camera::PinholeCameraParameters ¶meters)
Definition: ViewControl.cpp:109
virtual void Rotate(double x, double y, double xo=0.0, double yo=0.0)
Definition: ViewControl.cpp:251
GLHelper::GLMatrix4f GetModelMatrix() const
Definition: ViewControl.h:127
double GetFieldOfView() const
Definition: ViewControl.h:121
GLHelper::GLMatrix4f GetViewMatrix() const
Definition: ViewControl.h:126
static const double ZOOM_STEP
Definition: ViewControl.h:48
int width
Definition: FilePCD.cpp:67