PCMBuffer_impl.h

Go to the documentation of this file.
00001 
00002 //
00003 // This source file is a part of ParCompMark
00004 // Parallel Compositing Benchmark Framework
00005 //
00006 // for latest info see http://parcompmark.sourceforge.net
00007 
00008 //
00009 // Copyright (C) 2006 IT2 ParCompMark Dev. Team
00010 // 
00011 // This program is free software; you can redistribute it and/or
00012 // modify it under the terms of the GNU General Public License
00013 // as published by the Free Software Foundation; either version 2
00014 // of the License, or (at your option) any later version.
00015 // 
00016 // This program is distributed in the hope that it will be useful,
00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 // GNU General Public License for more details.
00020 // 
00021 // You should have received a copy of the GNU General Public License
00022 // along with this program; if not, write to the Free Software
00023 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00024 
00027 
00028  //
00029  // Getters & setters
00030  //
00031 
00032 inline Node *Buffer::getParent() const
00033 {
00034   return mParent;
00035 }
00036 
00037  /*-------------------------------------------------------------------------*/
00038 
00039 inline const PCuint & Buffer::getLeft() const
00040 {
00041   return mLeft;
00042 }
00043 
00044  /*-------------------------------------------------------------------------*/
00045 
00046 inline void Buffer::setLeft(const PCuint left)
00047 {
00048   Assert(!mInitialized, INVALID_OPERATION_ERROR, "Buffer::setLeft()");
00049 
00050   mLeft = left;
00051 }
00052 
00053  /*-------------------------------------------------------------------------*/
00054 
00055 inline const PCuint & Buffer::getTop() const
00056 {
00057   return mTop;
00058 }
00059 
00060  /*-------------------------------------------------------------------------*/
00061 
00062 inline void Buffer::setTop(const PCuint top)
00063 {
00064   Assert(!mInitialized, INVALID_OPERATION_ERROR, "Buffer::setTop()");
00065 
00066   mTop = top;
00067 }
00068 
00069  /*-------------------------------------------------------------------------*/
00070 
00071 inline const PCuint & Buffer::getWidth() const
00072 {
00073   return mWidth;
00074 }
00075 
00076  /*-------------------------------------------------------------------------*/
00077 
00078 inline void Buffer::setWidth(const PCuint width)
00079 {
00080   Assert(!mInitialized, INVALID_OPERATION_ERROR, "Buffer::setWidth()");
00081 
00082   mWidth = width;
00083 }
00084 
00085  /*-------------------------------------------------------------------------*/
00086 
00087 inline const PCuint & Buffer::getHeight() const
00088 {
00089   return mHeight;
00090 }
00091 
00092  /*-------------------------------------------------------------------------*/
00093 
00094 inline void Buffer::setHeight(const PCuint height)
00095 {
00096   Assert(!mInitialized, INVALID_OPERATION_ERROR, "Buffer::setHeight()");
00097 
00098   mHeight = height;
00099 }
00100 
00101  /*-------------------------------------------------------------------------*/
00102 
00103 inline const bool & Buffer::getOwnPointers() const
00104 {
00105   return mOwnPointers;
00106 }
00107 
00108  /*-------------------------------------------------------------------------*/
00109 
00110 inline PCuint *Buffer::getColour()
00111 {
00112   return mColour;
00113 }
00114 
00115  /*-------------------------------------------------------------------------*/
00116 
00117 inline void Buffer::setColour(const PCuint * colour)
00118 {
00119   Assert(mInitialized, INVALID_OPERATION_ERROR, "Buffer::setColour()");
00120 
00121   if(mInitialized)
00122         freeBuffers();
00123   mOwnPointers = false;
00124   mColour = (PCuint *) colour;
00125 }
00126 
00127  /*-------------------------------------------------------------------------*/
00128 
00129 inline void *Buffer::getDepth()
00130 {
00131   return mDepth;
00132 }
00133 
00134  /*-------------------------------------------------------------------------*/
00135 
00136 inline void Buffer::setDepth(const void *depth)
00137 {
00138   Assert(mInitialized, INVALID_OPERATION_ERROR, "Buffer::setColour()");
00139 
00140   if(mInitialized)
00141         freeBuffers();
00142   mOwnPointers = false;
00143   mDepth = (void *) depth;
00144 }
00145 
00146  /*-------------------------------------------------------------------------*/
00147 
00148 inline const PCint & Buffer::getDepthFormat() const
00149 {
00150   return mDepthFormat;
00151 }
00152 
00153  /*-------------------------------------------------------------------------*/
00154 
00155 inline void Buffer::setDepthFormat(const PCint depthformat)
00156 {
00157   Assert(!mInitialized, INVALID_OPERATION_ERROR, "Buffer::setDepthFormat()");
00158 
00159   mDepthFormat = depthformat;
00160 }
00161 
00162  /*-------------------------------------------------------------------------*/
00163 
00164 inline const PCint & Buffer::getOutputRowPixel() const
00165 {
00166   return mOutputRowPixel;
00167 }
00168 
00169  /*-------------------------------------------------------------------------*/
00170 
00171 inline void Buffer::setOutputRowPixel(const PCint & outputrowpixel)
00172 {
00173   Assert(mInitialized, INVALID_OPERATION_ERROR, "Buffer::setOutputRowPixel()");
00174 
00175   mOutputRowPixel = outputrowpixel;
00176 }
00177 
00178  /*-------------------------------------------------------------------------*/
00179 
00180 inline const bool & Buffer::getInitialized() const
00181 {
00182   return mInitialized;
00183 }
00184 
00185  /*-------------------------------------------------------------------------*/