Ignition Rendering

API Reference

6.3.1
RayQuery Class Referenceabstract

A Ray Query class used for computing ray object intersections. More...

#include <ignition/rendering/RayQuery.hh>

Public Member Functions

virtual ~RayQuery ()
 Destructor. More...
 
virtual RayQueryResult ClosestPoint ()=0
 Compute intersections. More...
 
virtual math::Vector3d Direction () const =0
 Get ray direction. More...
 
virtual math::Vector3d Origin () const =0
 Get ray origin. More...
 
virtual void SetDirection (const math::Vector3d &_dir)=0
 Set ray direction. More...
 
virtual void SetFromCamera (const CameraPtr &_camera, const math::Vector2d &_coord)=0
 Create the ray query from camera. More...
 
virtual void SetOrigin (const math::Vector3d &_origin)=0
 Set ray origin. More...
 
- Public Member Functions inherited from Object
virtual ~Object ()
 Destructor. More...
 
virtual void Destroy ()=0
 Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior. More...
 
virtual unsigned int Id () const =0
 Get the object ID. This ID will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More...
 
virtual std::string Name () const =0
 Get the object name. This name will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More...
 
virtual void PostRender ()=0
 Post process this object and any of its children after rendering. More...
 
virtual void PreRender ()=0
 Prepare this object and any of its children for rendering. This should be called for each object in a scene just before rendering, which can be achieved by a single call to Scene::PreRender. More...
 
virtual ScenePtr Scene () const =0
 Get the Scene that created this object. More...
 

Detailed Description

A Ray Query class used for computing ray object intersections.

Constructor & Destructor Documentation

◆ ~RayQuery()

virtual ~RayQuery ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ ClosestPoint()

virtual RayQueryResult ClosestPoint ( )
pure virtual

Compute intersections.

Returns
A vector of intersection results

Implemented in BaseRayQuery< T >, BaseRayQuery< OgreObject >, and OgreRayQuery.

◆ Direction()

virtual math::Vector3d Direction ( ) const
pure virtual

Get ray direction.

Returns
Ray direction.

Implemented in BaseRayQuery< T >, and BaseRayQuery< OgreObject >.

◆ Origin()

virtual math::Vector3d Origin ( ) const
pure virtual

Get ray origin.

Returns
Ray origin

Implemented in BaseRayQuery< T >, and BaseRayQuery< OgreObject >.

◆ SetDirection()

virtual void SetDirection ( const math::Vector3d _dir)
pure virtual

Set ray direction.

Parameters
[in]_dirRay origin

Implemented in BaseRayQuery< T >, and BaseRayQuery< OgreObject >.

◆ SetFromCamera()

virtual void SetFromCamera ( const CameraPtr _camera,
const math::Vector2d _coord 
)
pure virtual

Create the ray query from camera.

Parameters
[in]_cameraCamera to construct ray
[in]_coordnormalized device coords [-1, +1]

Implemented in BaseRayQuery< T >, BaseRayQuery< OgreObject >, and OgreRayQuery.

◆ SetOrigin()

virtual void SetOrigin ( const math::Vector3d _origin)
pure virtual

Set ray origin.

Parameters
[in]_originRay origin

Implemented in BaseRayQuery< T >, and BaseRayQuery< OgreObject >.


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