Public Member Functions | List of all members
gazebo::rendering::RayQuery Class Reference

A Ray Query class used for retrieving mesh data of a visual, adapted from Ogre3D wiki. More...

#include <rendering/rendering.hh>

Public Member Functions

 RayQuery (CameraPtr _camera)
 Constructor. More...
 
 ~RayQuery ()
 Destructor. More...
 
bool SelectMeshTriangle (int _x, int _y, VisualPtr _visual, math::Vector3 &_intersect, std::vector< math::Vector3 > &_vertices)
 Select a triangle on mesh given screen coordinates. More...
 

Detailed Description

A Ray Query class used for retrieving mesh data of a visual, adapted from Ogre3D wiki.

Constructor & Destructor Documentation

gazebo::rendering::RayQuery::RayQuery ( CameraPtr  _camera)

Constructor.

Parameters
[in]_cameraPointer to camera used for ray casting.
gazebo::rendering::RayQuery::~RayQuery ( )

Destructor.

Member Function Documentation

bool gazebo::rendering::RayQuery::SelectMeshTriangle ( int  _x,
int  _y,
VisualPtr  _visual,
math::Vector3 _intersect,
std::vector< math::Vector3 > &  _vertices 
)

Select a triangle on mesh given screen coordinates.

Parameters
[in]_xX position on screen in pixels.
[in]_yY position on screen in pixels.
[in]_visualVisual containing the mesh to be selected.
[out]_intersectIntersection point.
[out]_verticesVertices of the selected triangle on the mesh.

The documentation for this class was generated from the following file: