Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
The RayIntersectionGeometry encapsulates all the information relative to a Ray/Actor intersection, providing also extra information relative to the intersection on the Geometry in use by the Actor. More...
#include <RayIntersector.hpp>
Public Member Functions | |
RayIntersectionGeometry () | |
Geometry * | geometry () |
The intersected Geometry. | |
const Geometry * | geometry () const |
The intersected Geometry. | |
DrawCall * | drawCalls () |
The intersected DrawCall. | |
const DrawCall * | drawCalls () const |
The intersected DrawCall. | |
int | triangleIndex () const |
The starting index of the intersected primitive inside drawCalls() | |
int | lineIndex () const |
The starting index of the intersected line inside TriangleIndex() | |
const int * | triangle () const |
An int[3] representing the indices of the intersected triangle. | |
const int * | line () |
An int[2] representing the indices of the intersected line. | |
int | nearestPoint () |
An int representing the indice of the nearest point to the intersection. | |
void | setGeometry (Geometry *g) |
The intersected Geometry. | |
void | setPrimitives (DrawCall *p) |
The intersected DrawCall. | |
void | setTriangleIndex (int t_idx) |
The starting index of the intersected primitive inside drawCalls() | |
void | setTriangle (int a, int b, int c) |
An int[3] representing the indices of the intersected triangle. | |
void | setLineIndex (int l_idx) |
The starting index of the intersected line inside TriangleIndex() | |
void | setLine (int a, int b) |
An int[2] representing the indices of the intersected line. | |
void | setNearestPoint (int a) |
An int representing the indice of the nearest point to the intersection. | |
Protected Attributes | |
vec3 | mIntersectionPoint |
Geometry * | mGeometry |
DrawCall * | mDrawCalls |
int | mTriangleIndex |
int | mTriangle [3] |
int | mLine [2] |
int | mNearestPoint |
int | mLineIndex |
float | mDistance |
The RayIntersectionGeometry encapsulates all the information relative to a Ray/Actor intersection, providing also extra information relative to the intersection on the Geometry in use by the Actor.
Definition at line 87 of file RayIntersector.hpp.
vl::RayIntersectionGeometry::RayIntersectionGeometry | ( | ) | [inline] |
Definition at line 92 of file RayIntersector.hpp.
References mTriangle, and VL_DEBUG_SET_OBJECT_NAME.
Geometry* vl::RayIntersectionGeometry::geometry | ( | ) | [inline] |
const Geometry* vl::RayIntersectionGeometry::geometry | ( | ) | const [inline] |
DrawCall* vl::RayIntersectionGeometry::drawCalls | ( | ) | [inline] |
const DrawCall* vl::RayIntersectionGeometry::drawCalls | ( | ) | const [inline] |
int vl::RayIntersectionGeometry::triangleIndex | ( | ) | const [inline] |
The starting index of the intersected primitive inside drawCalls()
Definition at line 107 of file RayIntersector.hpp.
References mTriangleIndex.
int vl::RayIntersectionGeometry::lineIndex | ( | ) | const [inline] |
The starting index of the intersected line inside TriangleIndex()
Definition at line 109 of file RayIntersector.hpp.
References mLineIndex.
const int* vl::RayIntersectionGeometry::triangle | ( | ) | const [inline] |
An int[3] representing the indices of the intersected triangle.
Definition at line 111 of file RayIntersector.hpp.
References mTriangle.
const int* vl::RayIntersectionGeometry::line | ( | ) | [inline] |
An int[2] representing the indices of the intersected line.
Definition at line 113 of file RayIntersector.hpp.
References mLine.
int vl::RayIntersectionGeometry::nearestPoint | ( | ) | [inline] |
An int representing the indice of the nearest point to the intersection.
Definition at line 115 of file RayIntersector.hpp.
References mNearestPoint.
void vl::RayIntersectionGeometry::setGeometry | ( | Geometry * | g | ) | [inline] |
void vl::RayIntersectionGeometry::setPrimitives | ( | DrawCall * | p | ) | [inline] |
void vl::RayIntersectionGeometry::setTriangleIndex | ( | int | t_idx | ) | [inline] |
The starting index of the intersected primitive inside drawCalls()
Definition at line 122 of file RayIntersector.hpp.
References mTriangleIndex.
void vl::RayIntersectionGeometry::setTriangle | ( | int | a, |
int | b, | ||
int | c | ||
) | [inline] |
An int[3] representing the indices of the intersected triangle.
Definition at line 124 of file RayIntersector.hpp.
References mTriangle.
void vl::RayIntersectionGeometry::setLineIndex | ( | int | l_idx | ) | [inline] |
The starting index of the intersected line inside TriangleIndex()
Definition at line 126 of file RayIntersector.hpp.
References mLineIndex.
void vl::RayIntersectionGeometry::setLine | ( | int | a, |
int | b | ||
) | [inline] |
An int[2] representing the indices of the intersected line.
Definition at line 128 of file RayIntersector.hpp.
References mLine.
void vl::RayIntersectionGeometry::setNearestPoint | ( | int | a | ) | [inline] |
An int representing the indice of the nearest point to the intersection.
Definition at line 130 of file RayIntersector.hpp.
References mNearestPoint.
vec3 vl::RayIntersectionGeometry::mIntersectionPoint [protected] |
Reimplemented from vl::RayIntersection.
Definition at line 133 of file RayIntersector.hpp.
Geometry* vl::RayIntersectionGeometry::mGeometry [protected] |
Definition at line 134 of file RayIntersector.hpp.
Referenced by geometry(), and setGeometry().
DrawCall* vl::RayIntersectionGeometry::mDrawCalls [protected] |
Definition at line 135 of file RayIntersector.hpp.
Referenced by drawCalls(), and setPrimitives().
int vl::RayIntersectionGeometry::mTriangleIndex [protected] |
Definition at line 136 of file RayIntersector.hpp.
Referenced by setTriangleIndex(), and triangleIndex().
int vl::RayIntersectionGeometry::mTriangle[3] [protected] |
Definition at line 137 of file RayIntersector.hpp.
Referenced by RayIntersectionGeometry(), setTriangle(), and triangle().
int vl::RayIntersectionGeometry::mLine[2] [protected] |
Definition at line 138 of file RayIntersector.hpp.
int vl::RayIntersectionGeometry::mNearestPoint [protected] |
Definition at line 139 of file RayIntersector.hpp.
Referenced by nearestPoint(), and setNearestPoint().
int vl::RayIntersectionGeometry::mLineIndex [protected] |
Definition at line 140 of file RayIntersector.hpp.
Referenced by lineIndex(), and setLineIndex().
float vl::RayIntersectionGeometry::mDistance [protected] |
Reimplemented from vl::RayIntersection.
Definition at line 141 of file RayIntersector.hpp.