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 SonarVisual;
54  class WrenchVisual;
55  class CameraVisual;
56  class JointVisual;
57  class AxisVisual;
58  class ArrowVisual;
59  class ContactVisual;
60  class COMVisual;
61  class InertiaVisual;
62  class RFIDVisual;
63  class RFIDTagVisual;
64  class ApplyWrenchVisual;
65  class OriginVisual;
66  class LinkFrameVisual;
67  class WindowManager;
68  class SelectionObj;
69  class RayQuery;
70  class Distortion;
71 
72 #ifdef HAVE_OCULUS
73  class OculusCamera;
74 #endif
75 
78  typedef boost::shared_ptr<Scene> ScenePtr;
79 
82  typedef boost::shared_ptr<Light> LightPtr;
83 
86  typedef boost::shared_ptr<Camera> CameraPtr;
87 
90  typedef boost::shared_ptr<UserCamera> UserCameraPtr;
91 
94  typedef boost::shared_ptr<DepthCamera> DepthCameraPtr;
95 
98  typedef boost::shared_ptr<GpuLaser> GpuLaserPtr;
99 
102  typedef boost::shared_ptr<DynamicLines> DynamicLinesPtr;
103 
106  typedef boost::shared_ptr<Visual> VisualPtr;
107 
110  typedef boost::shared_ptr<LaserVisual> LaserVisualPtr;
111 
114  typedef boost::shared_ptr<SonarVisual> SonarVisualPtr;
115 
118  typedef boost::shared_ptr<WrenchVisual> WrenchVisualPtr;
119 
122  typedef boost::shared_ptr<CameraVisual> CameraVisualPtr;
123 
126  typedef boost::shared_ptr<JointVisual> JointVisualPtr;
127 
130  typedef boost::shared_ptr<ContactVisual> ContactVisualPtr;
131 
134  typedef boost::shared_ptr<ArrowVisual> ArrowVisualPtr;
135 
138  typedef boost::shared_ptr<AxisVisual> AxisVisualPtr;
139 
142  typedef boost::shared_ptr<COMVisual> COMVisualPtr;
143 
146  typedef boost::shared_ptr<InertiaVisual> InertiaVisualPtr;
147 
150  typedef boost::shared_ptr<RFIDVisual> RFIDVisualPtr;
151 
154  typedef boost::shared_ptr<RFIDTagVisual> RFIDTagVisualPtr;
155 
158  typedef boost::shared_ptr<ApplyWrenchVisual> ApplyWrenchVisualPtr;
159 
162  typedef boost::shared_ptr<OriginVisual> OriginVisualPtr;
163 
166  typedef boost::shared_ptr<LinkFrameVisual> LinkFrameVisualPtr;
167 
170  typedef boost::shared_ptr<WindowManager> WindowManagerPtr;
171 
174  typedef boost::shared_ptr<SelectionObj> SelectionObjPtr;
175 
178  typedef boost::shared_ptr<RayQuery> RayQueryPtr;
179 
182  typedef boost::shared_ptr<Distortion> DistortionPtr;
183 
184 #ifdef HAVE_OCULUS
185  typedef boost::shared_ptr<OculusCamera> OculusCameraPtr;
188 #endif
189 
193  {
196 
199 
203 
206 
210 
214 
217  };
218  }
219 }
220 #endif
A strip of triangles, 3 vertices for the first triangle, and 1 per triangle after that...
Definition: RenderTypes.hh:209
boost::shared_ptr< DepthCamera > DepthCameraPtr
Definition: RenderTypes.hh:94
boost::shared_ptr< SelectionObj > SelectionObjPtr
Definition: RenderTypes.hh:174
boost::shared_ptr< ApplyWrenchVisual > ApplyWrenchVisualPtr
Definition: RenderTypes.hh:158
boost::shared_ptr< RayQuery > RayQueryPtr
Definition: RenderTypes.hh:178
boost::shared_ptr< Light > LightPtr
Definition: RenderTypes.hh:82
boost::shared_ptr< CameraVisual > CameraVisualPtr
Definition: RenderTypes.hh:122
boost::shared_ptr< WrenchVisual > WrenchVisualPtr
Definition: RenderTypes.hh:118
A list of lines, 2 vertices per line.
Definition: RenderTypes.hh:198
boost::shared_ptr< Distortion > DistortionPtr
Definition: RenderTypes.hh:182
A list of triangles, 3 vertices per triangle.
Definition: RenderTypes.hh:205
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:86
boost::shared_ptr< InertiaVisual > InertiaVisualPtr
Definition: RenderTypes.hh:146
boost::shared_ptr< JointVisual > JointVisualPtr
Definition: RenderTypes.hh:126
boost::shared_ptr< ContactVisual > ContactVisualPtr
Definition: RenderTypes.hh:130
boost::shared_ptr< LaserVisual > LaserVisualPtr
Definition: RenderTypes.hh:110
RenderOpType
Type of render operation for a drawable.
Definition: RenderTypes.hh:192
boost::shared_ptr< SonarVisual > SonarVisualPtr
Definition: RenderTypes.hh:114
boost::shared_ptr< GpuLaser > GpuLaserPtr
Definition: RenderTypes.hh:98
boost::shared_ptr< ArrowVisual > ArrowVisualPtr
Definition: RenderTypes.hh:134
A strip of connected lines, 1 vertex per line plus 1 start vertex.
Definition: RenderTypes.hh:202
A fan of triangles, 3 vertices for the first triangle, and 1 per triangle after that.
Definition: RenderTypes.hh:213
boost::shared_ptr< WindowManager > WindowManagerPtr
Definition: RenderTypes.hh:170
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:78
A list of points, 1 vertex per point.
Definition: RenderTypes.hh:195
boost::shared_ptr< LinkFrameVisual > LinkFrameVisualPtr
Definition: RenderTypes.hh:166
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:106
boost::shared_ptr< AxisVisual > AxisVisualPtr
Definition: RenderTypes.hh:138
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:90
N/A.
Definition: RenderTypes.hh:216
boost::shared_ptr< COMVisual > COMVisualPtr
Definition: RenderTypes.hh:142
boost::shared_ptr< OriginVisual > OriginVisualPtr
Definition: RenderTypes.hh:162
boost::shared_ptr< RFIDVisual > RFIDVisualPtr
Definition: RenderTypes.hh:150
boost::shared_ptr< DynamicLines > DynamicLinesPtr
Definition: RenderTypes.hh:102
boost::shared_ptr< RFIDTagVisual > RFIDTagVisualPtr
Definition: RenderTypes.hh:154