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 RenderOptions! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &RenderOptionsBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 RenderOptionsBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00071 inline 00072 RenderOptionsPtr RenderOptionsBase::create(void) 00073 { 00074 RenderOptionsPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = RenderOptionsPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 } 00084 00086 inline 00087 RenderOptionsPtr RenderOptionsBase::createEmpty(void) 00088 { 00089 RenderOptionsPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 } 00095 00096 00097 /*------------------------------ get -----------------------------------*/ 00098 00100 inline 00101 SFBool *RenderOptionsBase::getSFStatistic(void) 00102 { 00103 return &_sfStatistic; 00104 } 00105 00107 inline 00108 SFGLenum *RenderOptionsBase::getSFPolygonMode(void) 00109 { 00110 return &_sfPolygonMode; 00111 } 00112 00114 inline 00115 SFBool *RenderOptionsBase::getSFTwoSidedLighting(void) 00116 { 00117 return &_sfTwoSidedLighting; 00118 } 00119 00121 inline 00122 SFBool *RenderOptionsBase::getSFSpecTexLighting(void) 00123 { 00124 return &_sfSpecTexLighting; 00125 } 00126 00128 inline 00129 SFBool *RenderOptionsBase::getSFSortTrans(void) 00130 { 00131 return &_sfSortTrans; 00132 } 00133 00135 inline 00136 SFBool *RenderOptionsBase::getSFZWriteTrans(void) 00137 { 00138 return &_sfZWriteTrans; 00139 } 00140 00142 inline 00143 SFBool *RenderOptionsBase::getSFLocalLights(void) 00144 { 00145 return &_sfLocalLights; 00146 } 00147 00149 inline 00150 SFBool *RenderOptionsBase::getSFCorrectTwoSidedLighting(void) 00151 { 00152 return &_sfCorrectTwoSidedLighting; 00153 } 00154 00156 inline 00157 SFBool *RenderOptionsBase::getSFOcclusionCulling(void) 00158 { 00159 return &_sfOcclusionCulling; 00160 } 00161 00163 inline 00164 SFInt32 *RenderOptionsBase::getSFOcclusionCullingMode(void) 00165 { 00166 return &_sfOcclusionCullingMode; 00167 } 00168 00170 inline 00171 SFUInt32 *RenderOptionsBase::getSFOcclusionCullingPixels(void) 00172 { 00173 return &_sfOcclusionCullingPixels; 00174 } 00175 00177 inline 00178 SFBool *RenderOptionsBase::getSFAntialiasing(void) 00179 { 00180 return &_sfAntialiasing; 00181 } 00182 00184 inline 00185 SFReal32 *RenderOptionsBase::getSFAntialiasingDistance(void) 00186 { 00187 return &_sfAntialiasingDistance; 00188 } 00189 00191 inline 00192 SFReal32 *RenderOptionsBase::getSFAntialiasingScale(void) 00193 { 00194 return &_sfAntialiasingScale; 00195 } 00196 00198 inline 00199 SFUInt32 *RenderOptionsBase::getSFAntialiasingTrigger(void) 00200 { 00201 return &_sfAntialiasingTrigger; 00202 } 00203 00205 inline 00206 SFBool *RenderOptionsBase::getSFFrustumCulling(void) 00207 { 00208 return &_sfFrustumCulling; 00209 } 00210 00212 inline 00213 SFBool *RenderOptionsBase::getSFBackfaceCulling(void) 00214 { 00215 return &_sfBackfaceCulling; 00216 } 00217 00219 inline 00220 SFBool *RenderOptionsBase::getSFSmallFeatureCulling(void) 00221 { 00222 return &_sfSmallFeatureCulling; 00223 } 00224 00226 inline 00227 SFReal32 *RenderOptionsBase::getSFSmallFeaturePixels(void) 00228 { 00229 return &_sfSmallFeaturePixels; 00230 } 00231 00233 inline 00234 SFUInt32 *RenderOptionsBase::getSFSmallFeatureThreshold(void) 00235 { 00236 return &_sfSmallFeatureThreshold; 00237 } 00238 00240 inline 00241 SFBool *RenderOptionsBase::getSFFirstFrame(void) 00242 { 00243 return &_sfFirstFrame; 00244 } 00245 00246 00248 inline 00249 bool &RenderOptionsBase::getStatistic(void) 00250 { 00251 return _sfStatistic.getValue(); 00252 } 00253 00255 inline 00256 const bool &RenderOptionsBase::getStatistic(void) const 00257 { 00258 return _sfStatistic.getValue(); 00259 } 00260 00262 inline 00263 void RenderOptionsBase::setStatistic(const bool &value) 00264 { 00265 _sfStatistic.setValue(value); 00266 } 00267 00269 inline 00270 GLenum &RenderOptionsBase::getPolygonMode(void) 00271 { 00272 return _sfPolygonMode.getValue(); 00273 } 00274 00276 inline 00277 const GLenum &RenderOptionsBase::getPolygonMode(void) const 00278 { 00279 return _sfPolygonMode.getValue(); 00280 } 00281 00283 inline 00284 void RenderOptionsBase::setPolygonMode(const GLenum &value) 00285 { 00286 _sfPolygonMode.setValue(value); 00287 } 00288 00290 inline 00291 bool &RenderOptionsBase::getTwoSidedLighting(void) 00292 { 00293 return _sfTwoSidedLighting.getValue(); 00294 } 00295 00297 inline 00298 const bool &RenderOptionsBase::getTwoSidedLighting(void) const 00299 { 00300 return _sfTwoSidedLighting.getValue(); 00301 } 00302 00304 inline 00305 void RenderOptionsBase::setTwoSidedLighting(const bool &value) 00306 { 00307 _sfTwoSidedLighting.setValue(value); 00308 } 00309 00311 inline 00312 bool &RenderOptionsBase::getSpecTexLighting(void) 00313 { 00314 return _sfSpecTexLighting.getValue(); 00315 } 00316 00318 inline 00319 const bool &RenderOptionsBase::getSpecTexLighting(void) const 00320 { 00321 return _sfSpecTexLighting.getValue(); 00322 } 00323 00325 inline 00326 void RenderOptionsBase::setSpecTexLighting(const bool &value) 00327 { 00328 _sfSpecTexLighting.setValue(value); 00329 } 00330 00332 inline 00333 bool &RenderOptionsBase::getSortTrans(void) 00334 { 00335 return _sfSortTrans.getValue(); 00336 } 00337 00339 inline 00340 const bool &RenderOptionsBase::getSortTrans(void) const 00341 { 00342 return _sfSortTrans.getValue(); 00343 } 00344 00346 inline 00347 void RenderOptionsBase::setSortTrans(const bool &value) 00348 { 00349 _sfSortTrans.setValue(value); 00350 } 00351 00353 inline 00354 bool &RenderOptionsBase::getZWriteTrans(void) 00355 { 00356 return _sfZWriteTrans.getValue(); 00357 } 00358 00360 inline 00361 const bool &RenderOptionsBase::getZWriteTrans(void) const 00362 { 00363 return _sfZWriteTrans.getValue(); 00364 } 00365 00367 inline 00368 void RenderOptionsBase::setZWriteTrans(const bool &value) 00369 { 00370 _sfZWriteTrans.setValue(value); 00371 } 00372 00374 inline 00375 bool &RenderOptionsBase::getLocalLights(void) 00376 { 00377 return _sfLocalLights.getValue(); 00378 } 00379 00381 inline 00382 const bool &RenderOptionsBase::getLocalLights(void) const 00383 { 00384 return _sfLocalLights.getValue(); 00385 } 00386 00388 inline 00389 void RenderOptionsBase::setLocalLights(const bool &value) 00390 { 00391 _sfLocalLights.setValue(value); 00392 } 00393 00395 inline 00396 bool &RenderOptionsBase::getCorrectTwoSidedLighting(void) 00397 { 00398 return _sfCorrectTwoSidedLighting.getValue(); 00399 } 00400 00402 inline 00403 const bool &RenderOptionsBase::getCorrectTwoSidedLighting(void) const 00404 { 00405 return _sfCorrectTwoSidedLighting.getValue(); 00406 } 00407 00409 inline 00410 void RenderOptionsBase::setCorrectTwoSidedLighting(const bool &value) 00411 { 00412 _sfCorrectTwoSidedLighting.setValue(value); 00413 } 00414 00416 inline 00417 bool &RenderOptionsBase::getOcclusionCulling(void) 00418 { 00419 return _sfOcclusionCulling.getValue(); 00420 } 00421 00423 inline 00424 const bool &RenderOptionsBase::getOcclusionCulling(void) const 00425 { 00426 return _sfOcclusionCulling.getValue(); 00427 } 00428 00430 inline 00431 void RenderOptionsBase::setOcclusionCulling(const bool &value) 00432 { 00433 _sfOcclusionCulling.setValue(value); 00434 } 00435 00437 inline 00438 Int32 &RenderOptionsBase::getOcclusionCullingMode(void) 00439 { 00440 return _sfOcclusionCullingMode.getValue(); 00441 } 00442 00444 inline 00445 const Int32 &RenderOptionsBase::getOcclusionCullingMode(void) const 00446 { 00447 return _sfOcclusionCullingMode.getValue(); 00448 } 00449 00451 inline 00452 void RenderOptionsBase::setOcclusionCullingMode(const Int32 &value) 00453 { 00454 _sfOcclusionCullingMode.setValue(value); 00455 } 00456 00458 inline 00459 UInt32 &RenderOptionsBase::getOcclusionCullingPixels(void) 00460 { 00461 return _sfOcclusionCullingPixels.getValue(); 00462 } 00463 00465 inline 00466 const UInt32 &RenderOptionsBase::getOcclusionCullingPixels(void) const 00467 { 00468 return _sfOcclusionCullingPixels.getValue(); 00469 } 00470 00472 inline 00473 void RenderOptionsBase::setOcclusionCullingPixels(const UInt32 &value) 00474 { 00475 _sfOcclusionCullingPixels.setValue(value); 00476 } 00477 00479 inline 00480 bool &RenderOptionsBase::getAntialiasing(void) 00481 { 00482 return _sfAntialiasing.getValue(); 00483 } 00484 00486 inline 00487 const bool &RenderOptionsBase::getAntialiasing(void) const 00488 { 00489 return _sfAntialiasing.getValue(); 00490 } 00491 00493 inline 00494 void RenderOptionsBase::setAntialiasing(const bool &value) 00495 { 00496 _sfAntialiasing.setValue(value); 00497 } 00498 00500 inline 00501 Real32 &RenderOptionsBase::getAntialiasingDistance(void) 00502 { 00503 return _sfAntialiasingDistance.getValue(); 00504 } 00505 00507 inline 00508 const Real32 &RenderOptionsBase::getAntialiasingDistance(void) const 00509 { 00510 return _sfAntialiasingDistance.getValue(); 00511 } 00512 00514 inline 00515 void RenderOptionsBase::setAntialiasingDistance(const Real32 &value) 00516 { 00517 _sfAntialiasingDistance.setValue(value); 00518 } 00519 00521 inline 00522 Real32 &RenderOptionsBase::getAntialiasingScale(void) 00523 { 00524 return _sfAntialiasingScale.getValue(); 00525 } 00526 00528 inline 00529 const Real32 &RenderOptionsBase::getAntialiasingScale(void) const 00530 { 00531 return _sfAntialiasingScale.getValue(); 00532 } 00533 00535 inline 00536 void RenderOptionsBase::setAntialiasingScale(const Real32 &value) 00537 { 00538 _sfAntialiasingScale.setValue(value); 00539 } 00540 00542 inline 00543 UInt32 &RenderOptionsBase::getAntialiasingTrigger(void) 00544 { 00545 return _sfAntialiasingTrigger.getValue(); 00546 } 00547 00549 inline 00550 const UInt32 &RenderOptionsBase::getAntialiasingTrigger(void) const 00551 { 00552 return _sfAntialiasingTrigger.getValue(); 00553 } 00554 00556 inline 00557 void RenderOptionsBase::setAntialiasingTrigger(const UInt32 &value) 00558 { 00559 _sfAntialiasingTrigger.setValue(value); 00560 } 00561 00563 inline 00564 bool &RenderOptionsBase::getFrustumCulling(void) 00565 { 00566 return _sfFrustumCulling.getValue(); 00567 } 00568 00570 inline 00571 const bool &RenderOptionsBase::getFrustumCulling(void) const 00572 { 00573 return _sfFrustumCulling.getValue(); 00574 } 00575 00577 inline 00578 void RenderOptionsBase::setFrustumCulling(const bool &value) 00579 { 00580 _sfFrustumCulling.setValue(value); 00581 } 00582 00584 inline 00585 bool &RenderOptionsBase::getBackfaceCulling(void) 00586 { 00587 return _sfBackfaceCulling.getValue(); 00588 } 00589 00591 inline 00592 const bool &RenderOptionsBase::getBackfaceCulling(void) const 00593 { 00594 return _sfBackfaceCulling.getValue(); 00595 } 00596 00598 inline 00599 void RenderOptionsBase::setBackfaceCulling(const bool &value) 00600 { 00601 _sfBackfaceCulling.setValue(value); 00602 } 00603 00605 inline 00606 bool &RenderOptionsBase::getSmallFeatureCulling(void) 00607 { 00608 return _sfSmallFeatureCulling.getValue(); 00609 } 00610 00612 inline 00613 const bool &RenderOptionsBase::getSmallFeatureCulling(void) const 00614 { 00615 return _sfSmallFeatureCulling.getValue(); 00616 } 00617 00619 inline 00620 void RenderOptionsBase::setSmallFeatureCulling(const bool &value) 00621 { 00622 _sfSmallFeatureCulling.setValue(value); 00623 } 00624 00626 inline 00627 Real32 &RenderOptionsBase::getSmallFeaturePixels(void) 00628 { 00629 return _sfSmallFeaturePixels.getValue(); 00630 } 00631 00633 inline 00634 const Real32 &RenderOptionsBase::getSmallFeaturePixels(void) const 00635 { 00636 return _sfSmallFeaturePixels.getValue(); 00637 } 00638 00640 inline 00641 void RenderOptionsBase::setSmallFeaturePixels(const Real32 &value) 00642 { 00643 _sfSmallFeaturePixels.setValue(value); 00644 } 00645 00647 inline 00648 UInt32 &RenderOptionsBase::getSmallFeatureThreshold(void) 00649 { 00650 return _sfSmallFeatureThreshold.getValue(); 00651 } 00652 00654 inline 00655 const UInt32 &RenderOptionsBase::getSmallFeatureThreshold(void) const 00656 { 00657 return _sfSmallFeatureThreshold.getValue(); 00658 } 00659 00661 inline 00662 void RenderOptionsBase::setSmallFeatureThreshold(const UInt32 &value) 00663 { 00664 _sfSmallFeatureThreshold.setValue(value); 00665 } 00666 00668 inline 00669 bool &RenderOptionsBase::getFirstFrame(void) 00670 { 00671 return _sfFirstFrame.getValue(); 00672 } 00673 00675 inline 00676 const bool &RenderOptionsBase::getFirstFrame(void) const 00677 { 00678 return _sfFirstFrame.getValue(); 00679 } 00680 00682 inline 00683 void RenderOptionsBase::setFirstFrame(const bool &value) 00684 { 00685 _sfFirstFrame.setValue(value); 00686 } 00687 00688 00689 OSG_END_NAMESPACE 00690 00691 #define OSGRENDEROPTIONSBASE_INLINE_CVSID "@(#)$Id: OSGRenderOptionsBase.inl,v 1.7 2007/07/03 09:16:10 yjung Exp $" 00692
1.5.5