Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Camera Class Reference

#include <camera.h>

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 36 of file camera.h.

Constructor & Destructor Documentation

◆ Camera() [1/2]

Camera::Camera ( void  )

Definition at line 18 of file camera.cpp.

◆ Camera() [2/2]

Camera::Camera ( const Camera other)

Definition at line 55 of file camera.cpp.

◆ ~Camera()

Camera::~Camera ( )
virtual

Definition at line 60 of file camera.cpp.

Member Function Documentation

◆ activateGL()

void Camera::activateGL ( void  )

Setup OpenGL matrices and viewport

Definition at line 238 of file camera.cpp.

◆ direction()

Vector3f Camera::direction ( void  ) const

Definition at line 89 of file camera.cpp.

◆ fovY()

float Camera::fovY ( void  ) const
inline

Definition at line 57 of file camera.h.

◆ frame()

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

Definition at line 67 of file camera.h.

◆ localRotate()

void Camera::localRotate ( const Eigen::Quaternionf q)

Definition at line 166 of file camera.cpp.

◆ localTranslate()

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

Definition at line 184 of file camera.cpp.

◆ operator=()

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

Definition at line 34 of file camera.cpp.

◆ orientation()

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

Definition at line 64 of file camera.h.

◆ position()

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

Definition at line 61 of file camera.h.

◆ projectionMatrix()

const Matrix4f & Camera::projectionMatrix ( void  ) const

Definition at line 232 of file camera.cpp.

◆ right()

Vector3f Camera::right ( void  ) const

Definition at line 97 of file camera.cpp.

◆ rotateAroundTarget()

void Camera::rotateAroundTarget ( const Eigen::Quaternionf q)

Definition at line 145 of file camera.cpp.

◆ setDirection()

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

Definition at line 102 of file camera.cpp.

◆ setFovY()

void Camera::setFovY ( float  value)

Definition at line 83 of file camera.cpp.

◆ setFrame()

void Camera::setFrame ( const Frame f)

Definition at line 139 of file camera.cpp.

◆ setOrientation()

void Camera::setOrientation ( const Eigen::Quaternionf q)

Definition at line 133 of file camera.cpp.

◆ setPosition()

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

Definition at line 127 of file camera.cpp.

◆ setTarget()

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

Definition at line 117 of file camera.cpp.

◆ setUp()

void Camera::setUp ( const Eigen::Vector3f &  vectorUp)

◆ setViewport() [1/2]

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

Definition at line 65 of file camera.cpp.

◆ setViewport() [2/2]

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

Definition at line 75 of file camera.cpp.

◆ target()

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

Definition at line 76 of file camera.h.

◆ unProject() [1/2]

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

◆ unProject() [2/2]

Eigen::Vector3f Camera::unProject ( const Eigen::Vector2f &  uv,
float  depth 
) const

◆ up()

Vector3f Camera::up ( void  ) const

Definition at line 93 of file camera.cpp.

◆ updateProjectionMatrix()

void Camera::updateProjectionMatrix ( void  ) const
protected

Definition at line 211 of file camera.cpp.

◆ updateViewMatrix()

void Camera::updateViewMatrix ( void  ) const
protected

Definition at line 193 of file camera.cpp.

◆ viewMatrix()

const Affine3f & Camera::viewMatrix ( void  ) const

Definition at line 205 of file camera.cpp.

◆ vpHeight()

uint Camera::vpHeight ( void  ) const
inline

Definition at line 55 of file camera.h.

◆ vpWidth()

uint Camera::vpWidth ( void  ) const
inline

Definition at line 54 of file camera.h.

◆ vpX()

uint Camera::vpX ( void  ) const
inline

Definition at line 52 of file camera.h.

◆ vpY()

uint Camera::vpY ( void  ) const
inline

Definition at line 53 of file camera.h.

◆ zoom()

void Camera::zoom ( float  d)

Definition at line 174 of file camera.cpp.

Member Data Documentation

◆ mFarDist

float Camera::mFarDist
protected

Definition at line 115 of file camera.h.

◆ mFovY

float Camera::mFovY
protected

Definition at line 113 of file camera.h.

◆ mFrame

Frame Camera::mFrame
protected

Definition at line 102 of file camera.h.

◆ mNearDist

float Camera::mNearDist
protected

Definition at line 114 of file camera.h.

◆ mProjectionMatrix

Eigen::Matrix4f Camera::mProjectionMatrix
mutableprotected

Definition at line 105 of file camera.h.

◆ mProjIsUptodate

bool Camera::mProjIsUptodate
mutableprotected

Definition at line 108 of file camera.h.

◆ mTarget

Eigen::Vector3f Camera::mTarget
protected

Definition at line 111 of file camera.h.

◆ mViewIsUptodate

bool Camera::mViewIsUptodate
mutableprotected

Definition at line 107 of file camera.h.

◆ mViewMatrix

Eigen::Affine3f Camera::mViewMatrix
mutableprotected

Definition at line 104 of file camera.h.

◆ mVpHeight

uint Camera::mVpHeight
protected

Definition at line 100 of file camera.h.

◆ mVpWidth

uint Camera::mVpWidth
protected

Definition at line 100 of file camera.h.

◆ mVpX

uint Camera::mVpX
protected

Definition at line 99 of file camera.h.

◆ mVpY

uint Camera::mVpY
protected

Definition at line 99 of file camera.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:01