Public Member Functions | Protected Member Functions | Protected Attributes
Camera Class Reference

#include <camera.h>

List of all members.

Public Member Functions

void activateGL (void)
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Camera (void)
 Camera (const Camera &other)
Eigen::Vector3f direction (void) const
float fovY (void) const
const Frameframe (void) const
void localRotate (const Eigen::Quaternionf &q)
void localTranslate (const Eigen::Vector3f &t)
Cameraoperator= (const Camera &other)
const Eigen::Quaternionforientation (void) const
const Eigen::Vector3f & position (void) const
const Eigen::Matrix4f & projectionMatrix (void) const
Eigen::Vector3f right (void) const
void rotateAroundTarget (const Eigen::Quaternionf &q)
void setDirection (const Eigen::Vector3f &newDirection)
void setFovY (float value)
void setFrame (const Frame &f)
void setOrientation (const Eigen::Quaternionf &q)
void setPosition (const Eigen::Vector3f &pos)
void setTarget (const Eigen::Vector3f &target)
void setUp (const Eigen::Vector3f &vectorUp)
void setViewport (uint offsetx, uint offsety, uint width, uint height)
void setViewport (uint width, uint height)
const Eigen::Vector3f & target (void)
Eigen::Vector3f unProject (const Eigen::Vector2f &uv, float depth, const Eigen::Matrix4f &invModelview) const
Eigen::Vector3f unProject (const Eigen::Vector2f &uv, float depth) const
Eigen::Vector3f up (void) const
const Eigen::Affine3fviewMatrix (void) const
uint vpHeight (void) const
uint vpWidth (void) const
uint vpX (void) const
uint vpY (void) const
void zoom (float d)
virtual ~Camera ()

Protected Member Functions

void updateProjectionMatrix (void) const
void updateViewMatrix (void) const

Protected Attributes

float mFarDist
float mFovY
Frame mFrame
float mNearDist
Eigen::Matrix4f mProjectionMatrix
bool mProjIsUptodate
Eigen::Vector3f mTarget
bool mViewIsUptodate
Eigen::Affine3f mViewMatrix
uint mVpHeight
uint mVpWidth
uint mVpX
uint mVpY

Detailed Description

Definition at line 51 of file camera.h.


Constructor & Destructor Documentation

Camera::Camera ( void  )

Definition at line 33 of file camera.cpp.

Camera::Camera ( const Camera other)

Definition at line 70 of file camera.cpp.

Camera::~Camera ( ) [virtual]

Definition at line 75 of file camera.cpp.


Member Function Documentation

void Camera::activateGL ( void  )

Setup OpenGL matrices and viewport

Definition at line 253 of file camera.cpp.

Vector3f Camera::direction ( void  ) const

Definition at line 104 of file camera.cpp.

float Camera::fovY ( void  ) const [inline]

Definition at line 72 of file camera.h.

const Frame& Camera::frame ( void  ) const [inline]

Definition at line 82 of file camera.h.

Definition at line 181 of file camera.cpp.

void Camera::localTranslate ( const Eigen::Vector3f &  t)

Definition at line 199 of file camera.cpp.

Camera & Camera::operator= ( const Camera other)

Definition at line 49 of file camera.cpp.

const Eigen::Quaternionf& Camera::orientation ( void  ) const [inline]

Definition at line 79 of file camera.h.

const Eigen::Vector3f& Camera::position ( void  ) const [inline]

Definition at line 76 of file camera.h.

const Matrix4f & Camera::projectionMatrix ( void  ) const

Definition at line 247 of file camera.cpp.

Vector3f Camera::right ( void  ) const

Definition at line 112 of file camera.cpp.

Definition at line 160 of file camera.cpp.

void Camera::setDirection ( const Eigen::Vector3f &  newDirection)

Definition at line 117 of file camera.cpp.

void Camera::setFovY ( float  value)

Definition at line 98 of file camera.cpp.

void Camera::setFrame ( const Frame f)

Definition at line 154 of file camera.cpp.

Definition at line 148 of file camera.cpp.

void Camera::setPosition ( const Eigen::Vector3f &  pos)

Definition at line 142 of file camera.cpp.

void Camera::setTarget ( const Eigen::Vector3f &  target)

Definition at line 132 of file camera.cpp.

void Camera::setUp ( const Eigen::Vector3f &  vectorUp)
void Camera::setViewport ( uint  offsetx,
uint  offsety,
uint  width,
uint  height 
)

Definition at line 80 of file camera.cpp.

void Camera::setViewport ( uint  width,
uint  height 
)

Definition at line 90 of file camera.cpp.

const Eigen::Vector3f& Camera::target ( void  ) [inline]

Definition at line 91 of file camera.h.

Eigen::Vector3f Camera::unProject ( const Eigen::Vector2f &  uv,
float  depth,
const Eigen::Matrix4f &  invModelview 
) const
Eigen::Vector3f Camera::unProject ( const Eigen::Vector2f &  uv,
float  depth 
) const
Vector3f Camera::up ( void  ) const

Definition at line 108 of file camera.cpp.

void Camera::updateProjectionMatrix ( void  ) const [protected]

Definition at line 226 of file camera.cpp.

void Camera::updateViewMatrix ( void  ) const [protected]

Definition at line 208 of file camera.cpp.

const Affine3f & Camera::viewMatrix ( void  ) const

Definition at line 220 of file camera.cpp.

uint Camera::vpHeight ( void  ) const [inline]

Definition at line 70 of file camera.h.

uint Camera::vpWidth ( void  ) const [inline]

Definition at line 69 of file camera.h.

uint Camera::vpX ( void  ) const [inline]

Definition at line 67 of file camera.h.

uint Camera::vpY ( void  ) const [inline]

Definition at line 68 of file camera.h.

void Camera::zoom ( float  d)

Definition at line 189 of file camera.cpp.


Member Data Documentation

float Camera::mFarDist [protected]

Definition at line 130 of file camera.h.

float Camera::mFovY [protected]

Definition at line 128 of file camera.h.

Frame Camera::mFrame [protected]

Definition at line 117 of file camera.h.

float Camera::mNearDist [protected]

Definition at line 129 of file camera.h.

Eigen::Matrix4f Camera::mProjectionMatrix [mutable, protected]

Definition at line 120 of file camera.h.

bool Camera::mProjIsUptodate [mutable, protected]

Definition at line 123 of file camera.h.

Eigen::Vector3f Camera::mTarget [protected]

Definition at line 126 of file camera.h.

bool Camera::mViewIsUptodate [mutable, protected]

Definition at line 122 of file camera.h.

Eigen::Affine3f Camera::mViewMatrix [mutable, protected]

Definition at line 119 of file camera.h.

uint Camera::mVpHeight [protected]

Definition at line 115 of file camera.h.

uint Camera::mVpWidth [protected]

Definition at line 115 of file camera.h.

uint Camera::mVpX [protected]

Definition at line 114 of file camera.h.

uint Camera::mVpY [protected]

Definition at line 114 of file camera.h.


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


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:34:10