Public Member Functions | Static Public Member Functions | Protected Attributes
tango_gl::Camera Class Reference

#include <camera.h>

Inheritance diagram for tango_gl::Camera:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Camera ()
 Camera (const Camera &other)
glm::mat4 GetProjectionMatrix ()
glm::mat4 GetViewMatrix ()
Cameraoperator= (const Camera &)
void SetAspectRatio (const float aspect_ratio)
void SetFieldOfView (const float fov)
 ~Camera ()

Static Public Member Functions

static glm::mat4 ProjectionMatrixForCameraIntrinsics (float width, float height, float fx, float fy, float cx, float cy, float near, float far)

Protected Attributes

float aspect_ratio_
float far_clip_plane_
float field_of_view_
float near_clip_plane_

Detailed Description

Definition at line 23 of file camera.h.


Constructor & Destructor Documentation

Definition at line 22 of file camera.cpp.

tango_gl::Camera::Camera ( const Camera other)

Definition at line 46 of file camera.cpp.


Member Function Documentation

Definition at line 33 of file camera.cpp.

Definition at line 29 of file camera.cpp.

Camera& tango_gl::Camera::operator= ( const Camera )
glm::mat4 tango_gl::Camera::ProjectionMatrixForCameraIntrinsics ( float  width,
float  height,
float  fx,
float  fy,
float  cx,
float  cy,
float  near,
float  far 
) [static]

Create an OpenGL perspective matrix from window size, camera intrinsics, and clip settings.

Parameters:
width- The width of the camera image.
height- The height of the camera image.
fx- The x-axis focal length of the camera.
fy- The y-axis focal length of the camera.
cx- The x-coordinate principal point in pixels.
cy- The y-coordinate principal point in pixels.
near- The desired near z-clipping plane.
far- The desired far z-clipping plane.

Definition at line 49 of file camera.cpp.

void tango_gl::Camera::SetAspectRatio ( const float  aspect_ratio)

Definition at line 38 of file camera.cpp.

void tango_gl::Camera::SetFieldOfView ( const float  fov)

Definition at line 42 of file camera.cpp.


Member Data Documentation

Definition at line 54 of file camera.h.

Definition at line 55 of file camera.h.

Definition at line 53 of file camera.h.

Definition at line 55 of file camera.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:32