Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <RayIntersector.hpp>

Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| RayIntersector () | |
| const ActorCollection * | actors () const |
| The Actors against which the intersection test is performed. | |
| ActorCollection * | actors () |
| The Actors against which the intersection test is performed. | |
| const Ray & | ray () const |
| The ray in world coordinates to be intersected with the actors(). | |
| void | setRay (const Ray &ray) |
| The ray in world coordinates to be intersected with the actors(). | |
| const Frustum & | frustum () const |
| The frustum in world coordinates used to cull the objects. | |
| void | setFrustum (const Frustum &frustum) |
| The frustum in world coordinates used to cull the objects. | |
| const std::vector< ref < RayIntersection > > & | intersections () const |
| The intersection points detected by the last intersect() call sorted according to their distance (the first one is the closest). | |
| void | intersect () |
| Executes the intersection test. | |
| void | intersect (const Ray &ray, SceneManager *scene_manager) |
| Computes the intersections between the given ray and the Actor[s] contained in the given scene manager. | |
Protected Member Functions | |
| void | intersect (Actor *act) |
| void | intersectGeometry (Actor *act, Geometry *geom) |
| template<class T > | |
| void | intersectTriangle (const T &a, const T &b, const T &c, Actor *, Geometry *geom, Primitives *prim, int prim_idx) |
| template<class T > | |
| void | intersectPolygon (const std::vector< T > &polygon, Actor *, Geometry *geom, Primitives *prim) |
| template<class T > | |
| void | intersectQuad (const T &a, const T &b, const T &c, const T &d, Actor *, Geometry *geom, Primitives *prim, int prim_idx) |
Static Protected Member Functions | |
| static bool | sorter (const ref< RayIntersection > &a, const ref< RayIntersection > &b) |
Protected Attributes | |
| Frustum | mFrustum |
| std::vector< ref < RayIntersection > > | mIntersections |
| ref< ActorCollection > | mActors |
| Ray | mRay |
| vl::RayIntersector::RayIntersector | ( | ) | [inline] |
| virtual const char* vl::RayIntersector::className | ( | ) | [inline, virtual] |
| const ActorCollection* vl::RayIntersector::actors | ( | ) | const [inline] |
The Actors against which the intersection test is performed.
| ActorCollection* vl::RayIntersector::actors | ( | ) | [inline] |
The Actors against which the intersection test is performed.
| const Ray& vl::RayIntersector::ray | ( | ) | const [inline] |
The ray in world coordinates to be intersected with the actors().
| void vl::RayIntersector::setRay | ( | const Ray & | ray | ) | [inline] |
The ray in world coordinates to be intersected with the actors().
| const Frustum& vl::RayIntersector::frustum | ( | ) | const [inline] |
The frustum in world coordinates used to cull the objects.
| void vl::RayIntersector::setFrustum | ( | const Frustum & | frustum | ) | [inline] |
The frustum in world coordinates used to cull the objects.
| const std::vector< ref<RayIntersection> >& vl::RayIntersector::intersections | ( | ) | const [inline] |
The intersection points detected by the last intersect() call sorted according to their distance (the first one is the closest).
| void RayIntersector::intersect | ( | ) |
Executes the intersection test.
All the intersections are mande on the Actor's LOD level #0.
| void RayIntersector::intersect | ( | const Ray & | ray, | |
| SceneManager * | scene_manager | |||
| ) |
| static bool vl::RayIntersector::sorter | ( | const ref< RayIntersection > & | a, | |
| const ref< RayIntersection > & | b | |||
| ) | [inline, static, protected] |
| void RayIntersector::intersect | ( | Actor * | act | ) | [protected] |
| void RayIntersector::intersectTriangle | ( | const T & | a, | |
| const T & | b, | |||
| const T & | c, | |||
| Actor * | act, | |||
| Geometry * | geom, | |||
| Primitives * | prim, | |||
| int | prim_idx | |||
| ) | [inline, protected] |
| void RayIntersector::intersectPolygon | ( | const std::vector< T > & | polygon, | |
| Actor * | act, | |||
| Geometry * | geom, | |||
| Primitives * | prim | |||
| ) | [inline, protected] |
| void RayIntersector::intersectQuad | ( | const T & | a, | |
| const T & | b, | |||
| const T & | c, | |||
| const T & | d, | |||
| Actor * | act, | |||
| Geometry * | geom, | |||
| Primitives * | prim, | |||
| int | prim_idx | |||
| ) | [inline, protected] |
Frustum vl::RayIntersector::mFrustum [protected] |
std::vector< ref<RayIntersection> > vl::RayIntersector::mIntersections [protected] |
ref<ActorCollection> vl::RayIntersector::mActors [protected] |
Ray vl::RayIntersector::mRay [protected] |