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 Geometry! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &GeometryBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 GeometryBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00071 inline 00072 GeometryPtr GeometryBase::create(void) 00073 { 00074 GeometryPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = GeometryPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 } 00084 00086 inline 00087 GeometryPtr GeometryBase::createEmpty(void) 00088 { 00089 GeometryPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 } 00095 00096 00097 /*------------------------------ get -----------------------------------*/ 00098 00100 inline 00101 SFGeoPTypesPtr *GeometryBase::getSFTypes(void) 00102 { 00103 return &_sfTypes; 00104 } 00105 00107 inline 00108 SFGeoPLengthsPtr *GeometryBase::getSFLengths(void) 00109 { 00110 return &_sfLengths; 00111 } 00112 00114 inline 00115 SFGeoPositionsPtr *GeometryBase::getSFPositions(void) 00116 { 00117 return &_sfPositions; 00118 } 00119 00121 inline 00122 SFGeoNormalsPtr *GeometryBase::getSFNormals(void) 00123 { 00124 return &_sfNormals; 00125 } 00126 00128 inline 00129 SFGeoColorsPtr *GeometryBase::getSFColors(void) 00130 { 00131 return &_sfColors; 00132 } 00133 00135 inline 00136 SFGeoColorsPtr *GeometryBase::getSFSecondaryColors(void) 00137 { 00138 return &_sfSecondaryColors; 00139 } 00140 00142 inline 00143 SFGeoTexCoordsPtr *GeometryBase::getSFTexCoords(void) 00144 { 00145 return &_sfTexCoords; 00146 } 00147 00149 inline 00150 SFGeoTexCoordsPtr *GeometryBase::getSFTexCoords1(void) 00151 { 00152 return &_sfTexCoords1; 00153 } 00154 00156 inline 00157 SFGeoTexCoordsPtr *GeometryBase::getSFTexCoords2(void) 00158 { 00159 return &_sfTexCoords2; 00160 } 00161 00163 inline 00164 SFGeoTexCoordsPtr *GeometryBase::getSFTexCoords3(void) 00165 { 00166 return &_sfTexCoords3; 00167 } 00168 00170 inline 00171 SFGeoTexCoordsPtr *GeometryBase::getSFTexCoords4(void) 00172 { 00173 return &_sfTexCoords4; 00174 } 00175 00177 inline 00178 SFGeoTexCoordsPtr *GeometryBase::getSFTexCoords5(void) 00179 { 00180 return &_sfTexCoords5; 00181 } 00182 00184 inline 00185 SFGeoTexCoordsPtr *GeometryBase::getSFTexCoords6(void) 00186 { 00187 return &_sfTexCoords6; 00188 } 00189 00191 inline 00192 SFGeoTexCoordsPtr *GeometryBase::getSFTexCoords7(void) 00193 { 00194 return &_sfTexCoords7; 00195 } 00196 00198 inline 00199 SFGeoIndicesPtr *GeometryBase::getSFIndices(void) 00200 { 00201 return &_sfIndices; 00202 } 00203 00205 inline 00206 MFUInt16 *GeometryBase::getMFIndexMapping(void) 00207 { 00208 return &_mfIndexMapping; 00209 } 00210 00212 inline 00213 SFBool *GeometryBase::getSFDlistCache(void) 00214 { 00215 return &_sfDlistCache; 00216 } 00217 00219 inline 00220 SFInt32 *GeometryBase::getSFGLId(void) 00221 { 00222 return &_sfGLId; 00223 } 00224 00226 inline 00227 SFInt32 *GeometryBase::getSFIgnoreGLForAspect(void) 00228 { 00229 return &_sfIgnoreGLForAspect; 00230 } 00231 00233 inline 00234 SFUInt32 *GeometryBase::getSFMinindex(void) 00235 { 00236 return &_sfMinindex; 00237 } 00238 00240 inline 00241 SFUInt32 *GeometryBase::getSFMaxindex(void) 00242 { 00243 return &_sfMaxindex; 00244 } 00245 00247 inline 00248 MFUInt32 *GeometryBase::getMFLowindices(void) 00249 { 00250 return &_mfLowindices; 00251 } 00252 00254 inline 00255 MFUInt32 *GeometryBase::getMFHighindices(void) 00256 { 00257 return &_mfHighindices; 00258 } 00259 00261 inline 00262 SFBool *GeometryBase::getSFVbo(void) 00263 { 00264 return &_sfVbo; 00265 } 00266 00267 00269 inline 00270 GeoPTypesPtr &GeometryBase::getTypes(void) 00271 { 00272 return _sfTypes.getValue(); 00273 } 00274 00276 inline 00277 const GeoPTypesPtr &GeometryBase::getTypes(void) const 00278 { 00279 return _sfTypes.getValue(); 00280 } 00281 00283 inline 00284 void GeometryBase::setTypes(const GeoPTypesPtr &value) 00285 { 00286 _sfTypes.setValue(value); 00287 } 00288 00290 inline 00291 GeoPLengthsPtr &GeometryBase::getLengths(void) 00292 { 00293 return _sfLengths.getValue(); 00294 } 00295 00297 inline 00298 const GeoPLengthsPtr &GeometryBase::getLengths(void) const 00299 { 00300 return _sfLengths.getValue(); 00301 } 00302 00304 inline 00305 void GeometryBase::setLengths(const GeoPLengthsPtr &value) 00306 { 00307 _sfLengths.setValue(value); 00308 } 00309 00311 inline 00312 GeoPositionsPtr &GeometryBase::getPositions(void) 00313 { 00314 return _sfPositions.getValue(); 00315 } 00316 00318 inline 00319 const GeoPositionsPtr &GeometryBase::getPositions(void) const 00320 { 00321 return _sfPositions.getValue(); 00322 } 00323 00325 inline 00326 void GeometryBase::setPositions(const GeoPositionsPtr &value) 00327 { 00328 _sfPositions.setValue(value); 00329 } 00330 00332 inline 00333 GeoNormalsPtr &GeometryBase::getNormals(void) 00334 { 00335 return _sfNormals.getValue(); 00336 } 00337 00339 inline 00340 const GeoNormalsPtr &GeometryBase::getNormals(void) const 00341 { 00342 return _sfNormals.getValue(); 00343 } 00344 00346 inline 00347 void GeometryBase::setNormals(const GeoNormalsPtr &value) 00348 { 00349 _sfNormals.setValue(value); 00350 } 00351 00353 inline 00354 GeoColorsPtr &GeometryBase::getColors(void) 00355 { 00356 return _sfColors.getValue(); 00357 } 00358 00360 inline 00361 const GeoColorsPtr &GeometryBase::getColors(void) const 00362 { 00363 return _sfColors.getValue(); 00364 } 00365 00367 inline 00368 void GeometryBase::setColors(const GeoColorsPtr &value) 00369 { 00370 _sfColors.setValue(value); 00371 } 00372 00374 inline 00375 GeoColorsPtr &GeometryBase::getSecondaryColors(void) 00376 { 00377 return _sfSecondaryColors.getValue(); 00378 } 00379 00381 inline 00382 const GeoColorsPtr &GeometryBase::getSecondaryColors(void) const 00383 { 00384 return _sfSecondaryColors.getValue(); 00385 } 00386 00388 inline 00389 void GeometryBase::setSecondaryColors(const GeoColorsPtr &value) 00390 { 00391 _sfSecondaryColors.setValue(value); 00392 } 00393 00395 inline 00396 GeoTexCoordsPtr &GeometryBase::getTexCoords(void) 00397 { 00398 return _sfTexCoords.getValue(); 00399 } 00400 00402 inline 00403 const GeoTexCoordsPtr &GeometryBase::getTexCoords(void) const 00404 { 00405 return _sfTexCoords.getValue(); 00406 } 00407 00409 inline 00410 void GeometryBase::setTexCoords(const GeoTexCoordsPtr &value) 00411 { 00412 _sfTexCoords.setValue(value); 00413 } 00414 00416 inline 00417 GeoTexCoordsPtr &GeometryBase::getTexCoords1(void) 00418 { 00419 return _sfTexCoords1.getValue(); 00420 } 00421 00423 inline 00424 const GeoTexCoordsPtr &GeometryBase::getTexCoords1(void) const 00425 { 00426 return _sfTexCoords1.getValue(); 00427 } 00428 00430 inline 00431 void GeometryBase::setTexCoords1(const GeoTexCoordsPtr &value) 00432 { 00433 _sfTexCoords1.setValue(value); 00434 } 00435 00437 inline 00438 GeoTexCoordsPtr &GeometryBase::getTexCoords2(void) 00439 { 00440 return _sfTexCoords2.getValue(); 00441 } 00442 00444 inline 00445 const GeoTexCoordsPtr &GeometryBase::getTexCoords2(void) const 00446 { 00447 return _sfTexCoords2.getValue(); 00448 } 00449 00451 inline 00452 void GeometryBase::setTexCoords2(const GeoTexCoordsPtr &value) 00453 { 00454 _sfTexCoords2.setValue(value); 00455 } 00456 00458 inline 00459 GeoTexCoordsPtr &GeometryBase::getTexCoords3(void) 00460 { 00461 return _sfTexCoords3.getValue(); 00462 } 00463 00465 inline 00466 const GeoTexCoordsPtr &GeometryBase::getTexCoords3(void) const 00467 { 00468 return _sfTexCoords3.getValue(); 00469 } 00470 00472 inline 00473 void GeometryBase::setTexCoords3(const GeoTexCoordsPtr &value) 00474 { 00475 _sfTexCoords3.setValue(value); 00476 } 00477 00479 inline 00480 GeoTexCoordsPtr &GeometryBase::getTexCoords4(void) 00481 { 00482 return _sfTexCoords4.getValue(); 00483 } 00484 00486 inline 00487 const GeoTexCoordsPtr &GeometryBase::getTexCoords4(void) const 00488 { 00489 return _sfTexCoords4.getValue(); 00490 } 00491 00493 inline 00494 void GeometryBase::setTexCoords4(const GeoTexCoordsPtr &value) 00495 { 00496 _sfTexCoords4.setValue(value); 00497 } 00498 00500 inline 00501 GeoTexCoordsPtr &GeometryBase::getTexCoords5(void) 00502 { 00503 return _sfTexCoords5.getValue(); 00504 } 00505 00507 inline 00508 const GeoTexCoordsPtr &GeometryBase::getTexCoords5(void) const 00509 { 00510 return _sfTexCoords5.getValue(); 00511 } 00512 00514 inline 00515 void GeometryBase::setTexCoords5(const GeoTexCoordsPtr &value) 00516 { 00517 _sfTexCoords5.setValue(value); 00518 } 00519 00521 inline 00522 GeoTexCoordsPtr &GeometryBase::getTexCoords6(void) 00523 { 00524 return _sfTexCoords6.getValue(); 00525 } 00526 00528 inline 00529 const GeoTexCoordsPtr &GeometryBase::getTexCoords6(void) const 00530 { 00531 return _sfTexCoords6.getValue(); 00532 } 00533 00535 inline 00536 void GeometryBase::setTexCoords6(const GeoTexCoordsPtr &value) 00537 { 00538 _sfTexCoords6.setValue(value); 00539 } 00540 00542 inline 00543 GeoTexCoordsPtr &GeometryBase::getTexCoords7(void) 00544 { 00545 return _sfTexCoords7.getValue(); 00546 } 00547 00549 inline 00550 const GeoTexCoordsPtr &GeometryBase::getTexCoords7(void) const 00551 { 00552 return _sfTexCoords7.getValue(); 00553 } 00554 00556 inline 00557 void GeometryBase::setTexCoords7(const GeoTexCoordsPtr &value) 00558 { 00559 _sfTexCoords7.setValue(value); 00560 } 00561 00563 inline 00564 GeoIndicesPtr &GeometryBase::getIndices(void) 00565 { 00566 return _sfIndices.getValue(); 00567 } 00568 00570 inline 00571 const GeoIndicesPtr &GeometryBase::getIndices(void) const 00572 { 00573 return _sfIndices.getValue(); 00574 } 00575 00577 inline 00578 void GeometryBase::setIndices(const GeoIndicesPtr &value) 00579 { 00580 _sfIndices.setValue(value); 00581 } 00582 00584 inline 00585 bool &GeometryBase::getDlistCache(void) 00586 { 00587 return _sfDlistCache.getValue(); 00588 } 00589 00591 inline 00592 const bool &GeometryBase::getDlistCache(void) const 00593 { 00594 return _sfDlistCache.getValue(); 00595 } 00596 00598 inline 00599 void GeometryBase::setDlistCache(const bool &value) 00600 { 00601 _sfDlistCache.setValue(value); 00602 } 00603 00605 inline 00606 Int32 &GeometryBase::getGLId(void) 00607 { 00608 return _sfGLId.getValue(); 00609 } 00610 00612 inline 00613 const Int32 &GeometryBase::getGLId(void) const 00614 { 00615 return _sfGLId.getValue(); 00616 } 00617 00619 inline 00620 void GeometryBase::setGLId(const Int32 &value) 00621 { 00622 _sfGLId.setValue(value); 00623 } 00624 00626 inline 00627 Int32 &GeometryBase::getIgnoreGLForAspect(void) 00628 { 00629 return _sfIgnoreGLForAspect.getValue(); 00630 } 00631 00633 inline 00634 const Int32 &GeometryBase::getIgnoreGLForAspect(void) const 00635 { 00636 return _sfIgnoreGLForAspect.getValue(); 00637 } 00638 00640 inline 00641 void GeometryBase::setIgnoreGLForAspect(const Int32 &value) 00642 { 00643 _sfIgnoreGLForAspect.setValue(value); 00644 } 00645 00647 inline 00648 UInt32 &GeometryBase::getMinindex(void) 00649 { 00650 return _sfMinindex.getValue(); 00651 } 00652 00654 inline 00655 const UInt32 &GeometryBase::getMinindex(void) const 00656 { 00657 return _sfMinindex.getValue(); 00658 } 00659 00661 inline 00662 void GeometryBase::setMinindex(const UInt32 &value) 00663 { 00664 _sfMinindex.setValue(value); 00665 } 00666 00668 inline 00669 UInt32 &GeometryBase::getMaxindex(void) 00670 { 00671 return _sfMaxindex.getValue(); 00672 } 00673 00675 inline 00676 const UInt32 &GeometryBase::getMaxindex(void) const 00677 { 00678 return _sfMaxindex.getValue(); 00679 } 00680 00682 inline 00683 void GeometryBase::setMaxindex(const UInt32 &value) 00684 { 00685 _sfMaxindex.setValue(value); 00686 } 00687 00689 inline 00690 bool &GeometryBase::getVbo(void) 00691 { 00692 return _sfVbo.getValue(); 00693 } 00694 00696 inline 00697 const bool &GeometryBase::getVbo(void) const 00698 { 00699 return _sfVbo.getValue(); 00700 } 00701 00703 inline 00704 void GeometryBase::setVbo(const bool &value) 00705 { 00706 _sfVbo.setValue(value); 00707 } 00708 00709 00711 inline 00712 UInt16 &GeometryBase::getIndexMapping(const UInt32 index) 00713 { 00714 return _mfIndexMapping[index]; 00715 } 00716 00718 inline 00719 MFUInt16 &GeometryBase::getIndexMapping(void) 00720 { 00721 return _mfIndexMapping; 00722 } 00723 00725 inline 00726 const MFUInt16 &GeometryBase::getIndexMapping(void) const 00727 { 00728 return _mfIndexMapping; 00729 } 00730 00732 inline 00733 UInt32 &GeometryBase::getLowindices(const UInt32 index) 00734 { 00735 return _mfLowindices[index]; 00736 } 00737 00739 inline 00740 MFUInt32 &GeometryBase::getLowindices(void) 00741 { 00742 return _mfLowindices; 00743 } 00744 00746 inline 00747 const MFUInt32 &GeometryBase::getLowindices(void) const 00748 { 00749 return _mfLowindices; 00750 } 00751 00753 inline 00754 UInt32 &GeometryBase::getHighindices(const UInt32 index) 00755 { 00756 return _mfHighindices[index]; 00757 } 00758 00760 inline 00761 MFUInt32 &GeometryBase::getHighindices(void) 00762 { 00763 return _mfHighindices; 00764 } 00765 00767 inline 00768 const MFUInt32 &GeometryBase::getHighindices(void) const 00769 { 00770 return _mfHighindices; 00771 } 00772 00773 OSG_END_NAMESPACE 00774 00775 #define OSGGEOMETRYBASE_INLINE_CVSID "@(#)$Id: FCBaseTemplate_inl.h,v 1.20 2002/12/04 14:22:22 dirk Exp $" 00776
1.5.5