Event Class Reference

#include <Event.h>

Collaboration diagram for Event:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Event ()
 Event (Primitive *prim, const SplitPlane &plane, EventType eventType)
bool operator< (const Event &other) const
Primitiveprimitive () const
const SplitPlaneplane () const
EventType type () const

Private Attributes

PrimitivemPrimitive
 Primitive that generated this event.
SplitPlane mPlane
 Plane.
EventType mType
 Event type.

Detailed Description

Event that happens when a plane is swept over some primitive during SAH KD-Tree build.

Author:
Alex Busenius

Definition at line 27 of file Event.h.


Constructor & Destructor Documentation

Event::Event (  )  [inline]

Default constructor

Definition at line 32 of file Event.h.

Event::Event ( Primitive prim,
const SplitPlane plane,
EventType  eventType 
) [inline]

Init constructor

Parameters:
prim Primitive that generated this event
plane Split plane where event occured
eventType Event type

Definition at line 45 of file Event.h.


Member Function Documentation

bool Event::operator< ( const Event other  )  const [inline]

Comparision operator for sorting. Events are first sorted by plane position, then by dimension and event type

Definition at line 57 of file Event.h.

References mPlane, and mType.

Primitive* Event::primitive (  )  const [inline]

Get Primitive

Definition at line 66 of file Event.h.

References mPrimitive.

const SplitPlane& Event::plane (  )  const [inline]

Get plane

Definition at line 73 of file Event.h.

References mPlane.

EventType Event::type (  )  const [inline]

Get event type

Definition at line 80 of file Event.h.

References mType.


Member Data Documentation

Primitive* Event::mPrimitive [private]

Primitive that generated this event.

Definition at line 87 of file Event.h.

Referenced by primitive().

SplitPlane Event::mPlane [private]

Plane.

Definition at line 90 of file Event.h.

Referenced by operator<(), and plane().

EventType Event::mType [private]

Event type.

Definition at line 93 of file Event.h.

Referenced by operator<(), and type().


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 00:02:18 2008 for Grayfall by  doxygen 1.5.1