NL3D::CPatchBlockIdent Class Reference

#include <patch.h>


Detailed Description

An descriptor of a group of tiles in a patch.

Author:
Lionel Berenguier

Nevrax France

Date:
2000

Definition at line 193 of file patch.h.

Public Member Functions

Operators.
bool operator!= (const CPatchBlockIdent &pb) const
bool operator< (const CPatchBlockIdent &pb) const
bool operator<= (const CPatchBlockIdent &pb) const
bool operator== (const CPatchBlockIdent &pb) const
bool operator> (const CPatchBlockIdent &pb) const
bool operator>= (const CPatchBlockIdent &pb) const

Data Fields

uint8 OrderS
 size of the patch, in tile coordinates.

uint8 OrderT
 size of the patch, in tile coordinates.

CPatchIdent PatchId
 the patch.

uint8 S0
 coordinate of the SubPart of the patch, in tile coordinates.

uint8 S1
 coordinate of the SubPart of the patch, in tile coordinates.

uint8 T0
 coordinate of the SubPart of the patch, in tile coordinates.

uint8 T1
 coordinate of the SubPart of the patch, in tile coordinates.


Member Function Documentation

bool NL3D::CPatchBlockIdent::operator!= const CPatchBlockIdent pb  )  const [inline]
 

Definition at line 212 of file patch.h.

00213         {
00214                 return !(*this==pb);
00215         }

bool NL3D::CPatchBlockIdent::operator< const CPatchBlockIdent pb  )  const [inline]
 

Definition at line 217 of file patch.h.

References PatchId, S0, S1, T0, and T1.

00218         {
00219                 if(PatchId!=pb.PatchId)
00220                         return PatchId<pb.PatchId;
00221                 if(S0!=pb.S0)   return S0<pb.S0;
00222                 if(S1!=pb.S1)   return S1<pb.S1;
00223                 if(T0!=pb.T0)   return T0<pb.T0;
00224                 return T1<pb.T1;
00225         }

bool NL3D::CPatchBlockIdent::operator<= const CPatchBlockIdent pb  )  const [inline]
 

Definition at line 226 of file patch.h.

00227         {
00228                 return (*this<pb) || (*this==pb);
00229         }

bool NL3D::CPatchBlockIdent::operator== const CPatchBlockIdent pb  )  const [inline]
 

Definition at line 206 of file patch.h.

References PatchId, S0, S1, T0, and T1.

00207         {
00208                 return PatchId==pb.PatchId &&
00209                         S0==pb.S0 && S1==pb.S1 &&
00210                         T0==pb.T0 && T1==pb.T1;
00211         }

bool NL3D::CPatchBlockIdent::operator> const CPatchBlockIdent pb  )  const [inline]
 

Definition at line 230 of file patch.h.

00231         {
00232                 return !(*this<=pb);
00233         }

bool NL3D::CPatchBlockIdent::operator>= const CPatchBlockIdent pb  )  const [inline]
 

Definition at line 234 of file patch.h.

00235         {
00236                 return !(*this<pb);
00237         }


Field Documentation

uint8 NL3D::CPatchBlockIdent::OrderS
 

size of the patch, in tile coordinates.

Definition at line 199 of file patch.h.

Referenced by NL3D::CPatch::addPatchBlocksInBBoxRecurs(), NL3D::CPatchQuadBlock::buildTileTriangles(), and NL3D::CPatch::fillPatchQuadBlock().

uint8 NL3D::CPatchBlockIdent::OrderT
 

size of the patch, in tile coordinates.

Definition at line 199 of file patch.h.

Referenced by NL3D::CPatch::addPatchBlocksInBBoxRecurs(), NL3D::CPatchQuadBlock::buildTileTriangles(), and NL3D::CPatch::fillPatchQuadBlock().

CPatchIdent NL3D::CPatchBlockIdent::PatchId
 

the patch.

Definition at line 197 of file patch.h.

Referenced by NL3D::CPatch::addPatchBlocksInBBoxRecurs(), NL3D::CPatchQuadBlock::buildTileTriangles(), NL3D::CLandscape::fillPatchQuadBlock(), operator<(), and operator==().

uint8 NL3D::CPatchBlockIdent::S0
 

coordinate of the SubPart of the patch, in tile coordinates.

Definition at line 201 of file patch.h.

Referenced by NL3D::CPatch::addPatchBlocksInBBoxRecurs(), NL3D::CLandscapeCollisionGrid::build(), NL3D::CPatchQuadBlock::buildTileTriangles(), NL3D::CVisualCollisionEntity::displayDebugGrid(), NL3D::CPatch::fillPatchQuadBlock(), operator<(), and operator==().

uint8 NL3D::CPatchBlockIdent::S1
 

coordinate of the SubPart of the patch, in tile coordinates.

Definition at line 201 of file patch.h.

Referenced by NL3D::CPatch::addPatchBlocksInBBoxRecurs(), NL3D::CLandscapeCollisionGrid::build(), NL3D::CPatchQuadBlock::buildTileTriangles(), NL3D::CVisualCollisionEntity::displayDebugGrid(), NL3D::CPatch::fillPatchQuadBlock(), operator<(), and operator==().

uint8 NL3D::CPatchBlockIdent::T0
 

coordinate of the SubPart of the patch, in tile coordinates.

Definition at line 201 of file patch.h.

Referenced by NL3D::CPatch::addPatchBlocksInBBoxRecurs(), NL3D::CLandscapeCollisionGrid::build(), NL3D::CPatchQuadBlock::buildTileTriangles(), NL3D::CVisualCollisionEntity::displayDebugGrid(), NL3D::CPatch::fillPatchQuadBlock(), operator<(), and operator==().

uint8 NL3D::CPatchBlockIdent::T1
 

coordinate of the SubPart of the patch, in tile coordinates.

Definition at line 201 of file patch.h.

Referenced by NL3D::CPatch::addPatchBlocksInBBoxRecurs(), NL3D::CLandscapeCollisionGrid::build(), NL3D::CPatchQuadBlock::buildTileTriangles(), NL3D::CVisualCollisionEntity::displayDebugGrid(), NL3D::CPatch::fillPatchQuadBlock(), operator<(), and operator==().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 07:00:44 2004 for NeL by doxygen 1.3.6