GlobeEngine
geRaster::KPatchBase Class Reference

#include <KPatchBase.h>

Public Types

enum  PatchOrientation {
  LEFT = 1, TOP, RIGHT, BOTTOM,
  UPPERLEFT, UPPERRIGHT, LOWERRIGHT, LOWERLEFT
}
 
enum  PatchMode {
  THREE = 0, FIVE, NINE, SEVENTHEN,
  THIRTYTHREE, SIXTYFIVE, HUNDERTTWENTYNINE
}
 
enum  TriangulationMode { CLOCKWISE = 0, COUNTERCLOCKWISE }
 

Public Member Functions

 KPatchBase ()
 
 ~KPatchBase ()
 
void clear ()
 
void create ()
 
void createIndexArrays (int _points_per_edge, int _indexCount)
 
int getIndexCount () const
 
const intgetIndexArrayX (PatchOrientation _type) const
 
const intgetIndexArrayY (PatchOrientation _type) const
 
const short * getIndexArrayXus (PatchOrientation _type) const
 
const short * getIndexArrayYus (PatchOrientation _type) const
 

Static Public Member Functions

static int calculateIndexCount (int _points_per_edge)
 
static int calculatePointsPerSide (KPatchBase::PatchMode _mode)
 
static KPatchBase::PatchMode getModeForPointsPerSide (int _pointPerSide)
 

Member Enumeration Documentation

Enumerator
THREE 
FIVE 
NINE 
SEVENTHEN 
THIRTYTHREE 
SIXTYFIVE 
HUNDERTTWENTYNINE 
Enumerator
LEFT 
TOP 
RIGHT 
BOTTOM 
UPPERLEFT 
UPPERRIGHT 
LOWERRIGHT 
LOWERLEFT 
Enumerator
CLOCKWISE 
COUNTERCLOCKWISE 

Constructor & Destructor Documentation

geRaster::KPatchBase::KPatchBase ( )
geRaster::KPatchBase::~KPatchBase ( )

Member Function Documentation

int geRaster::KPatchBase::calculateIndexCount ( int  _points_per_edge)
static
int geRaster::KPatchBase::calculatePointsPerSide ( KPatchBase::PatchMode  _mode)
static
void geRaster::KPatchBase::clear ( )
void geRaster::KPatchBase::create ( )
void geRaster::KPatchBase::createIndexArrays ( int  _points_per_edge,
int  _indexCount 
)
const int * geRaster::KPatchBase::getIndexArrayX ( PatchOrientation  _type) const
const short * geRaster::KPatchBase::getIndexArrayXus ( PatchOrientation  _type) const
const int * geRaster::KPatchBase::getIndexArrayY ( PatchOrientation  _type) const
const short * geRaster::KPatchBase::getIndexArrayYus ( PatchOrientation  _type) const
int geRaster::KPatchBase::getIndexCount ( ) const
KPatchBase::PatchMode geRaster::KPatchBase::getModeForPointsPerSide ( int  _pointPerSide)
static

The documentation for this class was generated from the following files: