RenderTypes.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-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 _RENDERTYPES_HH_
18 #define _RENDERTYPES_HH_
19 
20 #include <boost/shared_ptr.hpp>
21 #include "gazebo/gazebo_config.h"
22 #include "gazebo/util/system.hh"
23 
26 #define GZ_VISIBILITY_ALL 0x0FFFFFFF
27 
30 #define GZ_VISIBILITY_SELECTION 0x10000000
31 
34 #define GZ_VISIBILITY_GUI 0x00000001
35 
38 #define GZ_VISIBILITY_SELECTABLE 0x00000002
39 
40 namespace gazebo
41 {
42  namespace rendering
43  {
44  class Scene;
45  class Light;
46  class Camera;
47  class UserCamera;
48  class DepthCamera;
49  class GpuLaser;
50  class DynamicLines;
51  class Visual;
52  class LaserVisual;
53  class LogicalCameraVisual;
54  class SonarVisual;
55  class WrenchVisual;
56  class CameraVisual;
57  class JointVisual;
58  class AxisVisual;
59  class ArrowVisual;
60  class ContactVisual;
61  class COMVisual;
62  class InertiaVisual;
63  class RFIDVisual;
64  class RFIDTagVisual;
65  class ApplyWrenchVisual;
66  class OriginVisual;
67  class LinkFrameVisual;
68  class WindowManager;
69  class SelectionObj;
70  class RayQuery;
71  class Distortion;
72 
73 #ifdef HAVE_OCULUS
74  class OculusCamera;
75 #endif
76 
79  typedef boost::shared_ptr<Scene> ScenePtr;
80 
83  typedef boost::shared_ptr<Light> LightPtr;
84 
87  typedef boost::shared_ptr<Camera> CameraPtr;
88 
91  typedef boost::shared_ptr<UserCamera> UserCameraPtr;
92 
95  typedef boost::shared_ptr<DepthCamera> DepthCameraPtr;
96 
99  typedef boost::shared_ptr<GpuLaser> GpuLaserPtr;
100 
103  typedef boost::shared_ptr<DynamicLines> DynamicLinesPtr;
104 
107  typedef boost::shared_ptr<Visual> VisualPtr;
108 
111  typedef boost::shared_ptr<LaserVisual> LaserVisualPtr;
112 
115  typedef boost::shared_ptr<SonarVisual> SonarVisualPtr;
116 
119  typedef boost::shared_ptr<WrenchVisual> WrenchVisualPtr;
120 
123  typedef boost::shared_ptr<CameraVisual> CameraVisualPtr;
124 
127  typedef boost::shared_ptr<LogicalCameraVisual> LogicalCameraVisualPtr;
128 
131  typedef boost::shared_ptr<JointVisual> JointVisualPtr;
132 
135  typedef boost::shared_ptr<ContactVisual> ContactVisualPtr;
136 
139  typedef boost::shared_ptr<ArrowVisual> ArrowVisualPtr;
140 
143  typedef boost::shared_ptr<AxisVisual> AxisVisualPtr;
144 
147  typedef boost::shared_ptr<COMVisual> COMVisualPtr;
148 
151  typedef boost::shared_ptr<InertiaVisual> InertiaVisualPtr;
152 
155  typedef boost::shared_ptr<RFIDVisual> RFIDVisualPtr;
156 
159  typedef boost::shared_ptr<RFIDTagVisual> RFIDTagVisualPtr;
160 
163  typedef boost::shared_ptr<ApplyWrenchVisual> ApplyWrenchVisualPtr;
164 
167  typedef boost::shared_ptr<OriginVisual> OriginVisualPtr;
168 
171  typedef boost::shared_ptr<LinkFrameVisual> LinkFrameVisualPtr;
172 
175  typedef boost::shared_ptr<WindowManager> WindowManagerPtr;
176 
179  typedef boost::shared_ptr<SelectionObj> SelectionObjPtr;
180 
183  typedef boost::shared_ptr<RayQuery> RayQueryPtr;
184 
187  typedef boost::shared_ptr<Distortion> DistortionPtr;
188 
189 #ifdef HAVE_OCULUS
190  typedef boost::shared_ptr<OculusCamera> OculusCameraPtr;
193 #endif
194 
198  {
201 
204 
208 
211 
215 
219 
222  };
223  }
224 }
225 #endif
A strip of triangles, 3 vertices for the first triangle, and 1 per triangle after that...
Definition: RenderTypes.hh:214
boost::shared_ptr< DepthCamera > DepthCameraPtr
Definition: RenderTypes.hh:95
boost::shared_ptr< SelectionObj > SelectionObjPtr
Definition: RenderTypes.hh:179
boost::shared_ptr< ApplyWrenchVisual > ApplyWrenchVisualPtr
Definition: RenderTypes.hh:163
boost::shared_ptr< RayQuery > RayQueryPtr
Definition: RenderTypes.hh:183
boost::shared_ptr< Light > LightPtr
Definition: RenderTypes.hh:83
boost::shared_ptr< CameraVisual > CameraVisualPtr
Definition: RenderTypes.hh:123
boost::shared_ptr< WrenchVisual > WrenchVisualPtr
Definition: RenderTypes.hh:119
A list of lines, 2 vertices per line.
Definition: RenderTypes.hh:203
boost::shared_ptr< Distortion > DistortionPtr
Definition: RenderTypes.hh:187
A list of triangles, 3 vertices per triangle.
Definition: RenderTypes.hh:210
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:87
boost::shared_ptr< InertiaVisual > InertiaVisualPtr
Definition: RenderTypes.hh:151
boost::shared_ptr< JointVisual > JointVisualPtr
Definition: RenderTypes.hh:131
boost::shared_ptr< ContactVisual > ContactVisualPtr
Definition: RenderTypes.hh:135
boost::shared_ptr< LaserVisual > LaserVisualPtr
Definition: RenderTypes.hh:111
RenderOpType
Type of render operation for a drawable.
Definition: RenderTypes.hh:197
boost::shared_ptr< SonarVisual > SonarVisualPtr
Definition: RenderTypes.hh:115
boost::shared_ptr< GpuLaser > GpuLaserPtr
Definition: RenderTypes.hh:99
boost::shared_ptr< ArrowVisual > ArrowVisualPtr
Definition: RenderTypes.hh:139
A strip of connected lines, 1 vertex per line plus 1 start vertex.
Definition: RenderTypes.hh:207
A fan of triangles, 3 vertices for the first triangle, and 1 per triangle after that.
Definition: RenderTypes.hh:218
boost::shared_ptr< WindowManager > WindowManagerPtr
Definition: RenderTypes.hh:175
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:79
A list of points, 1 vertex per point.
Definition: RenderTypes.hh:200
boost::shared_ptr< LinkFrameVisual > LinkFrameVisualPtr
Definition: RenderTypes.hh:171
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:107
boost::shared_ptr< AxisVisual > AxisVisualPtr
Definition: RenderTypes.hh:143
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:91
N/A.
Definition: RenderTypes.hh:221
boost::shared_ptr< COMVisual > COMVisualPtr
Definition: RenderTypes.hh:147
boost::shared_ptr< OriginVisual > OriginVisualPtr
Definition: RenderTypes.hh:167
boost::shared_ptr< RFIDVisual > RFIDVisualPtr
Definition: RenderTypes.hh:155
boost::shared_ptr< LogicalCameraVisual > LogicalCameraVisualPtr
Definition: RenderTypes.hh:127
boost::shared_ptr< DynamicLines > DynamicLinesPtr
Definition: RenderTypes.hh:103
boost::shared_ptr< RFIDTagVisual > RFIDTagVisualPtr
Definition: RenderTypes.hh:159