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 ShaderChunk! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &ShaderChunkBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 ShaderChunkBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00070 00071 /*------------------------------ get -----------------------------------*/ 00072 00074 inline 00075 SFString *ShaderChunkBase::getSFVertexProgram(void) 00076 { 00077 return &_sfVertexProgram; 00078 } 00079 00081 inline 00082 SFString *ShaderChunkBase::getSFFragmentProgram(void) 00083 { 00084 return &_sfFragmentProgram; 00085 } 00086 00087 00089 inline 00090 std::string &ShaderChunkBase::getVertexProgram(void) 00091 { 00092 return _sfVertexProgram.getValue(); 00093 } 00094 00096 inline 00097 const std::string &ShaderChunkBase::getVertexProgram(void) const 00098 { 00099 return _sfVertexProgram.getValue(); 00100 } 00101 00103 inline 00104 void ShaderChunkBase::setVertexProgram(const std::string &value) 00105 { 00106 _sfVertexProgram.setValue(value); 00107 } 00108 00110 inline 00111 std::string &ShaderChunkBase::getFragmentProgram(void) 00112 { 00113 return _sfFragmentProgram.getValue(); 00114 } 00115 00117 inline 00118 const std::string &ShaderChunkBase::getFragmentProgram(void) const 00119 { 00120 return _sfFragmentProgram.getValue(); 00121 } 00122 00124 inline 00125 void ShaderChunkBase::setFragmentProgram(const std::string &value) 00126 { 00127 _sfFragmentProgram.setValue(value); 00128 } 00129 00130 00131 OSG_END_NAMESPACE 00132 00133 #define OSGSHADERCHUNKBASE_INLINE_CVSID "@(#)$Id: OSGShaderChunkBase.inl,v 1.5 2005/07/08 06:32:39 vossg Exp $" 00134
1.4.3