UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::action::mode3d::Camera Class Reference

#include <ugdk/action/3D/camera.h>

Inheritance diagram for ugdk::action::mode3d::Camera:
Collaboration diagram for ugdk::action::mode3d::Camera:

Public Member Functions

 Camera (Scene3D *scene, const std::string &camName="MainCam")
 
 ~Camera ()
 
void SetParameters (const Ogre::Vector3 &parent_origin_offset=Ogre::Vector3::ZERO, double max_dist=7.5)
 
void SetDistance (double dist)
 
double GetDistance ()
 
void Rotate (double yaw, double pitch)
 
Ogre::Camera * camera ()
 
Ogre::Quaternion orientation ()
 
Ogre::Quaternion actual_orientation ()
 
- Public Member Functions inherited from ugdk::action::mode3d::Element
 Element (Scene3D &scene, const std::string &name="")
 
virtual ~Element ()
 
Elementoperator= (const Element &)=delete
 
 Element (const Element &)=delete
 
void AddComponent (const std::shared_ptr< Component > &the_component)
 
template<class T >
T * component ()
 
void AttachTo (Element &parent)
 
void AttachTo (Scene3D &scene)
 
void Destroy ()
 
bool marked_for_removal () const
 
Ogre::SceneNode & node ()
 
Scene3Dscene ()
 
std::string name () const
 

Protected Member Functions

virtual void OnAttach () override
 
virtual void OnParentDestroyed () override
 
void setupTransform ()
 

Protected Attributes

Ogre::Camera * camera_
 
Ogre::Vector3 offset_
 
double dist_
 
double max_dist_
 
double cumulative_pitch_
 

Constructor & Destructor Documentation

ugdk::action::mode3d::Camera::Camera ( Scene3D scene,
const std::string &  camName = "MainCam" 
)
ugdk::action::mode3d::Camera::~Camera ( )

Member Function Documentation

Ogre::Quaternion ugdk::action::mode3d::Camera::actual_orientation ( )
Ogre::Camera* ugdk::action::mode3d::Camera::camera ( )
inline
double ugdk::action::mode3d::Camera::GetDistance ( )
inline
virtual void ugdk::action::mode3d::Camera::OnAttach ( )
overrideprotectedvirtual

Reimplemented from ugdk::action::mode3d::Element.

virtual void ugdk::action::mode3d::Camera::OnParentDestroyed ( )
overrideprotectedvirtual

Reimplemented from ugdk::action::mode3d::Element.

Ogre::Quaternion ugdk::action::mode3d::Camera::orientation ( )
void ugdk::action::mode3d::Camera::Rotate ( double  yaw,
double  pitch 
)
void ugdk::action::mode3d::Camera::SetDistance ( double  dist)
void ugdk::action::mode3d::Camera::SetParameters ( const Ogre::Vector3 &  parent_origin_offset = Ogre::Vector3::ZERO,
double  max_dist = 7.5 
)
void ugdk::action::mode3d::Camera::setupTransform ( )
protected

Member Data Documentation

Ogre::Camera* ugdk::action::mode3d::Camera::camera_
protected
double ugdk::action::mode3d::Camera::cumulative_pitch_
protected
double ugdk::action::mode3d::Camera::dist_
protected
double ugdk::action::mode3d::Camera::max_dist_
protected
Ogre::Vector3 ugdk::action::mode3d::Camera::offset_
protected

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