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();
Basic camera sensor.
Definition: Camera.hh:77
Generic description of a mouse event.
Definition: MouseEvent.hh:32
Encapsulates a position and rotation in three space.
Definition: Pose.hh:40
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
Private data for the UserCamera class.
Definition: UserCameraPrivate.hh:26
Generic integer x, y vector.
Definition: Vector2i.hh:39
A camera used for user visualization of a scene.
Definition: UserCamera.hh:46
A class that creates a CEGUI overlay on a render window.
Definition: GUIOverlay.hh:55
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:72
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:100
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48