Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [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. More... | |
const Geometry * | geometry () const |
The intersected Geometry. More... | |
DrawCall * | drawCalls () |
The intersected DrawCall. More... | |
const DrawCall * | drawCalls () const |
The intersected DrawCall. More... | |
int | triangleIndex () const |
The starting index of the intersected primitive inside drawCalls() More... | |
const int * | triangle () const |
An int[3] representing the indices of the intersected triangle. More... | |
void | setGeometry (Geometry *g) |
The intersected Geometry. More... | |
void | setPrimitives (DrawCall *p) |
The intersected DrawCall. More... | |
void | setTriangleIndex (int t_idx) |
The starting index of the intersected primitive inside drawCalls() More... | |
void | setTriangle (int a, int b, int c) |
An int[3] representing the indices of the intersected triangle. More... | |
Public Member Functions inherited from vl::RayIntersection | |
RayIntersection () | |
void | setActor (Actor *a) |
The intersected Actor. More... | |
const Actor * | actor () const |
The intersected Actor. More... | |
Actor * | actor () |
The intersected Actor. More... | |
const vec3 & | intersectionPoint () const |
The intersection point, in world coordinates. More... | |
void | setIntersectionPoint (const vec3 &v) |
The intersection point, in world coordinates. More... | |
real | distance () const |
The intersection distance. More... | |
void | setDistance (real dist) |
The intersection distance. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Attributes | |
vec3 | mIntersectionPoint |
Geometry * | mGeometry |
DrawCall * | mDrawCalls |
int | mTriangleIndex |
int | mTriangle [3] |
float | mDistance |
Protected Attributes inherited from vl::RayIntersection | |
vec3 | mIntersectionPoint |
Actor * | mActor |
real | mDistance |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
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.
|
inline |
Definition at line 92 of file RayIntersector.hpp.
|
inline |
The intersected DrawCall.
Definition at line 103 of file RayIntersector.hpp.
|
inline |
The intersected DrawCall.
Definition at line 105 of file RayIntersector.hpp.
|
inline |
The intersected Geometry.
Definition at line 99 of file RayIntersector.hpp.
|
inline |
The intersected Geometry.
Definition at line 101 of file RayIntersector.hpp.
|
inline |
The intersected Geometry.
Definition at line 112 of file RayIntersector.hpp.
Referenced by vl::RayIntersector::intersectTriangle().
|
inline |
The intersected DrawCall.
Definition at line 114 of file RayIntersector.hpp.
Referenced by vl::RayIntersector::intersectTriangle().
|
inline |
An int[3] representing the indices of the intersected triangle.
Definition at line 118 of file RayIntersector.hpp.
Referenced by vl::RayIntersector::intersectTriangle().
|
inline |
The starting index of the intersected primitive inside drawCalls()
Definition at line 116 of file RayIntersector.hpp.
Referenced by vl::RayIntersector::intersectTriangle().
|
inline |
An int[3] representing the indices of the intersected triangle.
Definition at line 109 of file RayIntersector.hpp.
|
inline |
The starting index of the intersected primitive inside drawCalls()
Definition at line 107 of file RayIntersector.hpp.
|
protected |
Definition at line 126 of file RayIntersector.hpp.
|
protected |
Definition at line 123 of file RayIntersector.hpp.
|
protected |
Definition at line 122 of file RayIntersector.hpp.
|
protected |
Definition at line 121 of file RayIntersector.hpp.
|
protected |
Definition at line 125 of file RayIntersector.hpp.
|
protected |
Definition at line 124 of file RayIntersector.hpp.
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:11.
© Copyright Michele Bosi. All rights reserved.