Class HitRegion

3DS Max Plug-In SDK

Class HitRegion

See Also: Data Types.

class HitRegion

Description:

This class describes the properties of a region used for built-in hit testing of items in the interactive renderer.

Data Members:

public:

int type;

The region type. One of the following values:

POINT_RGN

A single point.

RECT_RGN

A rectangular region.

CIRCLE_RGN

A circular region.

FENCE_RGN

An arbitrary multi-point polygon region.

int crossing;

If nonzero, elements that are contained within or cross the region boundary are hit. If zero, only those elements entirely within the boundary are hit. This is not used for point hit testing.

int epsilon;

Specifies the distance in pixels outside the pick point within which elements may be and still be hit. This is not used for rect, circle, or fence hit testing.

union {

POINT pt;

RECT rect;

CIRCLE circle;

POINT *pts;

};

The storage for the region.