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.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::RayIntersection.

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

The intersected Geometry.

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

The intersected Geometry.

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

The intersected DrawCall.

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

The intersected DrawCall.

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

The starting index of the intersected primitive inside drawCalls()

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.

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

The intersected DrawCall.

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

The starting index of the intersected primitive inside drawCalls()

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

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


Member Data Documentation

Reimplemented from vl::RayIntersection.

Reimplemented from vl::RayIntersection.


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

Visualization Library v2010.11.1123 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Thu Nov 18 2010 02:08:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.