summaryrefslogtreecommitdiffstats
path: root/ue1/doxygen/cpixelformat_8h-source.html
blob: 09a209660f78a8e585ea31e756f2ef18ec500847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>imgsynth: imgsynth/cpixelformat.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="annotated.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
  </ul>
</div>
<h1>imgsynth/cpixelformat.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef CPIXELFORMAT_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define CPIXELFORMAT_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;fstream&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="keyword">class </span><a class="code" href="classCBitmap.html" title="Implementation of CFile handling Windows Bitmaps.">CBitmap</a>;
<a name="l00016"></a>00016 <span class="preprocessor">#include "cbitmap.h"</span>
<a name="l00017"></a>00017 
<a name="l00026"></a><a class="code" href="classCPixelFormat.html">00026</a> <span class="keyword">class </span><a class="code" href="classCPixelFormat.html" title="Abstract class for handling different color bitcount of Bitmaps.">CPixelFormat</a>
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028   <span class="keyword">public</span>:
<a name="l00033"></a><a class="code" href="classCPixelFormat_1_1PixelFormatError.html">00033</a>     <span class="keyword">class </span><a class="code" href="classCPixelFormat_1_1PixelFormatError.html" title="Exception thrown by implemententations of CPixelFormat.">PixelFormatError</a> : <span class="keyword">public</span> std::invalid_argument {
<a name="l00034"></a>00034       <span class="keyword">public</span>:
<a name="l00044"></a><a class="code" href="classCPixelFormat_1_1PixelFormatError.html#f227e9261537b316f57ff8c099948df4">00044</a>         <a class="code" href="classCPixelFormat_1_1PixelFormatError.html#f227e9261537b316f57ff8c099948df4" title="Default exception ctor.">PixelFormatError</a>(<span class="keyword">const</span> std::string&amp; what)
<a name="l00045"></a>00045           : std::invalid_argument(what)
<a name="l00046"></a>00046         {}
<a name="l00047"></a>00047     };
<a name="l00048"></a>00048 
<a name="l00058"></a><a class="code" href="classCPixelFormat.html#6216335559cf002f1e870b420b15913e">00058</a>     <a class="code" href="classCPixelFormat.html#6216335559cf002f1e870b420b15913e" title="Default ctor.">CPixelFormat</a>(<a class="code" href="classCBitmap.html" title="Implementation of CFile handling Windows Bitmaps.">CBitmap</a> *bitmap)
<a name="l00059"></a>00059       : <a class="code" href="classCPixelFormat.html#0c0ab3e11535c9cda07d049cc6bd6f9a">m_bitmap</a>(bitmap)
<a name="l00060"></a>00060     {}
<a name="l00061"></a>00061 
<a name="l00071"></a><a class="code" href="classCPixelFormat.html#363edc98e8a6460466d52590679f1853">00071</a>     <span class="keyword">virtual</span> <a class="code" href="classCPixelFormat.html#363edc98e8a6460466d52590679f1853" title="Default dtor (virtual).">~CPixelFormat</a>()
<a name="l00072"></a>00072     {};
<a name="l00073"></a>00073 
<a name="l00085"></a>00085     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCPixelFormat.html#5b2dd386a12bd1c41ebe91d22c7713ec" title="Modifies pixel at coordinates x, y.">setPixel</a>(<span class="keyword">const</span> uint32_t *pixel, <span class="keyword">const</span> uint32_t x, <span class="keyword">const</span> uint32_t y) = 0;
<a name="l00086"></a>00086 
<a name="l00096"></a>00096     <span class="keyword">virtual</span> uint32_t <a class="code" href="classCPixelFormat.html#bfe1496b57a8a62be38de66ae6cfe3a7" title="returns color bitcount supported by this class">getBitCount</a>() = 0;
<a name="l00097"></a>00097 
<a name="l00098"></a>00098   <span class="keyword">protected</span>:
<a name="l00099"></a>00099     <span class="comment">/* members */</span>
<a name="l00101"></a><a class="code" href="classCPixelFormat.html#0c0ab3e11535c9cda07d049cc6bd6f9a">00101</a>     <a class="code" href="classCBitmap.html" title="Implementation of CFile handling Windows Bitmaps.">CBitmap</a> *<a class="code" href="classCPixelFormat.html#0c0ab3e11535c9cda07d049cc6bd6f9a">m_bitmap</a>;
<a name="l00102"></a>00102 };
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 <span class="preprocessor">#endif</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span>
<a name="l00106"></a>00106 <span class="comment">/* vim: set et sw=2 ts=2: */</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 26 12:25:52 2009 for imgsynth by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>