Public Member Functions | Public Attributes

ISectList Class Reference

Search for all occurrences

Detailed Description

See also:
Structure ISect.

Description:
This class is available in release 2.0 and later only.

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.

#include <imtl.h>

Inheritance diagram for ISectList:
Inheritance graph
[legend]

List of all members.

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


ISectList ISectList ISectList ISectList ISectList ISectList ISectList ISectList ISectList ISectList
ISectList ISectList ISectList ISectList ISectList ISectList ISectList ISectList ISectList ISectList