diff options
| author | manuel <manuel@nc8430.lan> | 2009-05-02 18:58:26 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-05-02 18:58:26 +0200 |
| commit | 93a6590af7f866838d883d92fac655251685c3d7 (patch) | |
| tree | 57401b84345a4a36cee8cca2731fe567577f29e2 /ue2/doxygen/cpixmap_8h-source.html | |
| parent | bc94c4be2e7e37f1f3e8892dc115e61ed6b640e7 (diff) | |
| download | ooprog-93a6590af7f866838d883d92fac655251685c3d7.tar.gz ooprog-93a6590af7f866838d883d92fac655251685c3d7.tar.bz2 ooprog-93a6590af7f866838d883d92fac655251685c3d7.zip | |
adding doxygen files
Diffstat (limited to 'ue2/doxygen/cpixmap_8h-source.html')
| -rw-r--r-- | ue2/doxygen/cpixmap_8h-source.html | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/ue2/doxygen/cpixmap_8h-source.html b/ue2/doxygen/cpixmap_8h-source.html new file mode 100644 index 0000000..f413f99 --- /dev/null +++ b/ue2/doxygen/cpixmap_8h-source.html | |||
| @@ -0,0 +1,102 @@ | |||
| 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>imgsynth2: imgsynth2/cpixmap.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 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>imgsynth2/cpixmap.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 | ||
| 17 | <a name="l00008"></a>00008 <span class="preprocessor">#ifndef CPixmap_H</span> | ||
| 18 | <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CPixmap_H</span> | ||
| 19 | <a name="l00010"></a>00010 <span class="preprocessor"></span> | ||
| 20 | <a name="l00011"></a>00011 <span class="preprocessor">#include <stdint.h></span> | ||
| 21 | <a name="l00012"></a>00012 <span class="preprocessor">#include "cbitmap.h"</span> | ||
| 22 | <a name="l00013"></a>00013 | ||
| 23 | <a name="l00014"></a>00014 <span class="preprocessor">#define PIXMAP_IDENTIFIER "</span><span class="comment">/* XPM */</span>" | ||
| 24 | <a name="l00015"></a>00015 <span class="preprocessor">#define PIXMAP_COLORCHARS ".#abcdefghijklmnopqrstuvwxyzABCD" \</span> | ||
| 25 | <a name="l00016"></a>00016 <span class="preprocessor"> "EFGHIJKLMNOPQRSTUVWXYZ0123456789"</span> | ||
| 26 | <a name="l00017"></a>00017 <span class="preprocessor"></span> | ||
| 27 | <a name="l00028"></a><a class="code" href="classCPixmap.html">00028</a> <span class="keyword">class </span><a class="code" href="classCPixmap.html" title="Implementation of CFile handling Pixmap file format.">CPixmap</a> : <span class="keyword">public</span> <a class="code" href="classCBitmap.html" title="Abstract implementation of CFile handling Bitmaps.">CBitmap</a> | ||
| 28 | <a name="l00029"></a>00029 { | ||
| 29 | <a name="l00030"></a>00030 <span class="keyword">public</span>: | ||
| 30 | <a name="l00040"></a>00040 <a class="code" href="classCPixmap.html#32f42f22fc98398d87946895139d0b60" title="Default ctor.">CPixmap</a>(); | ||
| 31 | <a name="l00041"></a>00041 | ||
| 32 | <a name="l00051"></a><a class="code" href="classCPixmap.html#6bba8999f9c8bfd410561bc62a4fd6fc">00051</a> <a class="code" href="classCPixmap.html#6bba8999f9c8bfd410561bc62a4fd6fc" title="Default dtor.">~CPixmap</a>() | ||
| 33 | <a name="l00052"></a>00052 {} | ||
| 34 | <a name="l00053"></a>00053 | ||
| 35 | <a name="l00065"></a>00065 <span class="keywordtype">void</span> <a class="code" href="classCPixmap.html#ef3b715729ca384e6817a3fcdddfa261" title="Reads Pixmap from filestream. On error an exception is thrown.">read</a>(std::ifstream& in); | ||
| 36 | <a name="l00066"></a>00066 | ||
| 37 | <a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="classCPixmap.html#507d5a88f8af0e41e418108e01572f13" title="Writes Pixmap to filestream.">write</a>(std::ofstream& out); | ||
| 38 | <a name="l00078"></a>00078 | ||
| 39 | <a name="l00079"></a>00079 <span class="preprocessor">#ifdef DEBUG</span> | ||
| 40 | <a name="l00080"></a>00080 <span class="preprocessor"></span> | ||
| 41 | <a name="l00089"></a>00089 <span class="keywordtype">void</span> dump(std::ostream& out); | ||
| 42 | <a name="l00090"></a>00090 <span class="preprocessor">#endif</span> | ||
| 43 | <a name="l00091"></a>00091 <span class="preprocessor"></span> | ||
| 44 | <a name="l00101"></a><a class="code" href="classCPixmap.html#740486bba3c8ea24f306a7b8248652e2">00101</a> <span class="keyword">const</span> uint32_t <a class="code" href="classCPixmap.html#740486bba3c8ea24f306a7b8248652e2" title="Return size of pixelbuffer.">getPixelDataSize</a>() | ||
| 45 | <a name="l00102"></a>00102 { | ||
| 46 | <a name="l00103"></a>00103 <span class="keywordflow">return</span> <a class="code" href="classCPixmap.html#5ca3e44f4f5a3d7a94d0f7a83d30eb2b">m_fileheader</a>.<a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#51b15ae3b5f34919d86a49b8aed289e6">width</a> * <a class="code" href="classCPixmap.html#5ca3e44f4f5a3d7a94d0f7a83d30eb2b">m_fileheader</a>.<a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#9f340ab3d55aefd4af98a340db6fb332">height</a> * <span class="keyword">sizeof</span>(uint32_t); | ||
| 47 | <a name="l00104"></a>00104 } | ||
| 48 | <a name="l00105"></a>00105 | ||
| 49 | <a name="l00115"></a><a class="code" href="classCPixmap.html#3f50d434556073a883bb5a2650cf2f71">00115</a> <span class="keyword">const</span> uint32_t <a class="code" href="classCPixmap.html#3f50d434556073a883bb5a2650cf2f71" title="Return height of bitmap in pixel.">getHeight</a>() | ||
| 50 | <a name="l00116"></a>00116 { | ||
| 51 | <a name="l00117"></a>00117 <span class="keywordflow">return</span> <a class="code" href="classCPixmap.html#5ca3e44f4f5a3d7a94d0f7a83d30eb2b">m_fileheader</a>.<a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#9f340ab3d55aefd4af98a340db6fb332">height</a>; | ||
| 52 | <a name="l00118"></a>00118 } | ||
| 53 | <a name="l00119"></a>00119 | ||
| 54 | <a name="l00129"></a><a class="code" href="classCPixmap.html#f3419c1f68c7aa2c69d1e83b2ee6be8c">00129</a> <span class="keyword">const</span> uint32_t <a class="code" href="classCPixmap.html#f3419c1f68c7aa2c69d1e83b2ee6be8c" title="Return width of bitmap in pixel.">getWidth</a>() | ||
| 55 | <a name="l00130"></a>00130 { | ||
| 56 | <a name="l00131"></a>00131 <span class="keywordflow">return</span> <a class="code" href="classCPixmap.html#5ca3e44f4f5a3d7a94d0f7a83d30eb2b">m_fileheader</a>.<a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#51b15ae3b5f34919d86a49b8aed289e6">width</a>; | ||
| 57 | <a name="l00132"></a>00132 } | ||
| 58 | <a name="l00133"></a>00133 | ||
| 59 | <a name="l00144"></a><a class="code" href="classCPixmap.html#fc2876d5d93122f22eb1759381030980">00144</a> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code" href="classCPixmap.html#fc2876d5d93122f22eb1759381030980" title="Check if bitmap has a colortable (we don&#39;t support this yet for windows bitmaps)...">hasColorTable</a>() | ||
| 60 | <a name="l00145"></a>00145 { | ||
| 61 | <a name="l00146"></a>00146 <span class="keywordflow">return</span> <span class="keyword">true</span>; | ||
| 62 | <a name="l00147"></a>00147 } | ||
| 63 | <a name="l00148"></a>00148 | ||
| 64 | <a name="l00158"></a><a class="code" href="classCPixmap.html#0cbf88af3060d338b1d288cb930c8b49">00158</a> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code" href="classCPixmap.html#0cbf88af3060d338b1d288cb930c8b49" title="Windows Bitmaps can be stored upside down.">isMirrored</a>() | ||
| 65 | <a name="l00159"></a>00159 { | ||
| 66 | <a name="l00160"></a>00160 <span class="comment">/* pixmap is never mirrored */</span> | ||
| 67 | <a name="l00161"></a>00161 <span class="keywordflow">return</span> <span class="keyword">false</span>; | ||
| 68 | <a name="l00162"></a>00162 } | ||
| 69 | <a name="l00163"></a>00163 | ||
| 70 | <a name="l00164"></a>00164 <span class="keyword">protected</span>: | ||
| 71 | <a name="l00175"></a>00175 std::string <a class="code" href="classCPixmap.html#0d93bfe35b557f3827f90aa81685aff4" title="read trimmed line (terminated by ) from filestream">getLine</a>(std::ifstream& in, <span class="keywordtype">bool</span> ignore_comments = <span class="keyword">true</span>); | ||
| 72 | <a name="l00176"></a>00176 | ||
| 73 | <a name="l00186"></a>00186 std::string <a class="code" href="classCPixmap.html#4fea1d2e3e528e660f48f37fa91aedae" title="read trimmed c-arrayline from filestream">getCArrayLine</a>(std::ifstream& in); | ||
| 74 | <a name="l00187"></a>00187 | ||
| 75 | <a name="l00198"></a>00198 <span class="keyword">const</span> std::string <a class="code" href="classCPixmap.html#51b3aeac4afa31c11188cf844a40f0fc" title="get xpm color identifier, generated using an index">getXPMColorID</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length); | ||
| 76 | <a name="l00199"></a>00199 | ||
| 77 | <a name="l00203"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html">00203</a> <span class="keyword">typedef</span> <span class="keyword">struct</span> | ||
| 78 | <a name="l00204"></a>00204 { | ||
| 79 | <a name="l00206"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#51b15ae3b5f34919d86a49b8aed289e6">00206</a> uint32_t width; | ||
| 80 | <a name="l00208"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#9f340ab3d55aefd4af98a340db6fb332">00208</a> uint32_t height; | ||
| 81 | <a name="l00210"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#a5dd63000c19f0624fb397b2d9b6df7b">00210</a> uint32_t nColor; | ||
| 82 | <a name="l00212"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#d3658696ed9270577e42c1eaaf82c798">00212</a> uint32_t nChar; | ||
| 83 | <a name="l00214"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#f3075cc873003e3609a47d51e0b218fc">00214</a> uint32_t xHotspot; | ||
| 84 | <a name="l00216"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#7e67fb4ccd100cffd2a8add526a7a6ef">00216</a> uint32_t yHotspot; | ||
| 85 | <a name="l00218"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#b6a9327ef06aaf7659875b60f31ebf5f">00218</a> <span class="keywordtype">bool</span> _HOTSPOT; | ||
| 86 | <a name="l00220"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#d418915065f86a80ff9b078934574453">00220</a> <span class="keywordtype">bool</span> _XPMEXT; | ||
| 87 | <a name="l00222"></a><a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html#015f7ddbfea9093a637396bea1d12f10">00222</a> std::string extension; | ||
| 88 | <a name="l00223"></a>00223 } <a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html" title="Pixmap Header structure.">PIXMAP_FILEHEADER</a>; | ||
| 89 | <a name="l00224"></a>00224 | ||
| 90 | <a name="l00225"></a>00225 <span class="comment">/* members */</span> | ||
| 91 | <a name="l00227"></a><a class="code" href="classCPixmap.html#5ca3e44f4f5a3d7a94d0f7a83d30eb2b">00227</a> <a class="code" href="structCPixmap_1_1PIXMAP__FILEHEADER.html" title="Pixmap Header structure.">PIXMAP_FILEHEADER</a> <a class="code" href="classCPixmap.html#5ca3e44f4f5a3d7a94d0f7a83d30eb2b">m_fileheader</a>; | ||
| 92 | <a name="l00229"></a><a class="code" href="classCPixmap.html#ac8ee30e3375e15684c1263d7c9b8dd4">00229</a> std::string <a class="code" href="classCPixmap.html#ac8ee30e3375e15684c1263d7c9b8dd4">m_imagename</a>; | ||
| 93 | <a name="l00230"></a>00230 }; | ||
| 94 | <a name="l00231"></a>00231 | ||
| 95 | <a name="l00232"></a>00232 <span class="preprocessor">#endif</span> | ||
| 96 | <a name="l00233"></a>00233 <span class="preprocessor"></span> | ||
| 97 | <a name="l00234"></a>00234 <span class="comment">/* vim: set et sw=2 ts=2: */</span> | ||
| 98 | </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sat May 2 18:58:11 2009 for imgsynth2 by | ||
| 99 | <a href="http://www.doxygen.org/index.html"> | ||
| 100 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> | ||
| 101 | </body> | ||
| 102 | </html> | ||
