AnimEngine
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
FreeLookCamera Class Reference
Inheritance diagram for FreeLookCamera:
Inheritance graph
[legend]
Collaboration diagram for FreeLookCamera:
Collaboration graph
[legend]

Classes

class  NavigationParameters
 

Public Member Functions

 FreeLookCamera (float fov, const glm::vec3 &loc)
 
 FreeLookCamera (float fov, const glm::vec3 &loc, float near_plane, float far_plane)
 
virtual glm::mat4 getView () const override
 
virtual glm::vec3 getViewDir () const override
 
virtual glm::vec3 getViewDir (const Pose &aPoseOverride) const override
 
virtual glm::mat4 getView (const Pose &aPoseOverride) const override
 
virtual double getSpeed () const
 
virtual double getBoostedSpeed () const
 
virtual void setSpeed (double speed)
 
virtual void setBoostedSpeed (double speed)
 
virtual void driveCamera (const NavigationParameters &parameters)
 
virtual void collectAndDrive (GLFWwindow *window)
 
- Public Member Functions inherited from BaseCameraEntity
 BaseCameraEntity (float fov, const glm::vec3 &loc)
 
 BaseCameraEntity (float fov, const glm::vec3 &loc, float near_plane, float far_plane)
 
virtual glm::vec3 getLocation () const override
 
virtual const PosegetPose () const override
 
virtual void setPose (const Pose &pose) override
 
virtual glm::mat4 getPerspective (float aspect) const override
 
virtual glm::mat4 getOrthographic () const override
 
glm::mat4 getOrthographic (float left, float right, float bottom, float top, float near_plane, float far_plane)
 
virtual void setNearPlane (float near_plane)
 
virtual void setFarPlane (float far_plane)
 
- Public Member Functions inherited from Entity
 Entity (const std::string &name)
 
const ent_uuid_t & UUID () const
 
const std::string & getName () const
 
void setName (const std::string &name)
 
void addChild (Entity *entity)
 
virtual void unlink ()
 
virtual void link (Entity *parent)
 
virtual Entityreplace (Entity *replacement)
 Replace the node in the tree with 'replacement' and return original node ('this')
 
const std::map< ent_uuid_t, Entity * > & getChildren () const
 
size_t numChildren () const
 
bool hasParent () const
 
EntitygetParent ()
 
const EntitygetParent () const
 
- Public Member Functions inherited from PosedComponent
virtual bool isPosed () const override
 
- Public Member Functions inherited from RootComponent
virtual bool isDrawable () const
 
- Public Member Functions inherited from PoseableComponent
virtual bool isPoseable () const override
 
- Public Member Functions inherited from CachedFinalPose
virtual const PosegetCachedFinalPose () const
 
virtual void setCachedFinalPose (const Pose &aPose)
 

Static Public Member Functions

static void collect_camera_controls (GLFWwindow *window, NavigationParameters &params, double speed=2.0, double boosted_speed=8.0, double crawl_speed=0.5)
 

Protected Attributes

double azimuth = 0.0
 
double angle = 0.0
 
double speed = 2.0
 
double boosted_speed = 8.0
 
double crawl_speed = 0.5
 
glm::vec3 updir = vec3(0.0, 1.0, 0.0)
 
- Protected Attributes inherited from Entity
std::string _name
 
Entity_parent = nullptr
 
std::map< ent_uuid_t, Entity * > _children
 
- Protected Attributes inherited from CachedFinalPose
Pose _mCachedFinalPose
 

Additional Inherited Members

- Public Attributes inherited from BaseCameraEntity
float fov
 
float near_plane
 
float far_plane
 
Pose pose
 
- Public Attributes inherited from Entity
unsigned int traversal_scratch = 0
 

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