22 #ifndef _USERCAMERA_HH_
23 #define _USERCAMERA_HH_
35 class UserCameraPrivate;
58 public:
void Load(sdf::ElementPtr _sdf);
67 public:
virtual void Update();
70 public:
virtual void PostRender();
77 public:
virtual void SetWorldPose(
const math::Pose &_pose);
85 public:
void HandleKeyPressEvent(
const std::string &_key);
89 public:
void HandleKeyReleaseEvent(
const std::string &_key);
93 public:
void SetViewController(
const std::string &_type);
98 public:
void SetViewController(
const std::string &_type,
103 public: std::string GetViewControllerTypeString();
108 public:
void Resize(
unsigned int _w,
unsigned int _h);
115 public:
void SetViewportDimensions(
float _x,
float _y,
120 public:
float GetAvgFPS()
const;
124 public:
unsigned int GetTriangleCount()
const;
128 public:
void MoveToVisual(
VisualPtr _visual);
131 public:
virtual bool MoveToPosition(
const math::Pose &_pose,
136 public:
void MoveToVisual(
const std::string &_visualName);
142 public:
virtual void SetRenderTarget(Ogre::RenderTarget *_target);
155 public:
void EnableViewController(
bool _value)
const;
174 public:
virtual unsigned int GetImageWidth()
const;
177 public:
virtual unsigned int GetImageHeight()
const;
181 public:
bool IsCameraSetInWorldFile();
185 public:
void SetUseSDFPose(
bool _value);
198 protected:
virtual bool AttachToVisualImpl(
VisualPtr _visual,
199 bool _inheritOrientation,
double _minDist = 0,
200 double _maxDist = 0);
203 protected:
virtual void AnimationComplete();
210 protected:
virtual bool TrackVisualImpl(
VisualPtr _visual);
214 private:
void ToggleShowVisual();
219 private:
void ShowVisual(
bool _show);
223 private:
void OnMoveToVisualComplete();