<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csgfx/imagevolumemaker.h Source File (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <h1>csgfx/imagevolumemaker.h</h1><a href="imagevolumemaker_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> Copyright (C) 2005 by Jorrit Tyberghein</span> <a name="l00003"></a>00003 <span class="comment"> (C) 2005 by Frank Richter</span> <a name="l00004"></a>00004 <span class="comment"></span> <a name="l00005"></a>00005 <span class="comment"> This library is free software; you can redistribute it and/or</span> <a name="l00006"></a>00006 <span class="comment"> modify it under the terms of the GNU Library General Public</span> <a name="l00007"></a>00007 <span class="comment"> License as published by the Free Software Foundation; either</span> <a name="l00008"></a>00008 <span class="comment"> version 2 of the License, or (at your option) any later version.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This library is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00013"></a>00013 <span class="comment"> Library General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"></span> <a name="l00015"></a>00015 <span class="comment"> You should have received a copy of the GNU Library General Public</span> <a name="l00016"></a>00016 <span class="comment"> License along with this library; if not, write to the Free</span> <a name="l00017"></a>00017 <span class="comment"> Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> <a name="l00018"></a>00018 <span class="comment">*/</span> <a name="l00019"></a>00019 <a name="l00028"></a>00028 <span class="preprocessor">#ifndef __CS_CSGFX_IMAGEVOLUMEMAKER_H__</span> <a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __CS_CSGFX_IMAGEVOLUMEMAKER_H__</span> <a name="l00030"></a>00030 <span class="preprocessor"></span> <a name="l00031"></a>00031 <span class="preprocessor">#include "csextern.h"</span> <a name="l00032"></a>00032 <span class="preprocessor">#include "csutil/leakguard.h"</span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="refarr_8h.html" title="Smart Pointer array.">csutil/refarr.h</a>"</span> <a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="imagebase_8h.html" title="Base class for iImage implementations.">imagebase.h</a>"</span> <a name="l00035"></a>00035 <a name="l00040"></a><a class="code" href="classcsImageVolumeMaker.html">00040</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsImageVolumeMaker.html" title="Wrapper class to create a volume aka 3D texture from a number of 2D images as the...">csImageVolumeMaker</a> : <a name="l00041"></a>00041 <span class="keyword">public</span> <a class="code" href="classscfImplementationExt0.html">scfImplementationExt0</a><csImageVolumeMaker, csImageBase> <a name="l00042"></a>00042 { <a name="l00043"></a>00043 <span class="keyword">protected</span>: <a name="l00048"></a><a class="code" href="classcsImageVolumeMaker.html#08aaed75878ad8407007915e54afd5b3">00048</a> <span class="keywordtype">bool</span> manualName; <a name="l00053"></a><a class="code" href="classcsImageVolumeMaker.html#6461292e62adfef4e969416c63b199db">00053</a> <a class="code" href="classcsRefArray.html" title="An array of smart pointers.">csRefArray<iImage></a> pendingImages; <a name="l00055"></a><a class="code" href="classcsImageVolumeMaker.html#deb644840a5e36cc5ba12d35279dbe54">00055</a> <span class="keywordtype">int</span> Width; <a name="l00057"></a><a class="code" href="classcsImageVolumeMaker.html#d302f2049847e7bea00574dcad91b5f0">00057</a> <span class="keywordtype">int</span> Height; <a name="l00059"></a><a class="code" href="classcsImageVolumeMaker.html#db0d7f9d04b25b0a957de0dc61b103c2">00059</a> <span class="keywordtype">int</span> Depth; <a name="l00061"></a><a class="code" href="classcsImageVolumeMaker.html#2782ba64808d656e68fca54dddd0f0b1">00061</a> <span class="keywordtype">int</span> Format; <a name="l00062"></a>00062 <a name="l00064"></a><a class="code" href="classcsImageVolumeMaker.html#beb7366a3b8b416b5cf15b9dce43f1a2">00064</a> <span class="keywordtype">void</span>* data; <a name="l00066"></a><a class="code" href="classcsImageVolumeMaker.html#d789e2fe0a4e20001c975cca9ab7fd28">00066</a> <a class="code" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a>* palette; <a name="l00068"></a><a class="code" href="classcsImageVolumeMaker.html#8cde2f473cf82c64262a7a23bddae455">00068</a> <a class="code" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79" title="unsigned 8-bit integer (0..255)">uint8</a>* alpha; <a name="l00069"></a>00069 <a name="l00071"></a>00071 <span class="keywordtype">void</span> AppendPending (); <a name="l00072"></a>00072 <span class="keyword">public</span>: <a name="l00073"></a>00073 CS_LEAKGUARD_DECLARE (<a class="code" href="classcsImageVolumeMaker.html" title="Wrapper class to create a volume aka 3D texture from a number of 2D images as the...">csImageVolumeMaker</a>); <a name="l00074"></a>00074 <a name="l00080"></a>00080 <a class="code" href="classcsImageVolumeMaker.html" title="Wrapper class to create a volume aka 3D texture from a number of 2D images as the...">csImageVolumeMaker</a> (<span class="keywordtype">int</span> format = -1, <span class="keywordtype">int</span> width = -1, <span class="keywordtype">int</span> height = -1); <a name="l00084"></a>00084 <a class="code" href="classcsImageVolumeMaker.html" title="Wrapper class to create a volume aka 3D texture from a number of 2D images as the...">csImageVolumeMaker</a> (<a class="code" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a>* source); <a name="l00085"></a>00085 <span class="keyword">virtual</span> ~<a class="code" href="classcsImageVolumeMaker.html" title="Wrapper class to create a volume aka 3D texture from a number of 2D images as the...">csImageVolumeMaker</a>(); <a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">void</span> *GetImageData (); <a name="l00088"></a><a class="code" href="classcsImageVolumeMaker.html#0461e3b10f6f8ba1f1c4764ab8b9e494">00088</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetWidth ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Width > 0 ? Width : 0; } <a name="l00089"></a><a class="code" href="classcsImageVolumeMaker.html#c534fd025a3a75eb984952089dc5d3af">00089</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetHeight ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Height > 0 ? Height : 0; ; } <a name="l00090"></a><a class="code" href="classcsImageVolumeMaker.html#c9864e6490c49cb9af3e4640fb7e54e6">00090</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetDepth ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Depth + (int)pendingImages.GetSize (); } <a name="l00092"></a>00092 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetName (<span class="keyword">const</span> <span class="keywordtype">char</span> *iName); <a name="l00099"></a><a class="code" href="classcsImageVolumeMaker.html#86fc346978d9f30e4215572be8ba9ded">00099</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *GetName ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fName; } <a name="l00100"></a>00100 <a name="l00101"></a>00101 <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetFormat () <span class="keyword">const</span>; <a name="l00102"></a>00102 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a>* GetPalette (); <a name="l00103"></a>00103 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="group__util.html#gdde6aaee8457bee49c2a92621fe22b79" title="unsigned 8-bit integer (0..255)">uint8</a>* GetAlpha (); <a name="l00104"></a>00104 <a name="l00105"></a><a class="code" href="classcsImageVolumeMaker.html#ac94b127bbcae3ffa4b3f57c4fa1c22c">00105</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetRawFormat()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } <a name="l00106"></a><a class="code" href="classcsImageVolumeMaker.html#b0c93563968e5e6994a25e8f3774e421">00106</a> <span class="keyword">virtual</span> <a class="code" href="classcsRef.html" title="A smart pointer.">csRef<iDataBuffer></a> GetRawData()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } <a name="l00107"></a><a class="code" href="classcsImageVolumeMaker.html#b8be733ec0bdaa934131e00c2afb46c1">00107</a> <span class="keyword">virtual</span> <a class="code" href="group__gfx2d.html#ge62190ffec24a286b2d4b50dcb899469" title="Type of an image.">csImageType</a> GetImageType()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__gfx2d.html#gge62190ffec24a286b2d4b50dcb89946991cba43ea68cfe2b81e13df88729d50d" title="3D image.">csimg3D</a>; } <a name="l00108"></a>00108 <a name="l00109"></a>00109 <span class="keywordtype">void</span> AddImage (<a class="code" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a>* source); <a name="l00110"></a>00110 }; <a name="l00111"></a>00111 <a name="l00114"></a>00114 <span class="preprocessor">#endif // __CS_CSGFX_IMAGEVOLUMEMAKER_H__</span> </pre></div><hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>