Cinder  0.9.1
Public Member Functions | List of all members
cinder::Arcball Class Reference

#include <Arcball.h>

Public Member Functions

 Arcball ()
 
 Arcball (CameraPersp *camera, const Sphere &sphere)
 
void mouseDown (const app::MouseEvent &event)
 
void mouseDown (const vec2 &mousePos, const ivec2 &windowSize)
 
void mouseDrag (const app::MouseEvent &event)
 
void mouseDrag (const vec2 &mousePos, const ivec2 &windowSize)
 
void resetQuat ()
 
const quat & getQuat () const
 
void setQuat (const quat &q)
 
void setSphere (const Sphere &s)
 
const SpheregetSphere () const
 
void setConstraintAxis (const vec3 &constraintAxis)
 
void setNoConstraintAxis ()
 
bool isUsingConstraint () const
 
const vec3 & getConstraintAxis () const
 
void mouseOnSphere (const vec2 &point, const ivec2 &windowSize, vec3 *resultVector, float *resultAngleAddition)
 
vec3 getFromVector () const
 
vec3 getToVector () const
 

Constructor & Destructor Documentation

cinder::Arcball::Arcball ( )
cinder::Arcball::Arcball ( CameraPersp camera,
const Sphere sphere 
)

Member Function Documentation

void cinder::Arcball::mouseDown ( const app::MouseEvent event)
void cinder::Arcball::mouseDown ( const vec2 &  mousePos,
const ivec2 &  windowSize 
)
void cinder::Arcball::mouseDrag ( const app::MouseEvent event)
void cinder::Arcball::mouseDrag ( const vec2 &  mousePos,
const ivec2 &  windowSize 
)
void cinder::Arcball::resetQuat ( )
const quat& cinder::Arcball::getQuat ( ) const
void cinder::Arcball::setQuat ( const quat &  q)
void cinder::Arcball::setSphere ( const Sphere s)
const Sphere& cinder::Arcball::getSphere ( ) const
void cinder::Arcball::setConstraintAxis ( const vec3 &  constraintAxis)
void cinder::Arcball::setNoConstraintAxis ( )
bool cinder::Arcball::isUsingConstraint ( ) const
const vec3& cinder::Arcball::getConstraintAxis ( ) const
void cinder::Arcball::mouseOnSphere ( const vec2 &  point,
const ivec2 &  windowSize,
vec3 *  resultVector,
float *  resultAngleAddition 
)
vec3 cinder::Arcball::getFromVector ( ) const
vec3 cinder::Arcball::getToVector ( ) const

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