Visualization Library 2.1.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
vl::RayIntersectionGeometry Class Reference

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>

+ Inheritance diagram for vl::RayIntersectionGeometry:

Public Member Functions

 RayIntersectionGeometry ()
 
Geometrygeometry ()
 The intersected Geometry. More...
 
const Geometrygeometry () const
 The intersected Geometry. More...
 
DrawCalldrawCalls ()
 The intersected DrawCall. More...
 
const DrawCalldrawCalls () 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 Actoractor () const
 The intersected Actor. More...
 
Actoractor ()
 The intersected Actor. More...
 
const vec3intersectionPoint () 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...
 
Objectoperator= (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...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () 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
 
GeometrymGeometry
 
DrawCallmDrawCalls
 
int mTriangleIndex
 
int mTriangle [3]
 
float mDistance
 
- Protected Attributes inherited from vl::RayIntersection
vec3 mIntersectionPoint
 
ActormActor
 
real mDistance
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Additional Inherited Members

- Protected Member Functions inherited from vl::Object
virtual ~Object ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RayIntersectionGeometry()

vl::RayIntersectionGeometry::RayIntersectionGeometry ( )
inline

Definition at line 92 of file RayIntersector.hpp.

Member Function Documentation

◆ drawCalls() [1/2]

DrawCall* vl::RayIntersectionGeometry::drawCalls ( )
inline

The intersected DrawCall.

Definition at line 103 of file RayIntersector.hpp.

◆ drawCalls() [2/2]

const DrawCall* vl::RayIntersectionGeometry::drawCalls ( ) const
inline

The intersected DrawCall.

Definition at line 105 of file RayIntersector.hpp.

◆ geometry() [1/2]

Geometry* vl::RayIntersectionGeometry::geometry ( )
inline

The intersected Geometry.

Definition at line 99 of file RayIntersector.hpp.

◆ geometry() [2/2]

const Geometry* vl::RayIntersectionGeometry::geometry ( ) const
inline

The intersected Geometry.

Definition at line 101 of file RayIntersector.hpp.

◆ setGeometry()

void vl::RayIntersectionGeometry::setGeometry ( Geometry g)
inline

The intersected Geometry.

Definition at line 112 of file RayIntersector.hpp.

Referenced by vl::RayIntersector::intersectTriangle().

◆ setPrimitives()

void vl::RayIntersectionGeometry::setPrimitives ( DrawCall p)
inline

The intersected DrawCall.

Definition at line 114 of file RayIntersector.hpp.

Referenced by vl::RayIntersector::intersectTriangle().

◆ setTriangle()

void vl::RayIntersectionGeometry::setTriangle ( int  a,
int  b,
int  c 
)
inline

An int[3] representing the indices of the intersected triangle.

Definition at line 118 of file RayIntersector.hpp.

Referenced by vl::RayIntersector::intersectTriangle().

◆ setTriangleIndex()

void vl::RayIntersectionGeometry::setTriangleIndex ( int  t_idx)
inline

The starting index of the intersected primitive inside drawCalls()

Definition at line 116 of file RayIntersector.hpp.

Referenced by vl::RayIntersector::intersectTriangle().

◆ triangle()

const int* vl::RayIntersectionGeometry::triangle ( ) const
inline

An int[3] representing the indices of the intersected triangle.

Definition at line 109 of file RayIntersector.hpp.

◆ triangleIndex()

int vl::RayIntersectionGeometry::triangleIndex ( ) const
inline

The starting index of the intersected primitive inside drawCalls()

Definition at line 107 of file RayIntersector.hpp.

Member Data Documentation

◆ mDistance

float vl::RayIntersectionGeometry::mDistance
protected

Definition at line 126 of file RayIntersector.hpp.

◆ mDrawCalls

DrawCall* vl::RayIntersectionGeometry::mDrawCalls
protected

Definition at line 123 of file RayIntersector.hpp.

◆ mGeometry

Geometry* vl::RayIntersectionGeometry::mGeometry
protected

Definition at line 122 of file RayIntersector.hpp.

◆ mIntersectionPoint

vec3 vl::RayIntersectionGeometry::mIntersectionPoint
protected

Definition at line 121 of file RayIntersector.hpp.

◆ mTriangle

int vl::RayIntersectionGeometry::mTriangle[3]
protected

Definition at line 125 of file RayIntersector.hpp.

◆ mTriangleIndex

int vl::RayIntersectionGeometry::mTriangleIndex
protected

Definition at line 124 of file RayIntersector.hpp.


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