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 00130 inline 00131 SFReal32 *LightBase::getSFShadowIntensity(void) 00132 { 00133 return &_sfShadowIntensity; 00134 } 00135 00137 inline 00138 SFUInt32 *LightBase::getSFShadowMode(void) 00139 { 00140 return &_sfShadowMode; 00141 } 00142 00143 00145 inline 00146 Color4f &LightBase::getAmbient(void) 00147 { 00148 return _sfAmbient.getValue(); 00149 } 00150 00152 inline 00153 const Color4f &LightBase::getAmbient(void) const 00154 { 00155 return _sfAmbient.getValue(); 00156 } 00157 00159 inline 00160 void LightBase::setAmbient(const Color4f &value) 00161 { 00162 _sfAmbient.setValue(value); 00163 } 00164 00166 inline 00167 Color4f &LightBase::getDiffuse(void) 00168 { 00169 return _sfDiffuse.getValue(); 00170 } 00171 00173 inline 00174 const Color4f &LightBase::getDiffuse(void) const 00175 { 00176 return _sfDiffuse.getValue(); 00177 } 00178 00180 inline 00181 void LightBase::setDiffuse(const Color4f &value) 00182 { 00183 _sfDiffuse.setValue(value); 00184 } 00185 00187 inline 00188 Color4f &LightBase::getSpecular(void) 00189 { 00190 return _sfSpecular.getValue(); 00191 } 00192 00194 inline 00195 const Color4f &LightBase::getSpecular(void) const 00196 { 00197 return _sfSpecular.getValue(); 00198 } 00199 00201 inline 00202 void LightBase::setSpecular(const Color4f &value) 00203 { 00204 _sfSpecular.setValue(value); 00205 } 00206 00208 inline 00209 NodePtr &LightBase::getBeacon(void) 00210 { 00211 return _sfBeacon.getValue(); 00212 } 00213 00215 inline 00216 const NodePtr &LightBase::getBeacon(void) const 00217 { 00218 return _sfBeacon.getValue(); 00219 } 00220 00222 inline 00223 void LightBase::setBeacon(const NodePtr &value) 00224 { 00225 _sfBeacon.setValue(value); 00226 } 00227 00229 inline 00230 bool &LightBase::getOn(void) 00231 { 00232 return _sfOn.getValue(); 00233 } 00234 00236 inline 00237 const bool &LightBase::getOn(void) const 00238 { 00239 return _sfOn.getValue(); 00240 } 00241 00243 inline 00244 void LightBase::setOn(const bool &value) 00245 { 00246 _sfOn.setValue(value); 00247 } 00248 00250 inline 00251 Real32 &LightBase::getConstantAttenuation(void) 00252 { 00253 return _sfConstantAttenuation.getValue(); 00254 } 00255 00257 inline 00258 const Real32 &LightBase::getConstantAttenuation(void) const 00259 { 00260 return _sfConstantAttenuation.getValue(); 00261 } 00262 00264 inline 00265 void LightBase::setConstantAttenuation(const Real32 &value) 00266 { 00267 _sfConstantAttenuation.setValue(value); 00268 } 00269 00271 inline 00272 Real32 &LightBase::getLinearAttenuation(void) 00273 { 00274 return _sfLinearAttenuation.getValue(); 00275 } 00276 00278 inline 00279 const Real32 &LightBase::getLinearAttenuation(void) const 00280 { 00281 return _sfLinearAttenuation.getValue(); 00282 } 00283 00285 inline 00286 void LightBase::setLinearAttenuation(const Real32 &value) 00287 { 00288 _sfLinearAttenuation.setValue(value); 00289 } 00290 00292 inline 00293 Real32 &LightBase::getQuadraticAttenuation(void) 00294 { 00295 return _sfQuadraticAttenuation.getValue(); 00296 } 00297 00299 inline 00300 const Real32 &LightBase::getQuadraticAttenuation(void) const 00301 { 00302 return _sfQuadraticAttenuation.getValue(); 00303 } 00304 00306 inline 00307 void LightBase::setQuadraticAttenuation(const Real32 &value) 00308 { 00309 _sfQuadraticAttenuation.setValue(value); 00310 } 00311 00313 inline 00314 Real32 &LightBase::getShadowIntensity(void) 00315 { 00316 return _sfShadowIntensity.getValue(); 00317 } 00318 00320 inline 00321 const Real32 &LightBase::getShadowIntensity(void) const 00322 { 00323 return _sfShadowIntensity.getValue(); 00324 } 00325 00327 inline 00328 void LightBase::setShadowIntensity(const Real32 &value) 00329 { 00330 _sfShadowIntensity.setValue(value); 00331 } 00332 00334 inline 00335 UInt32 &LightBase::getShadowMode(void) 00336 { 00337 return _sfShadowMode.getValue(); 00338 } 00339 00341 inline 00342 const UInt32 &LightBase::getShadowMode(void) const 00343 { 00344 return _sfShadowMode.getValue(); 00345 } 00346 00348 inline 00349 void LightBase::setShadowMode(const UInt32 &value) 00350 { 00351 _sfShadowMode.setValue(value); 00352 } 00353 00354 00355 OSG_END_NAMESPACE 00356 00357 #define OSGLIGHTBASE_INLINE_CVSID "@(#)$Id: FCBaseTemplate_inl.h,v 1.20 2002/12/04 14:22:22 dirk Exp $" 00358
1.5.5