2#ifndef RENDERUTIL_MAYACAMERAUTIL_H
3#define RENDERUTIL_MAYACAMERAUTIL_H
35 void Update(
float deltaTime);
A polar coordinate inline class, consisting of 2 angles theta (latitude) and rho (longitude).
Definition polar.h:28
Helper class to implement a "Maya camera" with pan/zoom/orbit.
Definition mayacamerautil.h:25
Math::mat4 cameraTransform
Definition mayacamerautil.h:77
void SetZoomButton(bool b)
set state of zoom button
Definition mayacamerautil.h:113
Math::vec2 mouseMovement
Definition mayacamerautil.h:84
void Setup(const Math::point &defaultCenterOfInterest, const Math::point &defaultEyePos, const Math::vector &defaultUpVec)
setup the object
Definition mayacamerautil.cc:41
void SetZoomOutButton(bool b)
set state of zoom-out button
Definition mayacamerautil.h:131
const Math::point & GetCenterOfInterest() const
get center of interest
Definition mayacamerautil.h:167
MayaCameraUtil()
constructor
Definition mayacamerautil.cc:16
void SetCenterOfInterest(const Math::point &point)
set center of interest
Definition mayacamerautil.h:212
void SetOrbitButton(bool b)
set state of orbit button
Definition mayacamerautil.h:95
void SetPanning(const Math::vec2 &v)
set panning vector
Definition mayacamerautil.h:194
float zoomOut
Definition mayacamerautil.h:86
bool zoomOutButton
Definition mayacamerautil.h:83
bool panButton
Definition mayacamerautil.h:80
void Reset()
reset the object to its default settings
Definition mayacamerautil.cc:53
void SetOrbiting(const Math::vec2 &v)
set orbiting vector
Definition mayacamerautil.h:203
Math::scalar viewDistance
Definition mayacamerautil.h:74
Math::point centerOfInterest
Definition mayacamerautil.h:75
void SetMouseMovement(const Math::vec2 &v)
set mouse movement
Definition mayacamerautil.h:140
Math::point defaultEyePos
Definition mayacamerautil.h:70
Math::vec2 orbiting
Definition mayacamerautil.h:88
void SetZoomOut(float v)
set zoom-out value
Definition mayacamerautil.h:185
bool zoomInButton
Definition mayacamerautil.h:82
void SetZoomIn(float v)
set zoom-in value
Definition mayacamerautil.h:176
const Math::mat4 & GetCameraTransform() const
get the current camera transform
Definition mayacamerautil.h:149
float zoomIn
Definition mayacamerautil.h:85
bool zoomButton
Definition mayacamerautil.h:81
void SetViewDistance(const Math::scalar &distance)
set view distance
Definition mayacamerautil.h:221
Math::vec2 panning
Definition mayacamerautil.h:87
Math::point defaultCenterOfInterest
Definition mayacamerautil.h:69
Math::vector defaultUpVec
Definition mayacamerautil.h:71
void SetZoomInButton(bool b)
set state of zoom-in button
Definition mayacamerautil.h:122
void SetPanButton(bool b)
set state of panning button
Definition mayacamerautil.h:104
bool orbitButton
Definition mayacamerautil.h:79
Math::polar viewAngles
Definition mayacamerautil.h:73
const Math::scalar & GetViewDistance() const
get view distance
Definition mayacamerautil.h:158
float scalar
Definition scalar.h:45
Helpers to create geometry.
Definition drawfullscreenquad.cc:10
@ Update
Definition resourceloader.h:53
Nebula's scalar datatype.
A 4x4 single point precision float matrix.
Definition mat4.h:49
Represents a 3D point in space.
Definition point.h:22
A 2-component float vector class.
Definition vec2.h:21
A vector is a 3D direction in space.
Definition vector.h:22