PatchHitData Class Reference
 
 
 
PatchHitData Class Reference

#include <patch.h>

Inheritance diagram for PatchHitData:
HitData MaxHeapOperators

Class 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. When this data is logged with the system, the memory is owned and freed by the System.

Public Member Functions

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

Public Attributes

PatchMesh patch
  The PatchMesh associated with this hit record.
int  index
  The index of the sub-object component.
int  type
  Types for patch vertex hits.

Constructor & Destructor Documentation

PatchHitData ( PatchMesh patch,
int  index,
int  type 
) [inline]

Constructor.

The data members are initialized to the values passed.

                        { this->patch = patch; this->index = index; this->type = type; }
~PatchHitData ( ) [inline]
{}

Member Data Documentation

The PatchMesh associated with this hit record.

int index

The index of the sub-object component.

For example, if vertices's 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