Ignition Rendering

API Reference

0.1.0
OgreCamera.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 #ifndef IGNITION_RENDERING_OGRE_OGRECAMERA_HH_
18 #define IGNITION_RENDERING_OGRE_OGRECAMERA_HH_
19 
23 
24 namespace Ogre
25 {
26  class Camera;
27 }
28 
29 namespace ignition
30 {
31  namespace rendering
32  {
33  class IGNITION_RENDERING_OGRE_VISIBLE OgreCamera :
34  public BaseCamera<OgreSensor>
35  {
36  protected: OgreCamera();
37 
38  public: virtual ~OgreCamera();
39 
40  public: virtual void SetHFOV(const math::Angle &_angle);
41 
42  public: virtual double AspectRatio() const;
43 
44  public: virtual void SetAspectRatio(const double _ratio);
45 
46  public: virtual unsigned int AntiAliasing() const;
47 
48  public: virtual void SetAntiAliasing(const unsigned int _aa);
49 
50  public: virtual void SetFarClipPlane(const double _far);
51 
52  public: virtual void SetNearClipPlane(const double _near);
53 
54  public: virtual math::Color BackgroundColor() const;
55 
56  public: virtual void SetBackgroundColor(const math::Color &_color);
57 
58  public: virtual void Render();
59 
60  public: virtual RenderWindowPtr CreateRenderWindow();
61 
62  public: virtual math::Matrix4d ProjectionMatrix() const;
63 
64  public: virtual math::Matrix4d ViewMatrix() const;
65 
66  protected: virtual RenderTargetPtr RenderTarget() const;
67 
68  protected: virtual void Init();
69 
70  private: void CreateCamera();
71 
72  protected: virtual void CreateRenderTexture();
73 
74  protected: Ogre::Camera *ogreCamera = nullptr;
75 
77 
78  protected: math::Color backgroundColor;
79 
80  private: friend class OgreScene;
81  private: friend class OgreRayQuery;
82  };
83  }
84 }
85 #endif
OgreRenderTargetPtr renderTexture
Definition: OgreCamera.hh:76
Definition: BaseCamera.hh:39
math::Color backgroundColor
Definition: OgreCamera.hh:78
Represents a render-target to which cameras can render images.
Definition: RenderTarget.hh:34
A Ray Query class used for computing ray object intersections.
Definition: OgreRayQuery.hh:37
Definition: OgreScene.hh:34
Definition: OgreCamera.hh:33
Definition: ArrowVisual.hh:22