MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ogl::CamTrackball Class Reference

A trackball camera control that consumes mouse events and delivers viewing parameters for the camera. More...

#include <camera_trackball.h>

Public Member Functions

 CamTrackball (void)
 
bool consume_event (KeyboardEvent const &event)
 
bool consume_event (MouseEvent const &event)
 
math::Vec3f get_campos (void) const
 
math::Vec3f const & get_upvec (void) const
 
math::Vec3f get_viewdir (void) const
 
void set_camera (Camera *camera)
 
void set_camera_params (math::Vec3f const &center, math::Vec3f const &lookat, math::Vec3f const &upvec)
 

Detailed Description

A trackball camera control that consumes mouse events and delivers viewing parameters for the camera.

Definition at line 24 of file camera_trackball.h.

Constructor & Destructor Documentation

◆ CamTrackball()

ogl::CamTrackball::CamTrackball ( void  )

Definition at line 20 of file camera_trackball.cc.

Member Function Documentation

◆ consume_event() [1/2]

bool ogl::CamTrackball::consume_event ( KeyboardEvent const &  event)

Definition at line 103 of file camera_trackball.cc.

◆ consume_event() [2/2]

bool ogl::CamTrackball::consume_event ( MouseEvent const &  event)

Definition at line 32 of file camera_trackball.cc.

◆ get_campos()

math::Vec3f ogl::CamTrackball::get_campos ( void  ) const
inline

Definition at line 74 of file camera_trackball.h.

◆ get_upvec()

math::Vec3f const & ogl::CamTrackball::get_upvec ( void  ) const
inline

Definition at line 86 of file camera_trackball.h.

◆ get_viewdir()

math::Vec3f ogl::CamTrackball::get_viewdir ( void  ) const
inline

Definition at line 80 of file camera_trackball.h.

◆ set_camera()

void ogl::CamTrackball::set_camera ( Camera camera)
inline

Definition at line 68 of file camera_trackball.h.

◆ set_camera_params()

void ogl::CamTrackball::set_camera_params ( math::Vec3f const &  center,
math::Vec3f const &  lookat,
math::Vec3f const &  upvec 
)

Definition at line 245 of file camera_trackball.cc.


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