Visualization Library v1.0.3

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

vl::RayIntersection Class Reference

The RayIntersection encapsulates all the information relative to a Ray/Actor intersection. More...

#include <RayIntersector.hpp>

Inheritance diagram for vl::RayIntersection:
vl::Object vl::RayIntersectionGeometry

List of all members.

Public Member Functions

 RayIntersection ()
void setActor (Actor *a)
 The intersected Actor.
const Actor * actor () const
 The intersected Actor.
Actor * actor ()
 The intersected Actor.
const vec3 & intersectionPoint () const
 The intersection point, in world coordinates.
void setIntersectionPoint (const vec3 &v)
 The intersection point, in world coordinates.
real distance () const
 The intersection distance.
void setDistance (real dist)
 The intersection distance.

Protected Attributes

vec3 mIntersectionPoint
Actor * mActor
real mDistance

Detailed Description

The RayIntersection encapsulates all the information relative to a Ray/Actor intersection.

Definition at line 50 of file RayIntersector.hpp.


Constructor & Destructor Documentation

vl::RayIntersection::RayIntersection (  ) [inline]

Definition at line 55 of file RayIntersector.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

void vl::RayIntersection::setActor ( Actor *  a ) [inline]

The intersected Actor.

Definition at line 61 of file RayIntersector.hpp.

References mActor.

const Actor* vl::RayIntersection::actor (  ) const [inline]

The intersected Actor.

Definition at line 63 of file RayIntersector.hpp.

References mActor.

Actor* vl::RayIntersection::actor (  ) [inline]

The intersected Actor.

Definition at line 65 of file RayIntersector.hpp.

References mActor.

const vec3& vl::RayIntersection::intersectionPoint (  ) const [inline]

The intersection point, in world coordinates.

Definition at line 68 of file RayIntersector.hpp.

References mIntersectionPoint.

void vl::RayIntersection::setIntersectionPoint ( const vec3 &  v ) [inline]

The intersection point, in world coordinates.

Definition at line 70 of file RayIntersector.hpp.

References mIntersectionPoint.

real vl::RayIntersection::distance (  ) const [inline]

The intersection distance.

Definition at line 73 of file RayIntersector.hpp.

References mDistance.

void vl::RayIntersection::setDistance ( real  dist ) [inline]

The intersection distance.

Definition at line 75 of file RayIntersector.hpp.

References mDistance.


Member Data Documentation

Reimplemented in vl::RayIntersectionGeometry.

Definition at line 78 of file RayIntersector.hpp.

Referenced by intersectionPoint(), and setIntersectionPoint().

Definition at line 79 of file RayIntersector.hpp.

Referenced by actor(), and setActor().

Reimplemented in vl::RayIntersectionGeometry.

Definition at line 80 of file RayIntersector.hpp.

Referenced by distance(), and setDistance().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:11.
Permission is granted to use this page to write and publish articles regarding Visualization Library.