Public Member Functions | Public Attributes

ShapeHitData Class Reference

Search for all occurrences

Detailed 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. All methods of this class are implemented 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.

#include <shape.h>

Inheritance diagram for ShapeHitData:
Inheritance graph
[legend]

List of all members.

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

int poly
int index

ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData
ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData ShapeHitData