Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | List of all members
om::graphics::base::GraphicsRay Class Reference

A class that represents a ray intersection query for a graphics scene. More...

#include <omGraphicsRay.h>

Inheritance diagram for om::graphics::base::GraphicsRay:

Public Member Functions

 GraphicsRay ()
 Create a new uninitialized ray. More...
 
 GraphicsRay (const Ray3f &ray)
 Construct a graphics ray and initialize it for the specified ray. More...
 
 GraphicsRay (const Ray3f &ray, Float newTMin, Float newTMax)
 Construct a graphics ray and initialize it for the specified ray information. More...
 

Public Attributes

scenes::GraphicsObjectobject
 A pointer to the object that was intersected. More...
 
shapes::GraphicsShapeshape
 A pointer to the shape that was intersected. More...
 
materials::Materialmaterial
 A pointer to the material that was intersected. More...
 

Detailed Description

A class that represents a ray intersection query for a graphics scene.

Constructor & Destructor Documentation

om::graphics::base::GraphicsRay::GraphicsRay ( )
inline

Create a new uninitialized ray.

om::graphics::base::GraphicsRay::GraphicsRay ( const Ray3f ray)
inline

Construct a graphics ray and initialize it for the specified ray.

The ray intersection query considers the distance range [0,infinity].

om::graphics::base::GraphicsRay::GraphicsRay ( const Ray3f ray,
Float  newTMin,
Float  newTMax 
)
inline

Construct a graphics ray and initialize it for the specified ray information.

Member Data Documentation

scenes::GraphicsObject* om::graphics::base::GraphicsRay::object

A pointer to the object that was intersected.

shapes::GraphicsShape* om::graphics::base::GraphicsRay::shape

A pointer to the shape that was intersected.

materials::Material* om::graphics::base::GraphicsRay::material

A pointer to the material that was intersected.


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