class Intersection

Describes the intersection of a ray with an object. More...

Contains pure virtuals
Definition#include <raytracer/intersection.h>
Inherited byBoxIntersection, CSGIntersection, IsosurfaceIntersection, PlaneIntersection, SphereIntersection
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members

Private Methods


Detailed Description

Describes the intersection of a ray with an object. Also provides information about the surface point hit.

 Intersection (const Object3D* o, const Ray& r)

Intersection

 ~Intersection ()

~Intersection

[virtual]

 Intersection (const Intersection&)

Intersection

[private]

Intersection&  operator= (const Intersection&)

operator=

[private]

const Object3D* hitobject

hitobject

[protected]

Ray ray

ray

[protected]

const Object3D*  hitObject ()

hitObject

[const]

Returns: a pointer to the object which is hit by the ray

Texture*  texture ()

texture

[virtual]

Returns: the texture at the current intersection

void  next ()

next

[pure virtual]

Go to the next intersecting point.

DBL  currentTime ()

currentTime

[pure virtual]

Returns: Current time of intersecting. If no more intersection then it returns INTERSECTION_TIME_INFINIT.

Vector3  normal ()

normal

[pure virtual]

Returns: the surface normal at the current intersection