Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

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:
vl::RayIntersection vl::Object

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 RayIntersectionGeometry ()
Geometrygeometry ()
 The intersected Geometry.
const Geometrygeometry () const
 The intersected Geometry.
DrawCalldrawCalls ()
 The intersected DrawCall.
const DrawCalldrawCalls () const
 The intersected DrawCall.
int triangleIndex () const
 The starting index of the intersected primitive inside drawCalls()
int * triangle () const
 An int[3] representing the indices of the intersected triangle.
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.

Protected Attributes

vec3 mIntersectionPoint
GeometrymGeometry
DrawCallmDrawCalls
int mTriangleIndex
int mTriangle [3]
float mDistance

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 86 of file RayIntersector.hpp.


Constructor & Destructor Documentation

vl::RayIntersectionGeometry::RayIntersectionGeometry (  ) [inline]

Definition at line 90 of file RayIntersector.hpp.

References mTriangle, and VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

virtual const char* vl::RayIntersectionGeometry::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::RayIntersection.

Definition at line 89 of file RayIntersector.hpp.

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

The intersected Geometry.

Definition at line 97 of file RayIntersector.hpp.

References mGeometry.

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

The intersected Geometry.

Definition at line 99 of file RayIntersector.hpp.

References mGeometry.

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

The intersected DrawCall.

Definition at line 101 of file RayIntersector.hpp.

References mDrawCalls.

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

The intersected DrawCall.

Definition at line 103 of file RayIntersector.hpp.

References mDrawCalls.

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

The starting index of the intersected primitive inside drawCalls()

Definition at line 105 of file RayIntersector.hpp.

References mTriangleIndex.

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

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

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

The intersected Geometry.

Definition at line 110 of file RayIntersector.hpp.

References mGeometry.

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

The intersected DrawCall.

Definition at line 112 of file RayIntersector.hpp.

References mDrawCalls.

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

The starting index of the intersected primitive inside drawCalls()

Definition at line 114 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 116 of file RayIntersector.hpp.

References mTriangle.


Member Data Documentation

Reimplemented from vl::RayIntersection.

Definition at line 119 of file RayIntersector.hpp.

Definition at line 120 of file RayIntersector.hpp.

Referenced by geometry(), and setGeometry().

Definition at line 121 of file RayIntersector.hpp.

Referenced by drawCalls(), and setPrimitives().

Definition at line 122 of file RayIntersector.hpp.

Referenced by setTriangleIndex(), and triangleIndex().

Definition at line 123 of file RayIntersector.hpp.

Referenced by RayIntersectionGeometry(), and setTriangle().

Reimplemented from vl::RayIntersection.

Definition at line 124 of file RayIntersector.hpp.


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

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:43.
Permission is granted to use this page to write and publish articles regarding Visualization Library.