00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2006 by the OpenSG Forum * 00006 * * 00007 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00008 * * 00009 \*---------------------------------------------------------------------------*/ 00010 /*---------------------------------------------------------------------------*\ 00011 * License * 00012 * * 00013 * This library is free software; you can redistribute it and/or modify it * 00014 * under the terms of the GNU Library General Public License as published * 00015 * by the Free Software Foundation, version 2. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, but * 00018 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00020 * Library General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Library General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00025 * * 00026 \*---------------------------------------------------------------------------*/ 00027 /*---------------------------------------------------------------------------*\ 00028 * Changes * 00029 * * 00030 * * 00031 * * 00032 * * 00033 * * 00034 * * 00035 \*---------------------------------------------------------------------------*/ 00036 00037 /*****************************************************************************\ 00038 ***************************************************************************** 00039 ** ** 00040 ** This file is automatically generated. ** 00041 ** ** 00042 ** Any changes made to this file WILL be lost when it is ** 00043 ** regenerated, which can become necessary at any time. ** 00044 ** ** 00045 ** Do not change this file, changes should be done in the derived ** 00046 ** class AlgorithmStage! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 OSG_BEGIN_NAMESPACE 00052 00053 00055 inline 00056 OSG::FieldContainerType &AlgorithmStageBase::getClassType(void) 00057 { 00058 return _type; 00059 } 00060 00062 inline 00063 OSG::UInt32 AlgorithmStageBase::getClassTypeId(void) 00064 { 00065 return _type.getId(); 00066 } 00067 00068 inline 00069 OSG::UInt16 AlgorithmStageBase::getClassGroupId(void) 00070 { 00071 return _type.getGroupId(); 00072 } 00073 00074 /*------------------------------ get -----------------------------------*/ 00075 00076 00078 inline 00079 AlgorithmPtrConst AlgorithmStageBase::getAlgorithm(void) const 00080 { 00081 return _sfAlgorithm.getValue(); 00082 } 00083 00085 inline 00086 void AlgorithmStageBase::setAlgorithm(AlgorithmPtrConstArg value) 00087 { 00088 editSField(AlgorithmFieldMask); 00089 00090 setRefd(_sfAlgorithm.getValue(), value); 00091 00092 } 00094 00095 inline 00096 UInt32 &AlgorithmStageBase::editProjectionMode(void) 00097 { 00098 editSField(ProjectionModeFieldMask); 00099 00100 return _sfProjectionMode.getValue(); 00101 } 00102 00104 inline 00105 const UInt32 &AlgorithmStageBase::getProjectionMode(void) const 00106 { 00107 return _sfProjectionMode.getValue(); 00108 } 00109 00110 #ifdef OSG_1_GET_COMPAT 00111 inline 00112 UInt32 &AlgorithmStageBase::getProjectionMode (void) 00113 { 00114 return this->editProjectionMode (); 00115 } 00116 #endif 00117 00119 inline 00120 void AlgorithmStageBase::setProjectionMode(const UInt32 &value) 00121 { 00122 editSField(ProjectionModeFieldMask); 00123 00124 _sfProjectionMode.setValue(value); 00125 } 00127 00128 inline 00129 Matrix &AlgorithmStageBase::editProjectionMatrix(void) 00130 { 00131 editSField(ProjectionMatrixFieldMask); 00132 00133 return _sfProjectionMatrix.getValue(); 00134 } 00135 00137 inline 00138 const Matrix &AlgorithmStageBase::getProjectionMatrix(void) const 00139 { 00140 return _sfProjectionMatrix.getValue(); 00141 } 00142 00143 #ifdef OSG_1_GET_COMPAT 00144 inline 00145 Matrix &AlgorithmStageBase::getProjectionMatrix(void) 00146 { 00147 return this->editProjectionMatrix(); 00148 } 00149 #endif 00150 00152 inline 00153 void AlgorithmStageBase::setProjectionMatrix(const Matrix &value) 00154 { 00155 editSField(ProjectionMatrixFieldMask); 00156 00157 _sfProjectionMatrix.setValue(value); 00158 } 00159 00160 00161 #ifdef OSG_MT_CPTR_ASPECT 00162 inline 00163 void AlgorithmStageBase::execSync ( AlgorithmStageBase *pFrom, 00164 ConstFieldMaskArg whichField, 00165 AspectOffsetStore &oOffsets, 00166 ConstFieldMaskArg syncMode, 00167 const UInt32 uiSyncInfo) 00168 { 00169 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo); 00170 00171 if(FieldBits::NoField != (AlgorithmFieldMask & whichField)) 00172 _sfAlgorithm.syncWith(pFrom->_sfAlgorithm); 00173 00174 if(FieldBits::NoField != (ProjectionModeFieldMask & whichField)) 00175 _sfProjectionMode.syncWith(pFrom->_sfProjectionMode); 00176 00177 if(FieldBits::NoField != (ProjectionMatrixFieldMask & whichField)) 00178 _sfProjectionMatrix.syncWith(pFrom->_sfProjectionMatrix); 00179 } 00180 #endif 00181 00182 00183 inline 00184 Char8 *AlgorithmStageBase::getClassname(void) 00185 { 00186 return "AlgorithmStage"; 00187 } 00188 OSG_GEN_CONTAINERPTR(AlgorithmStage); 00189 00190 OSG_END_NAMESPACE 00191