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 Light! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &LightBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 LightBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00070 00071 /*------------------------------ get -----------------------------------*/ 00072 00074 inline 00075 SFColor4f *LightBase::getSFAmbient(void) 00076 { 00077 return &_sfAmbient; 00078 } 00079 00081 inline 00082 SFColor4f *LightBase::getSFDiffuse(void) 00083 { 00084 return &_sfDiffuse; 00085 } 00086 00088 inline 00089 SFColor4f *LightBase::getSFSpecular(void) 00090 { 00091 return &_sfSpecular; 00092 } 00093 00095 inline 00096 SFNodePtr *LightBase::getSFBeacon(void) 00097 { 00098 return &_sfBeacon; 00099 } 00100 00102 inline 00103 SFBool *LightBase::getSFOn(void) 00104 { 00105 return &_sfOn; 00106 } 00107 00109 inline 00110 SFReal32 *LightBase::getSFConstantAttenuation(void) 00111 { 00112 return &_sfConstantAttenuation; 00113 } 00114 00116 inline 00117 SFReal32 *LightBase::getSFLinearAttenuation(void) 00118 { 00119 return &_sfLinearAttenuation; 00120 } 00121 00123 inline 00124 SFReal32 *LightBase::getSFQuadraticAttenuation(void) 00125 { 00126 return &_sfQuadraticAttenuation; 00127 } 00128 00129 00131 inline 00132 Color4f &LightBase::getAmbient(void) 00133 { 00134 return _sfAmbient.getValue(); 00135 } 00136 00138 inline 00139 const Color4f &LightBase::getAmbient(void) const 00140 { 00141 return _sfAmbient.getValue(); 00142 } 00143 00145 inline 00146 void LightBase::setAmbient(const Color4f &value) 00147 { 00148 _sfAmbient.setValue(value); 00149 } 00150 00152 inline 00153 Color4f &LightBase::getDiffuse(void) 00154 { 00155 return _sfDiffuse.getValue(); 00156 } 00157 00159 inline 00160 const Color4f &LightBase::getDiffuse(void) const 00161 { 00162 return _sfDiffuse.getValue(); 00163 } 00164 00166 inline 00167 void LightBase::setDiffuse(const Color4f &value) 00168 { 00169 _sfDiffuse.setValue(value); 00170 } 00171 00173 inline 00174 Color4f &LightBase::getSpecular(void) 00175 { 00176 return _sfSpecular.getValue(); 00177 } 00178 00180 inline 00181 const Color4f &LightBase::getSpecular(void) const 00182 { 00183 return _sfSpecular.getValue(); 00184 } 00185 00187 inline 00188 void LightBase::setSpecular(const Color4f &value) 00189 { 00190 _sfSpecular.setValue(value); 00191 } 00192 00194 inline 00195 NodePtr &LightBase::getBeacon(void) 00196 { 00197 return _sfBeacon.getValue(); 00198 } 00199 00201 inline 00202 const NodePtr &LightBase::getBeacon(void) const 00203 { 00204 return _sfBeacon.getValue(); 00205 } 00206 00208 inline 00209 void LightBase::setBeacon(const NodePtr &value) 00210 { 00211 _sfBeacon.setValue(value); 00212 } 00213 00215 inline 00216 bool &LightBase::getOn(void) 00217 { 00218 return _sfOn.getValue(); 00219 } 00220 00222 inline 00223 const bool &LightBase::getOn(void) const 00224 { 00225 return _sfOn.getValue(); 00226 } 00227 00229 inline 00230 void LightBase::setOn(const bool &value) 00231 { 00232 _sfOn.setValue(value); 00233 } 00234 00236 inline 00237 Real32 &LightBase::getConstantAttenuation(void) 00238 { 00239 return _sfConstantAttenuation.getValue(); 00240 } 00241 00243 inline 00244 const Real32 &LightBase::getConstantAttenuation(void) const 00245 { 00246 return _sfConstantAttenuation.getValue(); 00247 } 00248 00250 inline 00251 void LightBase::setConstantAttenuation(const Real32 &value) 00252 { 00253 _sfConstantAttenuation.setValue(value); 00254 } 00255 00257 inline 00258 Real32 &LightBase::getLinearAttenuation(void) 00259 { 00260 return _sfLinearAttenuation.getValue(); 00261 } 00262 00264 inline 00265 const Real32 &LightBase::getLinearAttenuation(void) const 00266 { 00267 return _sfLinearAttenuation.getValue(); 00268 } 00269 00271 inline 00272 void LightBase::setLinearAttenuation(const Real32 &value) 00273 { 00274 _sfLinearAttenuation.setValue(value); 00275 } 00276 00278 inline 00279 Real32 &LightBase::getQuadraticAttenuation(void) 00280 { 00281 return _sfQuadraticAttenuation.getValue(); 00282 } 00283 00285 inline 00286 const Real32 &LightBase::getQuadraticAttenuation(void) const 00287 { 00288 return _sfQuadraticAttenuation.getValue(); 00289 } 00290 00292 inline 00293 void LightBase::setQuadraticAttenuation(const Real32 &value) 00294 { 00295 _sfQuadraticAttenuation.setValue(value); 00296 } 00297 00298 00299 OSG_END_NAMESPACE 00300 00301 #define OSGLIGHTBASE_INLINE_CVSID "@(#)$Id: $" 00302
1.4.3