PCMContext_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 const int &Context::getID() const 00033 { 00034 return mID; 00035 } 00036 00037 /*-------------------------------------------------------------------------*/ 00038 00039 inline void Context::setID(const int &id) 00040 { 00041 mID = id; 00042 } 00043 00044 /*-------------------------------------------------------------------------*/ 00045 00046 inline bool & Context::getUseGLFrameletEXT() 00047 { 00048 return mUseGLFrameletEXT; 00049 } 00050 00051 /*-------------------------------------------------------------------------*/ 00052 00053 inline void Context::setUseGLFrameletEXT(const bool useglframeletext) 00054 { 00055 mUseGLFrameletEXT = useglframeletext; 00056 } 00057 00058 /*-------------------------------------------------------------------------*/ 00059 00060 inline Context::ContextType & Context::getContextType() 00061 { 00062 return mContextType; 00063 } 00064 00065 /*-------------------------------------------------------------------------*/ 00066 00067 inline void Context::setContextType(const Context::ContextType & contexttype) 00068 { 00069 mContextType = contexttype; 00070 } 00071 00072 /*-------------------------------------------------------------------------*/ 00073 00074 inline PCid & Context::getFrameID() 00075 { 00076 return mFrameID; 00077 } 00078 00079 /*-------------------------------------------------------------------------*/ 00080 00081 inline PCint & Context::getFrameWidth() 00082 { 00083 return mFrameWidth; 00084 } 00085 00086 /*-------------------------------------------------------------------------*/ 00087 00088 inline void Context::setFrameWidth(const PCint framewidth) 00089 { 00090 mFrameWidth = framewidth; 00091 } 00092 00093 /*-------------------------------------------------------------------------*/ 00094 00095 inline PCint & Context::getFrameHeight() 00096 { 00097 return mFrameHeight; 00098 } 00099 00100 /*-------------------------------------------------------------------------*/ 00101 00102 inline void Context::setFrameHeight(const PCint frameheight) 00103 { 00104 mFrameHeight = frameheight; 00105 } 00106 00107 /*-------------------------------------------------------------------------*/ 00108 00109 inline PCint & Context::getColourFormat() 00110 { 00111 return mColourFormat; 00112 } 00113 00114 /*-------------------------------------------------------------------------*/ 00115 00116 inline void Context::setColourFormat(const PCint colourformat) 00117 { 00118 mColourFormat = colourformat; 00119 mPixelFormat = mColourFormat | mDepthFormat; 00120 } 00121 00122 /*-------------------------------------------------------------------------*/ 00123 00124 inline PCint & Context::getDepthFormat() 00125 { 00126 return mDepthFormat; 00127 } 00128 00129 /*-------------------------------------------------------------------------*/ 00130 00131 inline void Context::setDepthFormat(const PCint depthformat) 00132 { 00133 mDepthFormat = depthformat; 00134 mPixelFormat = mColourFormat | mDepthFormat; 00135 } 00136 00137 /*-------------------------------------------------------------------------*/ 00138 00139 inline const PCint & Context::getPixelFormat() const 00140 { 00141 return mPixelFormat; 00142 } 00143 00144 /*-------------------------------------------------------------------------*/ 00145 00146 inline PCint & Context::getCompositeType() 00147 { 00148 return mCompositeType; 00149 } 00150 00151 /*-------------------------------------------------------------------------*/ 00152 00153 inline void Context::setCompositeType(const PCint compositetype) 00154 { 00155 mCompositeType = compositetype; 00156 } 00157 00158 /*-------------------------------------------------------------------------*/ 00159 00160 inline PCint & Context::getCompressionHint() 00161 { 00162 return mCompressionHint; 00163 } 00164 00165 /*-------------------------------------------------------------------------*/ 00166 00167 inline void Context::setCompressionHint(const PCint compressionhint) 00168 { 00169 mCompressionHint = compressionhint; 00170 } 00171 00172 /*-------------------------------------------------------------------------*/ 00173 00174 inline PCint & Context::getRetainOutputCount() 00175 { 00176 return mRetainOutputCount; 00177 } 00178 00179 /*-------------------------------------------------------------------------*/ 00180 00181 inline void Context::setRetainOutputCount(const PCint retainoutputcount) 00182 { 00183 mRetainOutputCount = retainoutputcount; 00184 } 00185 00186 /*-------------------------------------------------------------------------*/ 00187 00188 inline PCint & Context::getVolatileFrameletCount() 00189 { 00190 return mVolatileFrameletCount; 00191 } 00192 00193 /*-------------------------------------------------------------------------*/ 00194 00195 inline void Context::setVolatileFrameletCount(const PCint volatileframeletcount) 00196 { 00197 mVolatileFrameletCount = volatileframeletcount; 00198 } 00199 00200 /*-------------------------------------------------------------------------*/ 00201 00202 inline bool & Context::getOutputDepth() 00203 { 00204 return mOutputDepth; 00205 } 00206 00207 /*-------------------------------------------------------------------------*/ 00208 00209 inline void Context::setOutputDepth(const bool outputdepth) 00210 { 00211 mOutputDepth = outputdepth; 00212 } 00213 00214 /*-------------------------------------------------------------------------*/ 00215 00216 inline PCstring *Context::getProcesses() const 00217 { 00218 return mProcesses; 00219 } 00220 00221 /*-------------------------------------------------------------------------*/ 00222 00223 inline const PCint & Context::getProcessCount() const 00224 { 00225 return mProcessCount; 00226 } 00227 00228 /*-------------------------------------------------------------------------*/ 00229 00230 inline int &Context::getProcessIndex() 00231 { 00232 return mProcessIndex; 00233 } 00234 00235 /*-------------------------------------------------------------------------*/ 00236 00237 inline void Context::setProcessIndex(const int processindex) 00238 { 00239 mProcessIndex = processindex; 00240 } 00241 00242 /*-------------------------------------------------------------------------*/ 00243 00244 inline const PCint & Context::getHostIndex() const 00245 { 00246 return mHostIndex; 00247 } 00248 00249 /*-------------------------------------------------------------------------*/ 00250 00251 inline PCint & Context::getNetworkID() 00252 { 00253 return mNetworkID; 00254 } 00255 00256 /*-------------------------------------------------------------------------*/ 00257 00258 inline void Context::setNetworkID(const PCint networkid) 00259 { 00260 mNetworkID = networkid; 00261 } 00262 00263 /*-------------------------------------------------------------------------*/ 00264 00265 inline const PCcontext & Context::getContext() const 00266 { 00267 return mContext; 00268 } 00269 00270 /*-------------------------------------------------------------------------*/ 00271 00272 inline Process *Context::getParent() 00273 { 00274 return mParent; 00275 } 00276 00277 /*-------------------------------------------------------------------------*/ 00278 00279 inline const bool & Context::getInitialized() const 00280 { 00281 return mInitialized; 00282 } 00283 00284 /*-------------------------------------------------------------------------*/ 00285 00286 // 00287 // Methods 00288 // 00289 00290 inline void Context::setContextTypeSq(const int contextType) 00291 { 00292 mContextType = ContextType(contextType); 00293 } 00294 00295 /*----------------------------------------------------------------------*/ 00296 00297 inline int Context::getContextTypeSq() 00298 { 00299 return mContextType; 00300 } 00301 00302 /*----------------------------------------------------------------------*/