From 384539f7cc9feaa7ef7cee385cce472c6966c843 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 27 Apr 2009 00:24:16 +0200 Subject: Adding ue1 --- ue1/doxygen/classCBitmap.html | 497 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 497 insertions(+) create mode 100644 ue1/doxygen/classCBitmap.html (limited to 'ue1/doxygen/classCBitmap.html') diff --git a/ue1/doxygen/classCBitmap.html b/ue1/doxygen/classCBitmap.html new file mode 100644 index 0000000..5fb5270 --- /dev/null +++ b/ue1/doxygen/classCBitmap.html @@ -0,0 +1,497 @@ + + +imgsynth: CBitmap Class Reference + + + + +
+ +
+
+ +
+

CBitmap Class Reference

Implementation of CFile handling Windows Bitmaps. +More... +

+#include <cbitmap.h> +

+

+Inheritance diagram for CBitmap:
+
+ +

+ +CFile + +
+ +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 CBitmap ()
 Default ctor.
 ~CBitmap ()
 Default dtor.
void read (std::ifstream &in)
 Reads Windows Bitmap from filestream. On error an exception is thrown.
void write (std::ofstream &out)
 Writes Windows Bitmap to filestream.
void callFunc (const std::string &func, const std::list< std::string > &params)
 Delegates the function and its parameters to the correct internal method.
BITMAP_FILEHEADERgetFileHeader ()
 Returns reference to fileheader structure of bitmap.
BITMAP_INFOHEADERgetInfoHeader ()
 Returns reference to infoheader structure of bitmap.
uint8_t * getPixelData ()
 Returns pointer to pixelbuffer.

Protected Member Functions

void fillrect (std::list< std::string > params)
 Fills rectangle in image starting on position x, y width size width, height and color red, green, blue.

Protected Attributes

BITMAP_FILEHEADER m_fileheader
BITMAP_INFOHEADER m_infoheader
uint8_t * m_pixeldata
CPixelFormatm_pixelformat

Classes

struct  BITMAP_FILEHEADER
 Windows Bitmap File Header structure. More...
struct  BITMAP_INFOHEADER
 Windows Bitmap Info Header structure. More...
+


Detailed Description

+Implementation of CFile handling Windows Bitmaps. +

+In order to support operations on bitmaps with different color bitcounts different implementations of CPixelFormat are used. These classes are allowed to modify the bitmap headers and pixelbuffer directly.

+On error CFile::FileError is thrown.


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
CBitmap::CBitmap (  )  [inline]
+
+
+ +

+Default ctor. +

+

Methodname:
CBitmap
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
CBitmap::~CBitmap (  ) 
+
+
+ +

+Default dtor. +

+

Methodname:
~CBitmap
+
Parameters:
+ + +
- 
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+


Member Function Documentation

+ +
+
+ + + + + + + + + +
void CBitmap::read (std::ifstream &  in  )  [virtual]
+
+
+ +

+Reads Windows Bitmap from filestream. On error an exception is thrown. +

+

Methodname:
read
+
Parameters:
+ + +
in filestream to read data from
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + + +
CFile::FileError 
bad_alloc 
+
+
Conditions:
none
+ +

Implements CFile.

+ +
+

+ +

+
+ + + + + + + + + +
void CBitmap::write (std::ofstream &  out  )  [virtual]
+
+
+ +

+Writes Windows Bitmap to filestream. +

+

Methodname:
write
+
Parameters:
+ + +
out filestream to read data from
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + + +
FileError 
bad_alloc 
+
+
Conditions:
none
+ +

Implements CFile.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void CBitmap::callFunc (const std::string &  func,
const std::list< std::string > &  params 
) [virtual]
+
+
+ +

+Delegates the function and its parameters to the correct internal method. +

+

Methodname:
callFunc
+
Parameters:
+ + + +
func function name
params function parameters as list
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
ParserError 
+
+
Conditions:
none
+ +

Implements CFile.

+ +
+

+ +

+
+ + + + + + + + +
BITMAP_FILEHEADER& CBitmap::getFileHeader (  )  [inline]
+
+
+ +

+Returns reference to fileheader structure of bitmap. +

+

Methodname:
getFileHeader
+
Parameters:
+ + +
- 
+
+
Returns:
reference to fileheader structure
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
BITMAP_INFOHEADER& CBitmap::getInfoHeader (  )  [inline]
+
+
+ +

+Returns reference to infoheader structure of bitmap. +

+

Methodname:
getInfoHeader
+
Parameters:
+ + +
- 
+
+
Returns:
reference to infoheader structure
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + +
uint8_t* CBitmap::getPixelData (  )  [inline]
+
+
+ +

+Returns pointer to pixelbuffer. +

+

Methodname:
getPixelData
+
Parameters:
+ + +
- 
+
+
Returns:
pointer to pixelbuffer
+
Global variables used:
none
+
Exceptions:
+ + +
none 
+
+
Conditions:
none
+ +
+

+ +

+
+ + + + + + + + + +
void CBitmap::fillrect (std::list< std::string >  params  )  [protected]
+
+
+ +

+Fills rectangle in image starting on position x, y width size width, height and color red, green, blue. +

+

Methodname:
fillrect
+
Parameters:
+ + +
params function parameters as list
+
+
Returns:
-
+
Global variables used:
none
+
Exceptions:
+ + +
FileError 
+
+
Conditions:
none
+Scriptfile syntax: fillrect(x, y, width, height, red, green, blue) +
+

+


Member Data Documentation

+ +
+
+ + + + +
BITMAP_FILEHEADER CBitmap::m_fileheader [protected]
+
+
+ +

+fileheader +

+

+ +

+
+ + + + +
BITMAP_INFOHEADER CBitmap::m_infoheader [protected]
+
+
+ +

+infoheader +

+

+ +

+
+ + + + +
uint8_t* CBitmap::m_pixeldata [protected]
+
+
+ +

+pointer to pixelbuffer +

+

+ +

+
+ + + + +
CPixelFormat* CBitmap::m_pixelformat [protected]
+
+
+ +

+pointer to CPixelFormat implementation +

+

+


The documentation for this class was generated from the following files: +
Generated on Sun Apr 26 12:25:52 2009 for imgsynth by  + +doxygen 1.5.3
+ + -- cgit v1.2.3