DigiBitmap Class Reference

List of all members.

Public Member Functions

 DigiBitmap ()
const char * bitmapFilename () const
void bitmapFilename (const char *str)
double latitude () const
double longitude () const
void latitude (const double v)
void longitude (const double v)
double northSize () const
double eastSize () const
void northSize (const double v)
void eastSize (const double v)
virtual void updateData ()
virtual void drawFunc ()
void readBitmap ()

Private Member Functions

bool scaleDIB ()

Private Attributes

char bitmapFile [BITMAP_FILE_SIZE]
MapDisplay * map
int haveBitmap
pfVec2 texCoord [4]
GLuint texName
BYTE * pBits
HWND hWnd
HANDLE hDibOriginal
HBITMAP hDibScaled
double lat
double lon
double ns
double es
int scaledSize

Static Private Attributes

static const unsigned int BITMAP_FILE_SIZE = 128

Constructor & Destructor Documentation

DigiBitmap::DigiBitmap (  ) 

Constructor. Initializes parameters such as the default bitmap file, latitude, longitude, texture coordinates etc.


Member Function Documentation

const char* DigiBitmap::bitmapFilename (  )  const [inline]

Returns the bitmap file name as a char*.

void DigiBitmap::bitmapFilename ( const char *  str  )  [inline]

Sets the bitmap file name to str.

double DigiBitmap::latitude (  )  const [inline]

Returns the latitude.

double DigiBitmap::longitude (  )  const [inline]

Returns the longitude.

void DigiBitmap::latitude ( const double  v  )  [inline]

Sets the latitude.

void DigiBitmap::longitude ( const double  v  )  [inline]

Sets the longitude.

double DigiBitmap::northSize (  )  const [inline]

Returns north size.

double DigiBitmap::eastSize (  )  const [inline]

Returns east size.

void DigiBitmap::northSize ( const double  v  )  [inline]

Sets the north size to v.

void DigiBitmap::eastSize ( const double  v  )  [inline]

Sets the east size to v.

void DigiBitmap::updateData (  )  [virtual]

Function to update non time critical stuff.

void DigiBitmap::drawFunc (  )  [virtual]

Draws the bitmap.

void DigiBitmap::readBitmap (  ) 

Reads the Bitmap.

bool DigiBitmap::scaleDIB (  )  [private]

Converts the loaded DIB (hDibOriginal) into a square 32-bpp DIB Section (hDibScaled).


Member Data Documentation

const unsigned int DigiBitmap::BITMAP_FILE_SIZE = 128 [static, private]

char DigiBitmap::bitmapFile[BITMAP_FILE_SIZE] [private]

Bitmap file name.

MapDisplay* DigiBitmap::map [private]

Pointer to main MapDisplay object.

int DigiBitmap::haveBitmap [private]

True if we have the bitmap.

pfVec2 DigiBitmap::texCoord[4] [private]

Texture Coordinates.

GLuint DigiBitmap::texName [private]

Texture.

BYTE* DigiBitmap::pBits [private]

Pointer to scaled 32bpp Texture DIB bits.

HWND DigiBitmap::hWnd [private]

Handle to OpenGL window.

HANDLE DigiBitmap::hDibOriginal [private]

Handle to original DIB.

HBITMAP DigiBitmap::hDibScaled [private]

Handle to scaled 32bpp Texture DIB.

double DigiBitmap::lat [private]

Southwest corner laitutde/longitude (deg).

double DigiBitmap::lon [private]

double DigiBitmap::ns [private]

Size of bitmap north & east (deg).

double DigiBitmap::es [private]

int DigiBitmap::scaledSize [private]

Square Textures x and y dimensions.


Generated on Tue Dec 19 16:25:39 2006 for Eaagles by  doxygen 1.5.0