SpaghettiVis
Implementation of 2009 Everts et al. Depth-Dependent Halos: Illustrative Rendering of Dense Line Data
Public Member Functions | Private Attributes | List of all members
Camera Class Reference

Camera class. More...

#include <camera.h>

Public Member Functions

void reset ()
 
void buildViewMatrix (void)
 
void buildProjectionMatrix (void)
 
void zoom (float t)
 
void rotateAzimuth (float t)
 
void rotatePolar (float t)
 
void moveLeft (float t)
 
void moveRight (float t)
 
void moveForwards (float t)
 
void moveBackwards (float t)
 
void moveUp (float t)
 
void moveDown (float t)
 
void rotateUp (float t)
 
void rotateDown (float t)
 
void rotateLeft (float t)
 
void rotateRight (float t)
 
void setOrthogonalBorders (float left, float right, float top, float bottom)
 
glm::vec3 getUp ()
 
glm::vec3 getRight ()
 
glm::vec3 getTarget ()
 
glm::vec3 getPosition ()
 
bool isOrthogonal ()
 
float getFieldOfView ()
 
void setOrthogonal (bool orthogonal)
 
void setUp (glm::vec3 &up)
 
void setTarget (glm::vec3 &target)
 
void setFieldOfView (float fieldOfView)
 
void setNearPlane (float nearPlane)
 
void setFarPlane (float farPlane)
 
float getNearPlane ()
 
float getFarPlane ()
 
void setAspect (float aspect)
 
const glm::mat4 & getViewMatrix ()
 
const glm::mat4 & getProjectionMatrix ()
 

Private Attributes

glm::mat4 mViewMatrix
 
glm::mat4 mProjectionMatrix
 
float mRadius
 
float mAzimuth
 
float mPolar
 
glm::vec3 mUp
 
glm::vec3 mTarget
 
glm::vec3 mPos
 
float mFieldOfView
 
float mAspect
 
float mNear
 
float mFar
 
float mLeft
 
float mRight
 
float mTop
 
float mBottom
 
bool mOrthogonal
 

Detailed Description

Camera class.

Camera class supporting perspective and orthographic projection. Mouse interaction allows to rotate horizontally around target.


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