Public Member Functions | Public Attributes

PatchSubHitRec Class Reference

Search for all occurrences

Detailed Description

See also:
Class PatchMesh.

Description:
This class represents a single hit record for sub-patch level hit testing. All methods of this class are implemented by the system.
Data Members:
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.

PatchMesh *patch;

The PatchMesh associated with this sub-patch hit.

int index;

The index of the sub-object component. For example, if vertices were being hit tested, this would be the index into the vertex table.

int type;

The type of the hit. One of the following values:

PATCH_HIT_PATCH

PATCH_HIT_EDGE

PATCH_HIT_VERTEX

PATCH_HIT_VECTOR

PATCH_HIT_INTERIOR

#include <patch.h>

Inheritance diagram for PatchSubHitRec:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  PatchSubHitRec (DWORD dist, PatchMesh *patch, int index, int type, PatchSubHitRec *next)
PatchSubHitRec Next ()

Public Attributes

DWORD  dist
PatchMesh patch
int  index
int  type

Constructor & Destructor Documentation

PatchSubHitRec ( DWORD  dist,
PatchMesh patch,
int  index,
int  type,
PatchSubHitRec next 
) [inline]
Remarks:
Constructor. The data members are set to the values passed.
            { this->dist = dist; this->patch = patch; this->index = index; this->type = type; this->next = next; }

Member Function Documentation

PatchSubHitRec* Next ( ) [inline]
Remarks:
Returns the next sub hit record.
{ return next; }        

Member Data Documentation

DWORD dist
int index
int type

PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec
PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec PatchSubHitRec