ShapeHitData Class Reference
 
 
 
ShapeHitData Class Reference

#include <shape.h>

Inheritance diagram for ShapeHitData:
HitData MaxHeapOperators

Class Description

See also:
Class HitData.

Description:
This is a storage class for hit records used in hit testing to know which specific shape object was hit. When this data is logged with the system, the memory is owned and freed by the System.
Data Members:
BezierShape *shape;

The shape that was hit.

int poly;

The polygon of the shape that was hit.

int index;

The index of the sub-object entity that was hit.

Public Member Functions

  ShapeHitData (BezierShape *shape, int poly, int index)
  ~ShapeHitData ()

Public Attributes

BezierShape shape
int  poly
int  index

Constructor & Destructor Documentation

ShapeHitData ( BezierShape shape,
int  poly,
int  index 
) [inline]
Remarks:
Constructor. The data members are initialized to the values passed.
                        { this->shape = shape; this->poly = poly; this->index = index; }
~ShapeHitData ( ) [inline]
{}

Member Data Documentation