ISectList Class Reference
 
 
 
ISectList Class Reference

#include <imtl.h>

Inheritance diagram for ISectList:
MaxHeapOperators

Class Description

See also:
Structure ISect.

Description:
It provides a list of ray / triangle intersection structures (struct ISect). Methods are available for initializing the list, adding to the list, and selectively removing items from the list.

All methods of this class are implemented by the system.

Note the following global functions may be used to create and free instances of this class.

Public Member Functions

  ISectList ()
  ~ISectList ()
BOOL  IsEmpty ()
CoreExport void  Add (ISect *is)
CoreExport void  Prune (float a)
CoreExport void  Init ()

Public Attributes

ISect first

Constructor & Destructor Documentation

ISectList ( ) [inline]
Remarks:
Constructor. The list is set to empty.
{ first = NULL; }
~ISectList ( ) [inline]
Remarks:
Destructor. The list is freed. first is set to NULL.
{ Init(); }

Member Function Documentation

BOOL IsEmpty ( ) [inline]
Remarks:
Returns TRUE if the list is empty; otherwise FALSE.
{ return first?0:1; }
CoreExport void Add ( ISect is )
Remarks:
Adds the specified ISect to the list with the most distant layers first.
Parameters:
ISect *is

Points to the ISect structure to add to the list.
CoreExport void Prune ( float  a )
Remarks:
Removes the ISect structures from the list whose t values are less than or equal to the specified value a.
Parameters:
float a

The ray parameter used for comparison.
CoreExport void Init ( )
Remarks:
Deletes any items from the list and sets first to NULL.

Member Data Documentation