PCMProcess_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 Process::ContextList & Process::getContexts()
00033 {
00034   return mContexts;
00035 }
00036 
00037  /*-------------------------------------------------------------------------*/
00038 
00039 inline Process::ProcessType & Process::getProcessType()
00040 {
00041   return mProcessType;
00042 }
00043 
00044  /*-------------------------------------------------------------------------*/
00045 
00046 inline void Process::setProcessType(const Process::ProcessType & processtype)
00047 {
00048   mProcessType = processtype;
00049 }
00050 
00051  /*-------------------------------------------------------------------------*/
00052 
00053 inline Node *Process::getParent() const
00054 {
00055   return mParent;
00056 }
00057 
00058  /*-------------------------------------------------------------------------*/
00059 
00060 inline GLXRenderWindow::Pointer & Process::getRenderWindow()
00061 {
00062   return mRenderWindow;
00063 }
00064 
00065  /*-------------------------------------------------------------------------*/
00066 
00067 inline OpenGLRenderingEngine::Pointer & Process::getRenderingEngine()
00068 {
00069   return mRenderingEngine;
00070 }
00071 
00072  /*-------------------------------------------------------------------------*/
00073 
00074 inline char *Process::getInitProcCode()
00075 {
00076   return mInitProcCode;
00077 }
00078 
00079  /*-------------------------------------------------------------------------*/
00080 
00081 inline void Process::setInitProcCode(const char *initproccode)
00082 {
00083   mInitProcCode = new char[strlen(initproccode) + 1];
00084 
00085   strcpy(mInitProcCode, (char *) initproccode);
00086 }
00087 
00088  /*-------------------------------------------------------------------------*/
00089 
00090 inline char *Process::getRunningProcCode()
00091 {
00092   return mRunningProcCode;
00093 }
00094 
00095  /*-------------------------------------------------------------------------*/
00096 
00097 inline void Process::setRunningProcCode(const char *runningproccode)
00098 {
00099   mRunningProcCode = new char[strlen(runningproccode) + 1];
00100 
00101   strcpy(mRunningProcCode, (char *) runningproccode);
00102 }
00103 
00104  /*-------------------------------------------------------------------------*/
00105 
00106 inline Buffer::Pointer & Process::getBuffer()
00107 {
00108   return mBuffer;
00109 }
00110 
00111  /*-------------------------------------------------------------------------*/
00112 
00113 inline const bool & Process::getInitialized() const
00114 {
00115   return mInitialized;
00116 }
00117 
00118  /*-------------------------------------------------------------------------*/
00119 
00120 inline PCuint & Process::getSortOrder()
00121 {
00122   return mSortOrder;
00123 }
00124 
00125  /*-------------------------------------------------------------------------*/
00126 
00127 inline void Process::setSortOrder(const PCuint sortorder)
00128 {
00129   mSortOrder = sortorder;
00130 }
00131 
00132  /*-------------------------------------------------------------------------*/
00133 
00134 inline PCid & Process::getStopID()
00135 {
00136   return mStopID;
00137 }
00138 
00139  /*-------------------------------------------------------------------------*/
00140 
00141 inline void Process::setStopID(const PCid stopid)
00142 {
00143   mStopID = stopid;
00144 }
00145 
00146  /*-------------------------------------------------------------------------*/
00147 
00148 inline bool & Process::getOperate()
00149 {
00150   return mOperate;
00151 }
00152 
00153  /*-------------------------------------------------------------------------*/
00154 
00155 inline void Process::setOperate(const bool operate)
00156 {
00157   mOperate = operate;
00158 }
00159 
00160  /*-------------------------------------------------------------------------*/
00161 
00162 inline bool & Process::getDisplayOutput()
00163 {
00164   return mDisplayOutput;
00165 }
00166 
00167  /*-------------------------------------------------------------------------*/
00168 
00169 inline void Process::setDisplayOutput(const bool displayoutput)
00170 {
00171   mDisplayOutput = displayoutput;
00172 }
00173 
00174  /*-------------------------------------------------------------------------*/
00175 
00176 inline bool & Process::getGatherStatistics()
00177 {
00178   return mGatherStatistics;
00179 }
00180 
00181  /*-------------------------------------------------------------------------*/
00182 
00183 inline void Process::setGatherStatistics(const bool gatherstatistics)
00184 {
00185   mGatherStatistics = gatherstatistics;
00186 }
00187 
00188  /*-------------------------------------------------------------------------*/
00189 
00190 inline const u32 & Process::getFrameNumber() const
00191 {
00192   return mFrameNumber;
00193 }
00194 
00195  /*-------------------------------------------------------------------------*/
00196 
00197 inline const Real & Process::getFrameTime() const
00198 {
00199   return mFrameTime;
00200 }
00201 
00202  /*-------------------------------------------------------------------------*/
00203 
00204 inline const Real & Process::getStartTime() const
00205 {
00206   return mStartTime;
00207 }
00208 
00209  /*-------------------------------------------------------------------------*/
00210 
00211 inline void Process::setStartTime(const Real & starttime)
00212 {
00213   mStartTime = starttime;
00214 }
00215 
00216  /*-------------------------------------------------------------------------*/
00217 
00218 inline const bool & Process::getStop() const
00219 {
00220   return mStop;
00221 }
00222 
00223  /*-------------------------------------------------------------------------*/
00224 
00225 inline void Process::setStop(const bool & stop)
00226 {
00227   mStop = stop;
00228 }
00229 
00230  /*-------------------------------------------------------------------------*/
00231 
00232 inline const bool & Process::getStopAble() const
00233 {
00234   return mStopAble;
00235 }
00236 
00237  /*-------------------------------------------------------------------------*/
00238 
00239 inline void Process::setStopAble(const bool & stopable)
00240 {
00241   mStopAble = stopable;
00242 }
00243 
00244  /*-------------------------------------------------------------------------*/
00245 
00246 inline const bool & Process::getCountedStop() const
00247 {
00248   return mCountedStop;
00249 }
00250 
00251  /*-------------------------------------------------------------------------*/
00252 
00253 inline void Process::setCountedStop(const bool & countedstop)
00254 {
00255   mCountedStop = countedstop;
00256 }
00257 
00258  /*-------------------------------------------------------------------------*/
00259 
00260 inline OutputNode::Pointer & Process::getOutputDocument()
00261 {
00262   return mOutputDocument;
00263 }
00264 
00265  /*-------------------------------------------------------------------------*/
00266 
00267 inline const bool & Process::getShowFrameletIcon() const
00268 {
00269   return mShowFrameletIcon;
00270 }
00271 
00272  /*-------------------------------------------------------------------------*/
00273 
00274 inline int &Process::getExportFrameStep()
00275 {
00276   return mExportFrameStep;
00277 }
00278 
00279  /*-------------------------------------------------------------------------*/
00280 
00281 inline void Process::setExportFrameStep(const int exportframestep)
00282 {
00283   mExportFrameStep = exportframestep;
00284 }
00285 
00286  /*-------------------------------------------------------------------------*/
00287 
00288 inline char *Process::getFrameFilenamePattern()
00289 {
00290   return mFrameFilenamePattern;
00291 }
00292 
00293  /*-------------------------------------------------------------------------*/
00294 
00295 inline void Process::setFrameFilenamePattern(const char *framefilenamepattern)
00296 {
00297   mFrameFilenamePattern = strdup(framefilenamepattern);
00298 }
00299 
00300  /*-------------------------------------------------------------------------*/
00301 
00302  //
00303  // Methods
00304  //
00305 
00306 inline void Process::setProcessTypeSq(const int processType)
00307 {
00308   mProcessType = ProcessType(processType);
00309 }
00310 
00311  /*----------------------------------------------------------------------*/
00312 
00313 inline int Process::getProcessTypeSq()
00314 {
00315   return mProcessType;
00316 }
00317 
00318  /*----------------------------------------------------------------------*/