00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 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 ShaderParameterMVec2f! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &ShaderParameterMVec2fBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 ShaderParameterMVec2fBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00071 inline 00072 ShaderParameterMVec2fPtr ShaderParameterMVec2fBase::create(void) 00073 { 00074 ShaderParameterMVec2fPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = ShaderParameterMVec2fPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 } 00084 00086 inline 00087 ShaderParameterMVec2fPtr ShaderParameterMVec2fBase::createEmpty(void) 00088 { 00089 ShaderParameterMVec2fPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 } 00095 00096 00097 /*------------------------------ get -----------------------------------*/ 00098 00100 inline 00101 const MFVec2f *ShaderParameterMVec2fBase::getMFValue(void) const 00102 { 00103 return &_mfValue; 00104 } 00105 00107 inline 00108 MFVec2f *ShaderParameterMVec2fBase::editMFValue(void) 00109 { 00110 return &_mfValue; 00111 } 00112 00113 #ifndef OSG_2_PREP 00115 inline 00116 MFVec2f *ShaderParameterMVec2fBase::getMFValue(void) 00117 { 00118 return &_mfValue; 00119 } 00120 #endif 00121 00122 00123 00125 inline 00126 Vec2f &ShaderParameterMVec2fBase::editValue(const UInt32 index) 00127 { 00128 return _mfValue[index]; 00129 } 00130 00132 inline 00133 const Vec2f &ShaderParameterMVec2fBase::getValue(const UInt32 index) const 00134 { 00135 return _mfValue[index]; 00136 } 00137 00138 #ifndef OSG_2_PREP 00140 inline 00141 Vec2f &ShaderParameterMVec2fBase::getValue(const UInt32 index) 00142 { 00143 return _mfValue[index]; 00144 } 00145 00147 inline 00148 MFVec2f &ShaderParameterMVec2fBase::getValue(void) 00149 { 00150 return _mfValue; 00151 } 00152 00154 inline 00155 const MFVec2f &ShaderParameterMVec2fBase::getValue(void) const 00156 { 00157 return _mfValue; 00158 } 00159 00160 #endif 00161 00162 OSG_END_NAMESPACE 00163 00164 #define OSGSHADERPARAMETERMVEC2FBASE_INLINE_CVSID "@(#)$Id: OSGShaderParameterMVec2fBase.inl,v 1.4 2008/06/09 12:28:05 vossg Exp $" 00165
1.6.1