summaryrefslogtreecommitdiffstats
path: root/ue1/doxygen/cbitmap_8h-source.html
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-04-27 00:24:16 +0200
committermanuel <manuel@nc8430.lan>2009-04-27 00:24:16 +0200
commit384539f7cc9feaa7ef7cee385cce472c6966c843 (patch)
tree42d3cbc96d44087c0b6bbe8d41710e5c5f1efced /ue1/doxygen/cbitmap_8h-source.html
downloadooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.tar.gz
ooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.tar.bz2
ooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.zip
Adding ue1
Diffstat (limited to 'ue1/doxygen/cbitmap_8h-source.html')
-rw-r--r--ue1/doxygen/cbitmap_8h-source.html106
1 files changed, 106 insertions, 0 deletions
diff --git a/ue1/doxygen/cbitmap_8h-source.html b/ue1/doxygen/cbitmap_8h-source.html
new file mode 100644
index 0000000..18c43cb
--- /dev/null
+++ b/ue1/doxygen/cbitmap_8h-source.html
@@ -0,0 +1,106 @@
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>imgsynth: imgsynth/cbitmap.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.3 -->
8<div class="tabs">
9 <ul>
10 <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12 <li><a href="annotated.html"><span>Classes</span></a></li>
13 <li class="current"><a href="files.html"><span>Files</span></a></li>
14 </ul>
15</div>
16<h1>imgsynth/cbitmap.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
17<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CBITMAP_H</span>
18<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CBITMAP_H</span>
19<a name="l00010"></a>00010 <span class="preprocessor"></span>
20<a name="l00011"></a>00011 <span class="preprocessor">#include "cfile.h"</span>
21<a name="l00012"></a>00012
22<a name="l00013"></a>00013 <span class="keyword">class </span><a class="code" href="classCPixelFormat.html" title="Abstract class for handling different color bitcount of Bitmaps.">CPixelFormat</a>;
23<a name="l00014"></a>00014 <span class="preprocessor">#include "cpixelformat.h"</span>
24<a name="l00015"></a>00015
25<a name="l00026"></a><a class="code" href="classCBitmap.html">00026</a> <span class="keyword">class </span><a class="code" href="classCBitmap.html" title="Implementation of CFile handling Windows Bitmaps.">CBitmap</a> : <span class="keyword">public</span> <a class="code" href="classCFile.html" title="Abstract class for handling files. Needed for generic use in CScriptparser.">CFile</a>
26<a name="l00027"></a>00027 {
27<a name="l00028"></a>00028 <span class="keyword">public</span>:
28<a name="l00038"></a><a class="code" href="classCBitmap.html#a2fcc47ff70fbf2058752cad1a7d142b">00038</a> <a class="code" href="classCBitmap.html#a2fcc47ff70fbf2058752cad1a7d142b" title="Default ctor.">CBitmap</a>()
29<a name="l00039"></a>00039 : <a class="code" href="classCBitmap.html#fd64be4c5cdaff861f0b040edc697138">m_pixeldata</a>(NULL), <a class="code" href="classCBitmap.html#e9a1708eb34853ade75a0f5d82fbaae3">m_pixelformat</a>(NULL)
30<a name="l00040"></a>00040 {
31<a name="l00041"></a>00041 <a class="code" href="classCFile.html#63719f47953108756b34b6c7e701f536">m_types</a>.insert(<span class="stringliteral">"BMP"</span>);
32<a name="l00042"></a>00042 }
33<a name="l00043"></a>00043
34<a name="l00053"></a>00053 <a class="code" href="classCBitmap.html#7407ebaa7ffc9654bf47d598cb0d877d" title="Default dtor.">~CBitmap</a>();
35<a name="l00054"></a>00054
36<a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="classCBitmap.html#f52d73977516ddcc13951b972acdc29b" title="Reads Windows Bitmap from filestream. On error an exception is thrown.">read</a>(std::ifstream&amp; in);
37<a name="l00067"></a>00067
38<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="classCBitmap.html#ce6bed4399a6d35874223ada4f802b3d" title="Writes Windows Bitmap to filestream.">write</a>(std::ofstream&amp; out);
39<a name="l00079"></a>00079
40<a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="classCBitmap.html#9227003c492ed640ed0ea661d7d052c2" title="Delegates the function and its parameters to the correct internal method.">callFunc</a>(<span class="keyword">const</span> std::string&amp; func, <span class="keyword">const</span> std::list&lt;std::string&gt;&amp; params);
41<a name="l00092"></a>00092
42<a name="l00093"></a>00093 <span class="preprocessor">#ifdef DEBUG</span>
43<a name="l00094"></a>00094 <span class="preprocessor"></span>
44<a name="l00103"></a>00103 <span class="keywordtype">void</span> dump(std::ostream&amp; out);
45<a name="l00104"></a>00104 <span class="preprocessor">#endif</span>
46<a name="l00105"></a>00105 <span class="preprocessor"></span>
47<a name="l00109"></a>00109 <span class="preprocessor">#pragma pack(push,1)</span>
48<a name="l00110"></a><a class="code" href="structCBitmap_1_1BITMAP__FILEHEADER.html">00110</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">struct</span>
49<a name="l00111"></a>00111 {
50<a name="l00113"></a><a class="code" href="structCBitmap_1_1BITMAP__FILEHEADER.html#6f94be438f27dd1175c8adfaf9d37ad3">00113</a> uint8_t bfType[2];
51<a name="l00115"></a><a class="code" href="structCBitmap_1_1BITMAP__FILEHEADER.html#fdce3c1a10ab1ab231a778b1687568fd">00115</a> uint32_t bfSize;
52<a name="l00117"></a><a class="code" href="structCBitmap_1_1BITMAP__FILEHEADER.html#ba0b18ecb4d88a1bbaa40e2c0f32c44d">00117</a> uint32_t bfReserved;
53<a name="l00119"></a><a class="code" href="structCBitmap_1_1BITMAP__FILEHEADER.html#00b579a2da5565c1134d12b2df7844fc">00119</a> uint32_t bfOffBits;
54<a name="l00120"></a>00120 } <a class="code" href="structCBitmap_1_1BITMAP__FILEHEADER.html" title="Windows Bitmap File Header structure.">BITMAP_FILEHEADER</a>;
55<a name="l00121"></a>00121 <span class="preprocessor">#pragma pack(pop)</span>
56<a name="l00122"></a>00122 <span class="preprocessor"></span>
57<a name="l00126"></a>00126 <span class="preprocessor">#pragma pack(push,1)</span>
58<a name="l00127"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html">00127</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">struct</span>
59<a name="l00128"></a>00128 {
60<a name="l00130"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#751e9db3a3824433676a9279be3c54a5">00130</a> uint32_t biSize;
61<a name="l00132"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#83c29650c20248086ff227bdcc52bdf8">00132</a> int32_t biWidth;
62<a name="l00134"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#c0c08b11c60497a0e28657e153757c0a">00134</a> int32_t biHeight;
63<a name="l00136"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#cf617a4c37ef7e9e57aae4eabb6fc601">00136</a> uint16_t biPlanes;
64<a name="l00138"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#d10e1096713b2a909c6d8dfa6e7422c9">00138</a> uint16_t biBitCount;
65<a name="l00140"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#36272cbce2fae14d5fe874a494ebb21d">00140</a> uint32_t biCompression;
66<a name="l00142"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#839888fb79e1d4bfeed3f5512f4a260b">00142</a> uint32_t biSizeImage;
67<a name="l00144"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#a042cfadc5fec8ca852eb88c7e7120cf">00144</a> int32_t biXPelsPerMeter;
68<a name="l00146"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#4d25fd39b25459b994aba5ce4bbb0d0e">00146</a> int32_t biYPelsPerMeter;
69<a name="l00148"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#1c5a3971c584712b53365fac9ad8cde7">00148</a> uint32_t biClrUsed;
70<a name="l00151"></a><a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html#179c27d3bc320e341c8f6b3881edd010">00151</a> uint32_t biClrImportant;
71<a name="l00152"></a>00152 } <a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html" title="Windows Bitmap Info Header structure.">BITMAP_INFOHEADER</a>;
72<a name="l00153"></a>00153 <span class="preprocessor">#pragma pack(pop)</span>
73<a name="l00154"></a>00154 <span class="preprocessor"></span>
74<a name="l00164"></a><a class="code" href="classCBitmap.html#841b652977f2143bae6e0bfca89d328b">00164</a> <a class="code" href="structCBitmap_1_1BITMAP__FILEHEADER.html" title="Windows Bitmap File Header structure.">BITMAP_FILEHEADER</a> &amp;<a class="code" href="classCBitmap.html#841b652977f2143bae6e0bfca89d328b" title="Returns reference to fileheader structure of bitmap.">getFileHeader</a>()
75<a name="l00165"></a>00165 {
76<a name="l00166"></a>00166 <span class="keywordflow">return</span> <a class="code" href="classCBitmap.html#dbf8a9cf737b47fb2f244be59dbbac72">m_fileheader</a>;
77<a name="l00167"></a>00167 }
78<a name="l00168"></a>00168
79<a name="l00178"></a><a class="code" href="classCBitmap.html#cc46187f54ddb825b77afe587633fb3f">00178</a> <a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html" title="Windows Bitmap Info Header structure.">BITMAP_INFOHEADER</a> &amp;<a class="code" href="classCBitmap.html#cc46187f54ddb825b77afe587633fb3f" title="Returns reference to infoheader structure of bitmap.">getInfoHeader</a>()
80<a name="l00179"></a>00179 {
81<a name="l00180"></a>00180 <span class="keywordflow">return</span> <a class="code" href="classCBitmap.html#1d5785fefd68a563e4b1408e77770f0f">m_infoheader</a>;
82<a name="l00181"></a>00181 }
83<a name="l00182"></a>00182
84<a name="l00192"></a><a class="code" href="classCBitmap.html#5701ea86ba64ecd4863b79a32abf1e2e">00192</a> uint8_t *<a class="code" href="classCBitmap.html#5701ea86ba64ecd4863b79a32abf1e2e" title="Returns pointer to pixelbuffer.">getPixelData</a>()
85<a name="l00193"></a>00193 {
86<a name="l00194"></a>00194 <span class="keywordflow">return</span> <a class="code" href="classCBitmap.html#fd64be4c5cdaff861f0b040edc697138">m_pixeldata</a>;
87<a name="l00195"></a>00195 }
88<a name="l00196"></a>00196
89<a name="l00197"></a>00197 <span class="keyword">protected</span>:
90<a name="l00210"></a>00210 <span class="keywordtype">void</span> <a class="code" href="classCBitmap.html#9691aecf4ee35415948f7666fc8b2e06" title="Fills rectangle in image starting on position x, y width size width, height and color...">fillrect</a>(std::list&lt;std::string&gt; params);
91<a name="l00211"></a>00211
92<a name="l00212"></a>00212 <span class="comment">/* members */</span>
93<a name="l00214"></a><a class="code" href="classCBitmap.html#dbf8a9cf737b47fb2f244be59dbbac72">00214</a> <a class="code" href="structCBitmap_1_1BITMAP__FILEHEADER.html" title="Windows Bitmap File Header structure.">BITMAP_FILEHEADER</a> <a class="code" href="classCBitmap.html#dbf8a9cf737b47fb2f244be59dbbac72">m_fileheader</a>;
94<a name="l00216"></a><a class="code" href="classCBitmap.html#1d5785fefd68a563e4b1408e77770f0f">00216</a> <a class="code" href="structCBitmap_1_1BITMAP__INFOHEADER.html" title="Windows Bitmap Info Header structure.">BITMAP_INFOHEADER</a> <a class="code" href="classCBitmap.html#1d5785fefd68a563e4b1408e77770f0f">m_infoheader</a>;
95<a name="l00218"></a><a class="code" href="classCBitmap.html#fd64be4c5cdaff861f0b040edc697138">00218</a> uint8_t *<a class="code" href="classCBitmap.html#fd64be4c5cdaff861f0b040edc697138">m_pixeldata</a>;
96<a name="l00220"></a><a class="code" href="classCBitmap.html#e9a1708eb34853ade75a0f5d82fbaae3">00220</a> <a class="code" href="classCPixelFormat.html" title="Abstract class for handling different color bitcount of Bitmaps.">CPixelFormat</a> *<a class="code" href="classCBitmap.html#e9a1708eb34853ade75a0f5d82fbaae3">m_pixelformat</a>;
97<a name="l00221"></a>00221 };
98<a name="l00222"></a>00222
99<a name="l00223"></a>00223 <span class="preprocessor">#endif</span>
100<a name="l00224"></a>00224 <span class="preprocessor"></span>
101<a name="l00225"></a>00225 <span class="comment">/* vim: set et sw=2 ts=2: */</span>
102</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 26 12:25:52 2009 for imgsynth by&nbsp;
103<a href="http://www.doxygen.org/index.html">
104<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
105</body>
106</html>