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 PolygonBackground! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &PolygonBackgroundBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 PolygonBackgroundBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00071 inline 00072 PolygonBackgroundPtr PolygonBackgroundBase::create(void) 00073 { 00074 PolygonBackgroundPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = PolygonBackgroundPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 } 00084 00086 inline 00087 PolygonBackgroundPtr PolygonBackgroundBase::createEmpty(void) 00088 { 00089 PolygonBackgroundPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 } 00095 00096 00097 /*------------------------------ get -----------------------------------*/ 00098 00100 inline 00101 SFMaterialPtr *PolygonBackgroundBase::getSFMaterial(void) 00102 { 00103 return &_sfMaterial; 00104 } 00105 00107 inline 00108 MFVec3f *PolygonBackgroundBase::getMFTexCoords(void) 00109 { 00110 return &_mfTexCoords; 00111 } 00112 00114 inline 00115 MFPnt2f *PolygonBackgroundBase::getMFPositions(void) 00116 { 00117 return &_mfPositions; 00118 } 00119 00121 inline 00122 SFBool *PolygonBackgroundBase::getSFNormalizedX(void) 00123 { 00124 return &_sfNormalizedX; 00125 } 00126 00128 inline 00129 SFBool *PolygonBackgroundBase::getSFNormalizedY(void) 00130 { 00131 return &_sfNormalizedY; 00132 } 00133 00135 inline 00136 SFUInt16 *PolygonBackgroundBase::getSFAspectHeight(void) 00137 { 00138 return &_sfAspectHeight; 00139 } 00140 00142 inline 00143 SFUInt16 *PolygonBackgroundBase::getSFAspectWidth(void) 00144 { 00145 return &_sfAspectWidth; 00146 } 00147 00149 inline 00150 SFReal32 *PolygonBackgroundBase::getSFScale(void) 00151 { 00152 return &_sfScale; 00153 } 00154 00156 inline 00157 SFInt32 *PolygonBackgroundBase::getSFClearStencilBit(void) 00158 { 00159 return &_sfClearStencilBit; 00160 } 00161 00163 inline 00164 SFBool *PolygonBackgroundBase::getSFCleanup(void) 00165 { 00166 return &_sfCleanup; 00167 } 00168 00170 inline 00171 SFBool *PolygonBackgroundBase::getSFTile(void) 00172 { 00173 return &_sfTile; 00174 } 00175 00176 00178 inline 00179 MaterialPtr &PolygonBackgroundBase::getMaterial(void) 00180 { 00181 return _sfMaterial.getValue(); 00182 } 00183 00185 inline 00186 const MaterialPtr &PolygonBackgroundBase::getMaterial(void) const 00187 { 00188 return _sfMaterial.getValue(); 00189 } 00190 00192 inline 00193 void PolygonBackgroundBase::setMaterial(const MaterialPtr &value) 00194 { 00195 _sfMaterial.setValue(value); 00196 } 00197 00199 inline 00200 bool &PolygonBackgroundBase::getNormalizedX(void) 00201 { 00202 return _sfNormalizedX.getValue(); 00203 } 00204 00206 inline 00207 const bool &PolygonBackgroundBase::getNormalizedX(void) const 00208 { 00209 return _sfNormalizedX.getValue(); 00210 } 00211 00213 inline 00214 void PolygonBackgroundBase::setNormalizedX(const bool &value) 00215 { 00216 _sfNormalizedX.setValue(value); 00217 } 00218 00220 inline 00221 bool &PolygonBackgroundBase::getNormalizedY(void) 00222 { 00223 return _sfNormalizedY.getValue(); 00224 } 00225 00227 inline 00228 const bool &PolygonBackgroundBase::getNormalizedY(void) const 00229 { 00230 return _sfNormalizedY.getValue(); 00231 } 00232 00234 inline 00235 void PolygonBackgroundBase::setNormalizedY(const bool &value) 00236 { 00237 _sfNormalizedY.setValue(value); 00238 } 00239 00241 inline 00242 UInt16 &PolygonBackgroundBase::getAspectHeight(void) 00243 { 00244 return _sfAspectHeight.getValue(); 00245 } 00246 00248 inline 00249 const UInt16 &PolygonBackgroundBase::getAspectHeight(void) const 00250 { 00251 return _sfAspectHeight.getValue(); 00252 } 00253 00255 inline 00256 void PolygonBackgroundBase::setAspectHeight(const UInt16 &value) 00257 { 00258 _sfAspectHeight.setValue(value); 00259 } 00260 00262 inline 00263 UInt16 &PolygonBackgroundBase::getAspectWidth(void) 00264 { 00265 return _sfAspectWidth.getValue(); 00266 } 00267 00269 inline 00270 const UInt16 &PolygonBackgroundBase::getAspectWidth(void) const 00271 { 00272 return _sfAspectWidth.getValue(); 00273 } 00274 00276 inline 00277 void PolygonBackgroundBase::setAspectWidth(const UInt16 &value) 00278 { 00279 _sfAspectWidth.setValue(value); 00280 } 00281 00283 inline 00284 Real32 &PolygonBackgroundBase::getScale(void) 00285 { 00286 return _sfScale.getValue(); 00287 } 00288 00290 inline 00291 const Real32 &PolygonBackgroundBase::getScale(void) const 00292 { 00293 return _sfScale.getValue(); 00294 } 00295 00297 inline 00298 void PolygonBackgroundBase::setScale(const Real32 &value) 00299 { 00300 _sfScale.setValue(value); 00301 } 00302 00304 inline 00305 Int32 &PolygonBackgroundBase::getClearStencilBit(void) 00306 { 00307 return _sfClearStencilBit.getValue(); 00308 } 00309 00311 inline 00312 const Int32 &PolygonBackgroundBase::getClearStencilBit(void) const 00313 { 00314 return _sfClearStencilBit.getValue(); 00315 } 00316 00318 inline 00319 void PolygonBackgroundBase::setClearStencilBit(const Int32 &value) 00320 { 00321 _sfClearStencilBit.setValue(value); 00322 } 00323 00325 inline 00326 bool &PolygonBackgroundBase::getCleanup(void) 00327 { 00328 return _sfCleanup.getValue(); 00329 } 00330 00332 inline 00333 const bool &PolygonBackgroundBase::getCleanup(void) const 00334 { 00335 return _sfCleanup.getValue(); 00336 } 00337 00339 inline 00340 void PolygonBackgroundBase::setCleanup(const bool &value) 00341 { 00342 _sfCleanup.setValue(value); 00343 } 00344 00346 inline 00347 bool &PolygonBackgroundBase::getTile(void) 00348 { 00349 return _sfTile.getValue(); 00350 } 00351 00353 inline 00354 const bool &PolygonBackgroundBase::getTile(void) const 00355 { 00356 return _sfTile.getValue(); 00357 } 00358 00360 inline 00361 void PolygonBackgroundBase::setTile(const bool &value) 00362 { 00363 _sfTile.setValue(value); 00364 } 00365 00366 00368 inline 00369 Vec3f &PolygonBackgroundBase::getTexCoords(const UInt32 index) 00370 { 00371 return _mfTexCoords[index]; 00372 } 00373 00375 inline 00376 MFVec3f &PolygonBackgroundBase::getTexCoords(void) 00377 { 00378 return _mfTexCoords; 00379 } 00380 00382 inline 00383 const MFVec3f &PolygonBackgroundBase::getTexCoords(void) const 00384 { 00385 return _mfTexCoords; 00386 } 00387 00389 inline 00390 Pnt2f &PolygonBackgroundBase::getPositions(const UInt32 index) 00391 { 00392 return _mfPositions[index]; 00393 } 00394 00396 inline 00397 MFPnt2f &PolygonBackgroundBase::getPositions(void) 00398 { 00399 return _mfPositions; 00400 } 00401 00403 inline 00404 const MFPnt2f &PolygonBackgroundBase::getPositions(void) const 00405 { 00406 return _mfPositions; 00407 } 00408 00409 OSG_END_NAMESPACE 00410 00411 #define OSGPOLYGONBACKGROUNDBASE_INLINE_CVSID "@(#)$Id: OSGPolygonBackgroundBase.inl,v 1.8 2007/03/09 16:59:50 yjung Exp $" 00412
1.5.5