Public Member Functions

SubShapeHitList Class Reference

Search for all occurrences

Detailed Description

class SubShapeHitList

Description:
This class provides methods for accessing the first hit list record and adding hits to the list. All methods of this class are implemented by the system.

#include <shape.h>

Inheritance diagram for SubShapeHitList:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  SubShapeHitList ()
CoreExport  ~SubShapeHitList ()
ShapeSubHitRec First ()
CoreExport void  AddHit (DWORD dist, BezierShape *shape, int poly, int index)
int  Count ()

Constructor & Destructor Documentation

SubShapeHitList ( ) [inline]
Remarks:
Constructor. The list is set to NULL.
{ first = NULL; }
CoreExport ~SubShapeHitList ( )
Remarks:
Destructor. The list is deleted.

Member Function Documentation

ShapeSubHitRec* First ( ) [inline]
Remarks:
Returns the first hit in the list.
{ return first; }
CoreExport void AddHit ( DWORD  dist,
BezierShape shape,
int  poly,
int  index 
)
Remarks:
Adds a hit record to the list.
Parameters:
DWORD dist

The distance of the hit. If the user is in wireframe mode, this is the distance in pixels to the item that was hit. If the user is in shaded mode, this is the Z depth distance. Smaller numbers indicate a closer hit.

BezierShape *shape

The shape that was hit.

int poly

The polygon that was hit.

int index

The index of the sub-object component that was hit.
int Count ( ) [inline]
                    {
            int count = 0;
            ShapeSubHitRec *ptr = first;
            while(ptr) {
                count++;
                ptr = ptr->Next();
                }
            return count;
            }

SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList
SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList SubShapeHitList