##

RenderTypes.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_RENDERING_RENDERTYPES_HH_
#define GAZEBO_RENDERING_RENDERTYPES_HH_
#include <boost/shared_ptr.hpp>
#include "gazebo/gazebo_config.h"
#include "gazebo/util/system.hh"
#define GZ_VISIBILITY_ALL 0x0FFFFFFF
#define GZ_VISIBILITY_SELECTION 0x10000000
#define GZ_VISIBILITY_GUI 0x00000001
#define GZ_VISIBILITY_SELECTABLE 0x00000002
namespace gazebo
{
namespace rendering
{
class Scene;
class Light;
class Camera;
class UserCamera;
class DepthCamera;
class WideAngleCamera;
class GpuLaser;
class DynamicLines;
class Visual;
class LaserVisual;
class LogicalCameraVisual;
class SonarVisual;
class WrenchVisual;
class CameraVisual;
class JointVisual;
class AxisVisual;
class ArrowVisual;
class ContactVisual;
class COMVisual;
class InertiaVisual;
class RFIDVisual;
class RFIDTagVisual;
class ApplyWrenchVisual;
class OriginVisual;
class LinkFrameVisual;
class WindowManager;
class SelectionObj;
class RayQuery;
class Distortion;
class LensFlare;
class Road2d;
#ifdef HAVE_OCULUS
class OculusCamera;
#endif
typedef boost::shared_ptr<Scene> ScenePtr;
typedef boost::shared_ptr<Light> LightPtr;
typedef boost::shared_ptr<Camera> CameraPtr;
typedef boost::shared_ptr<UserCamera> UserCameraPtr;
typedef boost::shared_ptr<DepthCamera> DepthCameraPtr;
typedef boost::shared_ptr<WideAngleCamera> WideAngleCameraPtr;
typedef boost::shared_ptr<GpuLaser> GpuLaserPtr;
typedef boost::shared_ptr<DynamicLines> DynamicLinesPtr;
typedef std::shared_ptr<Visual> VisualPtr;
typedef std::weak_ptr<Visual> VisualWeakPtr;
typedef std::shared_ptr<LaserVisual> LaserVisualPtr;
typedef std::shared_ptr<SonarVisual> SonarVisualPtr;
typedef std::shared_ptr<WrenchVisual> WrenchVisualPtr;
typedef std::shared_ptr<CameraVisual> CameraVisualPtr;
typedef std::shared_ptr<LogicalCameraVisual> LogicalCameraVisualPtr;
typedef std::shared_ptr<JointVisual> JointVisualPtr;
typedef std::shared_ptr<ContactVisual> ContactVisualPtr;
typedef std::shared_ptr<ArrowVisual> ArrowVisualPtr;
typedef std::shared_ptr<AxisVisual> AxisVisualPtr;
typedef std::shared_ptr<COMVisual> COMVisualPtr;
typedef std::shared_ptr<InertiaVisual> InertiaVisualPtr;
typedef std::shared_ptr<RFIDVisual> RFIDVisualPtr;
typedef std::shared_ptr<RFIDTagVisual> RFIDTagVisualPtr;
typedef std::shared_ptr<ApplyWrenchVisual> ApplyWrenchVisualPtr;
typedef std::shared_ptr<OriginVisual> OriginVisualPtr;
typedef std::shared_ptr<LinkFrameVisual> LinkFrameVisualPtr;
typedef boost::shared_ptr<WindowManager> WindowManagerPtr;
typedef std::shared_ptr<SelectionObj> SelectionObjPtr;
typedef boost::shared_ptr<RayQuery> RayQueryPtr;
typedef boost::shared_ptr<Distortion> DistortionPtr;
typedef std::shared_ptr<LensFlare> LensFlarePtr;
typedef std::shared_ptr<Road2d> Road2dPtr;
#ifdef HAVE_OCULUS
typedef boost::shared_ptr<OculusCamera> OculusCameraPtr;
#endif
enum RenderOpType
{
RENDERING_POINT_LIST = 0,
RENDERING_LINE_LIST = 1,
RENDERING_LINE_STRIP = 2,
RENDERING_TRIANGLE_LIST = 3,
RENDERING_TRIANGLE_STRIP = 4,
RENDERING_TRIANGLE_FAN = 5,
RENDERING_MESH_RESOURCE = 6
};
enum ReferenceFrame
{
RF_LOCAL,
RF_PARENT,
RF_WORLD
};
}
}
#endif
gazebo::rendering::UserCameraPtr
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:94
gazebo::rendering::COMVisualPtr
std::shared_ptr< COMVisual > COMVisualPtr
Definition: RenderTypes.hh:158
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::rendering::ReferenceFrame
ReferenceFrame
Frame of reference.
Definition: RenderTypes.hh:244
gazebo::rendering::LogicalCameraVisualPtr
std::shared_ptr< LogicalCameraVisual > LogicalCameraVisualPtr
Definition: RenderTypes.hh:138
gazebo::rendering::Road2dPtr
std::shared_ptr< Road2d > Road2dPtr
Definition: RenderTypes.hh:206
gazebo::rendering::RENDERING_TRIANGLE_LIST
A list of triangles, 3 vertices per triangle.
Definition: RenderTypes.hh:229
gazebo::rendering::WrenchVisualPtr
std::shared_ptr< WrenchVisual > WrenchVisualPtr
Definition: RenderTypes.hh:130
gazebo::rendering::ArrowVisualPtr
std::shared_ptr< ArrowVisual > ArrowVisualPtr
Definition: RenderTypes.hh:150
gazebo::rendering::DistortionPtr
boost::shared_ptr< Distortion > DistortionPtr
Definition: RenderTypes.hh:198
gazebo::rendering::GpuLaserPtr
boost::shared_ptr< GpuLaser > GpuLaserPtr
Definition: RenderTypes.hh:106
gazebo::rendering::RF_WORLD
World frame.
Definition: RenderTypes.hh:253
gazebo::rendering::InertiaVisualPtr
std::shared_ptr< InertiaVisual > InertiaVisualPtr
Definition: RenderTypes.hh:162
system.hh
gazebo::rendering::CameraVisualPtr
std::shared_ptr< CameraVisual > CameraVisualPtr
Definition: RenderTypes.hh:134
gazebo::rendering::RF_LOCAL
Local frame.
Definition: RenderTypes.hh:247
gazebo::rendering::RENDERING_LINE_STRIP
A strip of connected lines, 1 vertex per line plus 1 start vertex.
Definition: RenderTypes.hh:226
gazebo::rendering::RENDERING_MESH_RESOURCE
N/A.
Definition: RenderTypes.hh:240
gazebo::rendering::RF_PARENT
Parent frame.
Definition: RenderTypes.hh:250
gazebo::rendering::RENDERING_TRIANGLE_FAN
A fan of triangles, 3 vertices for the first triangle, and 1 per triangle after that.
Definition: RenderTypes.hh:237
gazebo::rendering::SonarVisualPtr
std::shared_ptr< SonarVisual > SonarVisualPtr
Definition: RenderTypes.hh:126
gazebo::rendering::ScenePtr
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:82
gazebo::rendering::RENDERING_TRIANGLE_STRIP
A strip of triangles, 3 vertices for the first triangle, and 1 per triangle after that.
Definition: RenderTypes.hh:233
gazebo::rendering::RenderOpType
RenderOpType
Type of render operation for a drawable.
Definition: RenderTypes.hh:216
gazebo::rendering::SelectionObjPtr
std::shared_ptr< SelectionObj > SelectionObjPtr
Definition: RenderTypes.hh:190
gazebo::rendering::RFIDTagVisualPtr
std::shared_ptr< RFIDTagVisual > RFIDTagVisualPtr
Definition: RenderTypes.hh:170
rendering
rendering
Definition: RenderEngine.hh:31
gazebo::rendering::RayQueryPtr
boost::shared_ptr< RayQuery > RayQueryPtr
Definition: RenderTypes.hh:194
gazebo::rendering::DepthCameraPtr
boost::shared_ptr< DepthCamera > DepthCameraPtr
Definition: RenderTypes.hh:98
gazebo::rendering::LensFlarePtr
std::shared_ptr< LensFlare > LensFlarePtr
Definition: RenderTypes.hh:202
gazebo::rendering::RENDERING_POINT_LIST
A list of points, 1 vertex per point.
Definition: RenderTypes.hh:219
gazebo::rendering::VisualWeakPtr
std::weak_ptr< Visual > VisualWeakPtr
Definition: RenderTypes.hh:118
gazebo::rendering::RENDERING_LINE_LIST
A list of lines, 2 vertices per line.
Definition: RenderTypes.hh:222
gazebo::rendering::JointVisualPtr
std::shared_ptr< JointVisual > JointVisualPtr
Definition: RenderTypes.hh:142
gazebo::rendering::RFIDVisualPtr
std::shared_ptr< RFIDVisual > RFIDVisualPtr
Definition: RenderTypes.hh:166
gazebo::rendering::LinkFrameVisualPtr
std::shared_ptr< LinkFrameVisual > LinkFrameVisualPtr
Definition: RenderTypes.hh:182
gazebo::rendering::DynamicLinesPtr
boost::shared_ptr< DynamicLines > DynamicLinesPtr
Definition: RenderTypes.hh:110
gazebo::rendering::AxisVisualPtr
std::shared_ptr< AxisVisual > AxisVisualPtr
Definition: RenderTypes.hh:154
gazebo::rendering::OriginVisualPtr
std::shared_ptr< OriginVisual > OriginVisualPtr
Definition: RenderTypes.hh:178
gazebo::rendering::LaserVisualPtr
std::shared_ptr< LaserVisual > LaserVisualPtr
Definition: RenderTypes.hh:122
gazebo::rendering::LightPtr
boost::shared_ptr< Light > LightPtr
Definition: RenderTypes.hh:86
gazebo::rendering::VisualPtr
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114
gazebo::rendering::ContactVisualPtr
std::shared_ptr< ContactVisual > ContactVisualPtr
Definition: RenderTypes.hh:146
gazebo::rendering::WindowManagerPtr
boost::shared_ptr< WindowManager > WindowManagerPtr
Definition: RenderTypes.hh:186
gazebo::rendering::CameraPtr
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:90
gazebo::rendering::ApplyWrenchVisualPtr
std::shared_ptr< ApplyWrenchVisual > ApplyWrenchVisualPtr
Definition: RenderTypes.hh:174
gazebo::rendering::WideAngleCameraPtr
boost::shared_ptr< WideAngleCamera > WideAngleCameraPtr
Definition: RenderTypes.hh:102