Public Member Functions | Public Attributes

PatchHitData Class Reference

Search for all occurrences

Detailed Description

See also:
Class HitData, Class PatchMesh.

Description:
This is a storage class for hit records so the system can know which patch was hit. All methods of this class are implemented by the system.
Data Members:
PatchMesh *patch;

The PatchMesh associated with this hit record.

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;

Types for patch vertex hits.

PATCH_HIT_PATCH

PATCH_HIT_EDGE

PATCH_HIT_VERTEX

PATCH_HIT_VECTOR

PATCH_HIT_INTERIOR

#include <patch.h>

Inheritance diagram for PatchHitData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  PatchHitData (PatchMesh *patch, int index, int type)
  ~PatchHitData ()

Public Attributes

PatchMesh patch
int  index
int  type

Constructor & Destructor Documentation

PatchHitData ( PatchMesh patch,
int  index,
int  type 
) [inline]
Remarks:
Constructor. The data members are initialized to the values passed.
            { this->patch = patch; this->index = index; this->type = type; }
~PatchHitData ( ) [inline]
{}

Member Data Documentation

int index
int type

PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData
PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData PatchHitData