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 RFIDVisual;
62  class RFIDTagVisual;
63  class WindowManager;
64  class SelectionObj;
65  class RayQuery;
66  class Distortion;
67 
68 #ifdef HAVE_OCULUS
69  class OculusCamera;
70 #endif
71 
74  typedef boost::shared_ptr<Scene> ScenePtr;
75 
78  typedef boost::shared_ptr<Light> LightPtr;
79 
82  typedef boost::shared_ptr<Camera> CameraPtr;
83 
86  typedef boost::shared_ptr<UserCamera> UserCameraPtr;
87 
90  typedef boost::shared_ptr<DepthCamera> DepthCameraPtr;
91 
94  typedef boost::shared_ptr<GpuLaser> GpuLaserPtr;
95 
98  typedef boost::shared_ptr<DynamicLines> DynamicLinesPtr;
99 
102  typedef boost::shared_ptr<Visual> VisualPtr;
103 
106  typedef boost::shared_ptr<LaserVisual> LaserVisualPtr;
107 
110  typedef boost::shared_ptr<SonarVisual> SonarVisualPtr;
111 
114  typedef boost::shared_ptr<WrenchVisual> WrenchVisualPtr;
115 
118  typedef boost::shared_ptr<CameraVisual> CameraVisualPtr;
119 
122  typedef boost::shared_ptr<JointVisual> JointVisualPtr;
123 
126  typedef boost::shared_ptr<ContactVisual> ContactVisualPtr;
127 
130  typedef boost::shared_ptr<ArrowVisual> ArrowVisualPtr;
131 
134  typedef boost::shared_ptr<AxisVisual> AxisVisualPtr;
135 
138  typedef boost::shared_ptr<COMVisual> COMVisualPtr;
139 
142  typedef boost::shared_ptr<RFIDVisual> RFIDVisualPtr;
143 
146  typedef boost::shared_ptr<RFIDTagVisual> RFIDTagVisualPtr;
147 
150  typedef boost::shared_ptr<WindowManager> WindowManagerPtr;
151 
154  typedef boost::shared_ptr<SelectionObj> SelectionObjPtr;
155 
158  typedef boost::shared_ptr<RayQuery> RayQueryPtr;
159 
162  typedef boost::shared_ptr<Distortion> DistortionPtr;
163 
164 #ifdef HAVE_OCULUS
165  typedef boost::shared_ptr<OculusCamera> OculusCameraPtr;
168 #endif
169 
173  {
176 
179 
183 
186 
190 
194 
197  };
198  }
199 }
200 #endif
A strip of triangles, 3 vertices for the first triangle, and 1 per triangle after that...
Definition: RenderTypes.hh:189
boost::shared_ptr< DepthCamera > DepthCameraPtr
Definition: RenderTypes.hh:90
boost::shared_ptr< SelectionObj > SelectionObjPtr
Definition: RenderTypes.hh:154
boost::shared_ptr< RayQuery > RayQueryPtr
Definition: RenderTypes.hh:158
boost::shared_ptr< Light > LightPtr
Definition: RenderTypes.hh:78
boost::shared_ptr< CameraVisual > CameraVisualPtr
Definition: RenderTypes.hh:118
boost::shared_ptr< WrenchVisual > WrenchVisualPtr
Definition: RenderTypes.hh:114
A list of lines, 2 vertices per line.
Definition: RenderTypes.hh:178
boost::shared_ptr< Distortion > DistortionPtr
Definition: RenderTypes.hh:162
A list of triangles, 3 vertices per triangle.
Definition: RenderTypes.hh:185
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:82
boost::shared_ptr< JointVisual > JointVisualPtr
Definition: RenderTypes.hh:122
boost::shared_ptr< ContactVisual > ContactVisualPtr
Definition: RenderTypes.hh:126
boost::shared_ptr< LaserVisual > LaserVisualPtr
Definition: RenderTypes.hh:106
RenderOpType
Type of render operation for a drawable.
Definition: RenderTypes.hh:172
boost::shared_ptr< SonarVisual > SonarVisualPtr
Definition: RenderTypes.hh:110
boost::shared_ptr< GpuLaser > GpuLaserPtr
Definition: RenderTypes.hh:94
boost::shared_ptr< ArrowVisual > ArrowVisualPtr
Definition: RenderTypes.hh:130
A strip of connected lines, 1 vertex per line plus 1 start vertex.
Definition: RenderTypes.hh:182
A fan of triangles, 3 vertices for the first triangle, and 1 per triangle after that.
Definition: RenderTypes.hh:193
boost::shared_ptr< WindowManager > WindowManagerPtr
Definition: RenderTypes.hh:150
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:74
A list of points, 1 vertex per point.
Definition: RenderTypes.hh:175
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:102
boost::shared_ptr< AxisVisual > AxisVisualPtr
Definition: RenderTypes.hh:134
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:86
N/A.
Definition: RenderTypes.hh:196
boost::shared_ptr< COMVisual > COMVisualPtr
Definition: RenderTypes.hh:138
boost::shared_ptr< RFIDVisual > RFIDVisualPtr
Definition: RenderTypes.hh:142
boost::shared_ptr< DynamicLines > DynamicLinesPtr
Definition: RenderTypes.hh:98
boost::shared_ptr< OculusCamera > OculusCameraPtr
Definition: RenderTypes.hh:167
boost::shared_ptr< RFIDTagVisual > RFIDTagVisualPtr
Definition: RenderTypes.hh:146