1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
13 * This library is free software; you can redistribute it and/or modify it *
14 * under the terms of the GNU Library General Public License as published *
15 * by the Free Software Foundation, version 2. *
17 * This library is distributed in the hope that it will be useful, but *
18 * WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20 * Library General Public License for more details. *
22 * You should have received a copy of the GNU Library General Public *
23 * License along with this library; if not, write to the Free Software *
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38 *****************************************************************************
40 ** This file is automatically generated. **
42 ** Any changes made to this file WILL be lost when it is **
43 ** regenerated, which can become necessary at any time. **
45 ** Do not change this file, changes should be done in the derived **
46 ** class RenderOptions!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &RenderOptionsBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 RenderOptionsBase::getClassTypeId(void)
70 OSG::UInt16 RenderOptionsBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the RenderOptions::_sfRenderProperties field.
80 MaterialMapKey &RenderOptionsBase::editRenderProperties(void)
82 editSField(RenderPropertiesFieldMask);
84 return _sfRenderProperties.getValue();
87 //! Get the value of the RenderOptions::_sfRenderProperties field.
89 const MaterialMapKey &RenderOptionsBase::getRenderProperties(void) const
91 return _sfRenderProperties.getValue();
94 //! Set the value of the RenderOptions::_sfRenderProperties field.
96 void RenderOptionsBase::setRenderProperties(const MaterialMapKey &value)
98 editSField(RenderPropertiesFieldMask);
100 _sfRenderProperties.setValue(value);
102 //! Get the value of the RenderOptions::_sfUseGLFinish field.
105 bool &RenderOptionsBase::editUseGLFinish(void)
107 editSField(UseGLFinishFieldMask);
109 return _sfUseGLFinish.getValue();
112 //! Get the value of the RenderOptions::_sfUseGLFinish field.
114 bool RenderOptionsBase::getUseGLFinish(void) const
116 return _sfUseGLFinish.getValue();
119 //! Set the value of the RenderOptions::_sfUseGLFinish field.
121 void RenderOptionsBase::setUseGLFinish(const bool value)
123 editSField(UseGLFinishFieldMask);
125 _sfUseGLFinish.setValue(value);
127 //! Get the value of the RenderOptions::_sfStatistic field.
130 bool &RenderOptionsBase::editStatistic(void)
132 editSField(StatisticFieldMask);
134 return _sfStatistic.getValue();
137 //! Get the value of the RenderOptions::_sfStatistic field.
139 bool RenderOptionsBase::getStatistic(void) const
141 return _sfStatistic.getValue();
144 //! Set the value of the RenderOptions::_sfStatistic field.
146 void RenderOptionsBase::setStatistic(const bool value)
148 editSField(StatisticFieldMask);
150 _sfStatistic.setValue(value);
152 //! Get the value of the RenderOptions::_sfPolygonMode field.
155 GLenum &RenderOptionsBase::editPolygonMode(void)
157 editSField(PolygonModeFieldMask);
159 return _sfPolygonMode.getValue();
162 //! Get the value of the RenderOptions::_sfPolygonMode field.
164 const GLenum &RenderOptionsBase::getPolygonMode(void) const
166 return _sfPolygonMode.getValue();
169 //! Set the value of the RenderOptions::_sfPolygonMode field.
171 void RenderOptionsBase::setPolygonMode(const GLenum &value)
173 editSField(PolygonModeFieldMask);
175 _sfPolygonMode.setValue(value);
177 //! Get the value of the RenderOptions::_sfTwoSidedLighting field.
180 bool &RenderOptionsBase::editTwoSidedLighting(void)
182 editSField(TwoSidedLightingFieldMask);
184 return _sfTwoSidedLighting.getValue();
187 //! Get the value of the RenderOptions::_sfTwoSidedLighting field.
189 bool RenderOptionsBase::getTwoSidedLighting(void) const
191 return _sfTwoSidedLighting.getValue();
194 //! Set the value of the RenderOptions::_sfTwoSidedLighting field.
196 void RenderOptionsBase::setTwoSidedLighting(const bool value)
198 editSField(TwoSidedLightingFieldMask);
200 _sfTwoSidedLighting.setValue(value);
202 //! Get the value of the RenderOptions::_sfSpecTexLighting field.
205 bool &RenderOptionsBase::editSpecTexLighting(void)
207 editSField(SpecTexLightingFieldMask);
209 return _sfSpecTexLighting.getValue();
212 //! Get the value of the RenderOptions::_sfSpecTexLighting field.
214 bool RenderOptionsBase::getSpecTexLighting(void) const
216 return _sfSpecTexLighting.getValue();
219 //! Set the value of the RenderOptions::_sfSpecTexLighting field.
221 void RenderOptionsBase::setSpecTexLighting(const bool value)
223 editSField(SpecTexLightingFieldMask);
225 _sfSpecTexLighting.setValue(value);
227 //! Get the value of the RenderOptions::_sfSortTrans field.
230 bool &RenderOptionsBase::editSortTrans(void)
232 editSField(SortTransFieldMask);
234 return _sfSortTrans.getValue();
237 //! Get the value of the RenderOptions::_sfSortTrans field.
239 bool RenderOptionsBase::getSortTrans(void) const
241 return _sfSortTrans.getValue();
244 //! Set the value of the RenderOptions::_sfSortTrans field.
246 void RenderOptionsBase::setSortTrans(const bool value)
248 editSField(SortTransFieldMask);
250 _sfSortTrans.setValue(value);
252 //! Get the value of the RenderOptions::_sfZWriteTrans field.
255 bool &RenderOptionsBase::editZWriteTrans(void)
257 editSField(ZWriteTransFieldMask);
259 return _sfZWriteTrans.getValue();
262 //! Get the value of the RenderOptions::_sfZWriteTrans field.
264 bool RenderOptionsBase::getZWriteTrans(void) const
266 return _sfZWriteTrans.getValue();
269 //! Set the value of the RenderOptions::_sfZWriteTrans field.
271 void RenderOptionsBase::setZWriteTrans(const bool value)
273 editSField(ZWriteTransFieldMask);
275 _sfZWriteTrans.setValue(value);
277 //! Get the value of the RenderOptions::_sfLocalLights field.
280 bool &RenderOptionsBase::editLocalLights(void)
282 editSField(LocalLightsFieldMask);
284 return _sfLocalLights.getValue();
287 //! Get the value of the RenderOptions::_sfLocalLights field.
289 bool RenderOptionsBase::getLocalLights(void) const
291 return _sfLocalLights.getValue();
294 //! Set the value of the RenderOptions::_sfLocalLights field.
296 void RenderOptionsBase::setLocalLights(const bool value)
298 editSField(LocalLightsFieldMask);
300 _sfLocalLights.setValue(value);
302 //! Get the value of the RenderOptions::_sfCorrectTwoSidedLighting field.
305 bool &RenderOptionsBase::editCorrectTwoSidedLighting(void)
307 editSField(CorrectTwoSidedLightingFieldMask);
309 return _sfCorrectTwoSidedLighting.getValue();
312 //! Get the value of the RenderOptions::_sfCorrectTwoSidedLighting field.
314 bool RenderOptionsBase::getCorrectTwoSidedLighting(void) const
316 return _sfCorrectTwoSidedLighting.getValue();
319 //! Set the value of the RenderOptions::_sfCorrectTwoSidedLighting field.
321 void RenderOptionsBase::setCorrectTwoSidedLighting(const bool value)
323 editSField(CorrectTwoSidedLightingFieldMask);
325 _sfCorrectTwoSidedLighting.setValue(value);
327 //! Get the value of the RenderOptions::_sfOcclusionCulling field.
330 bool &RenderOptionsBase::editOcclusionCulling(void)
332 editSField(OcclusionCullingFieldMask);
334 return _sfOcclusionCulling.getValue();
337 //! Get the value of the RenderOptions::_sfOcclusionCulling field.
339 bool RenderOptionsBase::getOcclusionCulling(void) const
341 return _sfOcclusionCulling.getValue();
344 //! Set the value of the RenderOptions::_sfOcclusionCulling field.
346 void RenderOptionsBase::setOcclusionCulling(const bool value)
348 editSField(OcclusionCullingFieldMask);
350 _sfOcclusionCulling.setValue(value);
352 //! Get the value of the RenderOptions::_sfOcclusionCullingMode field.
355 Int32 &RenderOptionsBase::editOcclusionCullingMode(void)
357 editSField(OcclusionCullingModeFieldMask);
359 return _sfOcclusionCullingMode.getValue();
362 //! Get the value of the RenderOptions::_sfOcclusionCullingMode field.
364 Int32 RenderOptionsBase::getOcclusionCullingMode(void) const
366 return _sfOcclusionCullingMode.getValue();
369 //! Set the value of the RenderOptions::_sfOcclusionCullingMode field.
371 void RenderOptionsBase::setOcclusionCullingMode(const Int32 value)
373 editSField(OcclusionCullingModeFieldMask);
375 _sfOcclusionCullingMode.setValue(value);
377 //! Get the value of the RenderOptions::_sfOcclusionCullingPixels field.
380 UInt32 &RenderOptionsBase::editOcclusionCullingPixels(void)
382 editSField(OcclusionCullingPixelsFieldMask);
384 return _sfOcclusionCullingPixels.getValue();
387 //! Get the value of the RenderOptions::_sfOcclusionCullingPixels field.
389 UInt32 RenderOptionsBase::getOcclusionCullingPixels(void) const
391 return _sfOcclusionCullingPixels.getValue();
394 //! Set the value of the RenderOptions::_sfOcclusionCullingPixels field.
396 void RenderOptionsBase::setOcclusionCullingPixels(const UInt32 value)
398 editSField(OcclusionCullingPixelsFieldMask);
400 _sfOcclusionCullingPixels.setValue(value);
402 //! Get the value of the RenderOptions::_sfAntialiasing field.
405 bool &RenderOptionsBase::editAntialiasing(void)
407 editSField(AntialiasingFieldMask);
409 return _sfAntialiasing.getValue();
412 //! Get the value of the RenderOptions::_sfAntialiasing field.
414 bool RenderOptionsBase::getAntialiasing(void) const
416 return _sfAntialiasing.getValue();
419 //! Set the value of the RenderOptions::_sfAntialiasing field.
421 void RenderOptionsBase::setAntialiasing(const bool value)
423 editSField(AntialiasingFieldMask);
425 _sfAntialiasing.setValue(value);
427 //! Get the value of the RenderOptions::_sfAntialiasingDistance field.
430 Real32 &RenderOptionsBase::editAntialiasingDistance(void)
432 editSField(AntialiasingDistanceFieldMask);
434 return _sfAntialiasingDistance.getValue();
437 //! Get the value of the RenderOptions::_sfAntialiasingDistance field.
439 Real32 RenderOptionsBase::getAntialiasingDistance(void) const
441 return _sfAntialiasingDistance.getValue();
444 //! Set the value of the RenderOptions::_sfAntialiasingDistance field.
446 void RenderOptionsBase::setAntialiasingDistance(const Real32 value)
448 editSField(AntialiasingDistanceFieldMask);
450 _sfAntialiasingDistance.setValue(value);
452 //! Get the value of the RenderOptions::_sfAntialiasingScale field.
455 Real32 &RenderOptionsBase::editAntialiasingScale(void)
457 editSField(AntialiasingScaleFieldMask);
459 return _sfAntialiasingScale.getValue();
462 //! Get the value of the RenderOptions::_sfAntialiasingScale field.
464 Real32 RenderOptionsBase::getAntialiasingScale(void) const
466 return _sfAntialiasingScale.getValue();
469 //! Set the value of the RenderOptions::_sfAntialiasingScale field.
471 void RenderOptionsBase::setAntialiasingScale(const Real32 value)
473 editSField(AntialiasingScaleFieldMask);
475 _sfAntialiasingScale.setValue(value);
477 //! Get the value of the RenderOptions::_sfAntialiasingTrigger field.
480 UInt32 &RenderOptionsBase::editAntialiasingTrigger(void)
482 editSField(AntialiasingTriggerFieldMask);
484 return _sfAntialiasingTrigger.getValue();
487 //! Get the value of the RenderOptions::_sfAntialiasingTrigger field.
489 UInt32 RenderOptionsBase::getAntialiasingTrigger(void) const
491 return _sfAntialiasingTrigger.getValue();
494 //! Set the value of the RenderOptions::_sfAntialiasingTrigger field.
496 void RenderOptionsBase::setAntialiasingTrigger(const UInt32 value)
498 editSField(AntialiasingTriggerFieldMask);
500 _sfAntialiasingTrigger.setValue(value);
502 //! Get the value of the RenderOptions::_sfFrustumCulling field.
505 bool &RenderOptionsBase::editFrustumCulling(void)
507 editSField(FrustumCullingFieldMask);
509 return _sfFrustumCulling.getValue();
512 //! Get the value of the RenderOptions::_sfFrustumCulling field.
514 bool RenderOptionsBase::getFrustumCulling(void) const
516 return _sfFrustumCulling.getValue();
519 //! Set the value of the RenderOptions::_sfFrustumCulling field.
521 void RenderOptionsBase::setFrustumCulling(const bool value)
523 editSField(FrustumCullingFieldMask);
525 _sfFrustumCulling.setValue(value);
527 //! Get the value of the RenderOptions::_sfBackfaceCulling field.
530 bool &RenderOptionsBase::editBackfaceCulling(void)
532 editSField(BackfaceCullingFieldMask);
534 return _sfBackfaceCulling.getValue();
537 //! Get the value of the RenderOptions::_sfBackfaceCulling field.
539 bool RenderOptionsBase::getBackfaceCulling(void) const
541 return _sfBackfaceCulling.getValue();
544 //! Set the value of the RenderOptions::_sfBackfaceCulling field.
546 void RenderOptionsBase::setBackfaceCulling(const bool value)
548 editSField(BackfaceCullingFieldMask);
550 _sfBackfaceCulling.setValue(value);
552 //! Get the value of the RenderOptions::_sfSmallFeatureCulling field.
555 bool &RenderOptionsBase::editSmallFeatureCulling(void)
557 editSField(SmallFeatureCullingFieldMask);
559 return _sfSmallFeatureCulling.getValue();
562 //! Get the value of the RenderOptions::_sfSmallFeatureCulling field.
564 bool RenderOptionsBase::getSmallFeatureCulling(void) const
566 return _sfSmallFeatureCulling.getValue();
569 //! Set the value of the RenderOptions::_sfSmallFeatureCulling field.
571 void RenderOptionsBase::setSmallFeatureCulling(const bool value)
573 editSField(SmallFeatureCullingFieldMask);
575 _sfSmallFeatureCulling.setValue(value);
577 //! Get the value of the RenderOptions::_sfSmallFeaturePixels field.
580 Real32 &RenderOptionsBase::editSmallFeaturePixels(void)
582 editSField(SmallFeaturePixelsFieldMask);
584 return _sfSmallFeaturePixels.getValue();
587 //! Get the value of the RenderOptions::_sfSmallFeaturePixels field.
589 Real32 RenderOptionsBase::getSmallFeaturePixels(void) const
591 return _sfSmallFeaturePixels.getValue();
594 //! Set the value of the RenderOptions::_sfSmallFeaturePixels field.
596 void RenderOptionsBase::setSmallFeaturePixels(const Real32 value)
598 editSField(SmallFeaturePixelsFieldMask);
600 _sfSmallFeaturePixels.setValue(value);
602 //! Get the value of the RenderOptions::_sfSmallFeatureThreshold field.
605 UInt32 &RenderOptionsBase::editSmallFeatureThreshold(void)
607 editSField(SmallFeatureThresholdFieldMask);
609 return _sfSmallFeatureThreshold.getValue();
612 //! Get the value of the RenderOptions::_sfSmallFeatureThreshold field.
614 UInt32 RenderOptionsBase::getSmallFeatureThreshold(void) const
616 return _sfSmallFeatureThreshold.getValue();
619 //! Set the value of the RenderOptions::_sfSmallFeatureThreshold field.
621 void RenderOptionsBase::setSmallFeatureThreshold(const UInt32 value)
623 editSField(SmallFeatureThresholdFieldMask);
625 _sfSmallFeatureThreshold.setValue(value);
627 //! Get the value of the RenderOptions::_sfFirstFrame field.
630 bool &RenderOptionsBase::editFirstFrame(void)
632 editSField(FirstFrameFieldMask);
634 return _sfFirstFrame.getValue();
637 //! Get the value of the RenderOptions::_sfFirstFrame field.
639 bool RenderOptionsBase::getFirstFrame(void) const
641 return _sfFirstFrame.getValue();
644 //! Set the value of the RenderOptions::_sfFirstFrame field.
646 void RenderOptionsBase::setFirstFrame(const bool value)
648 editSField(FirstFrameFieldMask);
650 _sfFirstFrame.setValue(value);
652 //! Get the value of the RenderOptions::_sfDepthOnlyPass field.
655 bool &RenderOptionsBase::editDepthOnlyPass(void)
657 editSField(DepthOnlyPassFieldMask);
659 return _sfDepthOnlyPass.getValue();
662 //! Get the value of the RenderOptions::_sfDepthOnlyPass field.
664 bool RenderOptionsBase::getDepthOnlyPass(void) const
666 return _sfDepthOnlyPass.getValue();
669 //! Set the value of the RenderOptions::_sfDepthOnlyPass field.
671 void RenderOptionsBase::setDepthOnlyPass(const bool value)
673 editSField(DepthOnlyPassFieldMask);
675 _sfDepthOnlyPass.setValue(value);
677 //! Get the value of the RenderOptions::_sfLightModelAmbient field.
680 Color4f &RenderOptionsBase::editLightModelAmbient(void)
682 editSField(LightModelAmbientFieldMask);
684 return _sfLightModelAmbient.getValue();
687 //! Get the value of the RenderOptions::_sfLightModelAmbient field.
689 const Color4f &RenderOptionsBase::getLightModelAmbient(void) const
691 return _sfLightModelAmbient.getValue();
694 //! Set the value of the RenderOptions::_sfLightModelAmbient field.
696 void RenderOptionsBase::setLightModelAmbient(const Color4f &value)
698 editSField(LightModelAmbientFieldMask);
700 _sfLightModelAmbient.setValue(value);
702 //! Get the value of the RenderOptions::_sfFogColor field.
705 Color4f &RenderOptionsBase::editFogColor(void)
707 editSField(FogColorFieldMask);
709 return _sfFogColor.getValue();
712 //! Get the value of the RenderOptions::_sfFogColor field.
714 const Color4f &RenderOptionsBase::getFogColor(void) const
716 return _sfFogColor.getValue();
719 //! Set the value of the RenderOptions::_sfFogColor field.
721 void RenderOptionsBase::setFogColor(const Color4f &value)
723 editSField(FogColorFieldMask);
725 _sfFogColor.setValue(value);
727 //! Get the value of the RenderOptions::_sfFogRange field.
730 Vec2f &RenderOptionsBase::editFogRange(void)
732 editSField(FogRangeFieldMask);
734 return _sfFogRange.getValue();
737 //! Get the value of the RenderOptions::_sfFogRange field.
739 const Vec2f &RenderOptionsBase::getFogRange(void) const
741 return _sfFogRange.getValue();
744 //! Set the value of the RenderOptions::_sfFogRange field.
746 void RenderOptionsBase::setFogRange(const Vec2f &value)
748 editSField(FogRangeFieldMask);
750 _sfFogRange.setValue(value);
752 //! Get the value of the RenderOptions::_sfFogDensity field.
755 Real32 &RenderOptionsBase::editFogDensity(void)
757 editSField(FogDensityFieldMask);
759 return _sfFogDensity.getValue();
762 //! Get the value of the RenderOptions::_sfFogDensity field.
764 Real32 RenderOptionsBase::getFogDensity(void) const
766 return _sfFogDensity.getValue();
769 //! Set the value of the RenderOptions::_sfFogDensity field.
771 void RenderOptionsBase::setFogDensity(const Real32 value)
773 editSField(FogDensityFieldMask);
775 _sfFogDensity.setValue(value);
777 //! Get the value of the RenderOptions::_sfFogMode field.
780 Int32 &RenderOptionsBase::editFogMode(void)
782 editSField(FogModeFieldMask);
784 return _sfFogMode.getValue();
787 //! Get the value of the RenderOptions::_sfFogMode field.
789 Int32 RenderOptionsBase::getFogMode(void) const
791 return _sfFogMode.getValue();
794 //! Set the value of the RenderOptions::_sfFogMode field.
796 void RenderOptionsBase::setFogMode(const Int32 value)
798 editSField(FogModeFieldMask);
800 _sfFogMode.setValue(value);
802 //! Get the value of the RenderOptions::_sfMultiSample field.
805 UInt32 &RenderOptionsBase::editMultiSample(void)
807 editSField(MultiSampleFieldMask);
809 return _sfMultiSample.getValue();
812 //! Get the value of the RenderOptions::_sfMultiSample field.
814 UInt32 RenderOptionsBase::getMultiSample(void) const
816 return _sfMultiSample.getValue();
819 //! Set the value of the RenderOptions::_sfMultiSample field.
821 void RenderOptionsBase::setMultiSample(const UInt32 value)
823 editSField(MultiSampleFieldMask);
825 _sfMultiSample.setValue(value);
827 //! Get the value of the RenderOptions::_sfMultiSampleFilterMode field.
830 UInt32 &RenderOptionsBase::editMultiSampleFilterMode(void)
832 editSField(MultiSampleFilterModeFieldMask);
834 return _sfMultiSampleFilterMode.getValue();
837 //! Get the value of the RenderOptions::_sfMultiSampleFilterMode field.
839 UInt32 RenderOptionsBase::getMultiSampleFilterMode(void) const
841 return _sfMultiSampleFilterMode.getValue();
844 //! Set the value of the RenderOptions::_sfMultiSampleFilterMode field.
846 void RenderOptionsBase::setMultiSampleFilterMode(const UInt32 value)
848 editSField(MultiSampleFilterModeFieldMask);
850 _sfMultiSampleFilterMode.setValue(value);
854 #ifdef OSG_MT_CPTR_ASPECT
856 void RenderOptionsBase::execSync ( RenderOptionsBase *pFrom,
857 ConstFieldMaskArg whichField,
858 AspectOffsetStore &oOffsets,
859 ConstFieldMaskArg syncMode,
860 const UInt32 uiSyncInfo)
862 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
864 if(FieldBits::NoField != (RenderPropertiesFieldMask & whichField))
865 _sfRenderProperties.syncWith(pFrom->_sfRenderProperties);
867 if(FieldBits::NoField != (UseGLFinishFieldMask & whichField))
868 _sfUseGLFinish.syncWith(pFrom->_sfUseGLFinish);
870 if(FieldBits::NoField != (StatisticFieldMask & whichField))
871 _sfStatistic.syncWith(pFrom->_sfStatistic);
873 if(FieldBits::NoField != (PolygonModeFieldMask & whichField))
874 _sfPolygonMode.syncWith(pFrom->_sfPolygonMode);
876 if(FieldBits::NoField != (TwoSidedLightingFieldMask & whichField))
877 _sfTwoSidedLighting.syncWith(pFrom->_sfTwoSidedLighting);
879 if(FieldBits::NoField != (SpecTexLightingFieldMask & whichField))
880 _sfSpecTexLighting.syncWith(pFrom->_sfSpecTexLighting);
882 if(FieldBits::NoField != (SortTransFieldMask & whichField))
883 _sfSortTrans.syncWith(pFrom->_sfSortTrans);
885 if(FieldBits::NoField != (ZWriteTransFieldMask & whichField))
886 _sfZWriteTrans.syncWith(pFrom->_sfZWriteTrans);
888 if(FieldBits::NoField != (LocalLightsFieldMask & whichField))
889 _sfLocalLights.syncWith(pFrom->_sfLocalLights);
891 if(FieldBits::NoField != (CorrectTwoSidedLightingFieldMask & whichField))
892 _sfCorrectTwoSidedLighting.syncWith(pFrom->_sfCorrectTwoSidedLighting);
894 if(FieldBits::NoField != (OcclusionCullingFieldMask & whichField))
895 _sfOcclusionCulling.syncWith(pFrom->_sfOcclusionCulling);
897 if(FieldBits::NoField != (OcclusionCullingModeFieldMask & whichField))
898 _sfOcclusionCullingMode.syncWith(pFrom->_sfOcclusionCullingMode);
900 if(FieldBits::NoField != (OcclusionCullingPixelsFieldMask & whichField))
901 _sfOcclusionCullingPixels.syncWith(pFrom->_sfOcclusionCullingPixels);
903 if(FieldBits::NoField != (AntialiasingFieldMask & whichField))
904 _sfAntialiasing.syncWith(pFrom->_sfAntialiasing);
906 if(FieldBits::NoField != (AntialiasingDistanceFieldMask & whichField))
907 _sfAntialiasingDistance.syncWith(pFrom->_sfAntialiasingDistance);
909 if(FieldBits::NoField != (AntialiasingScaleFieldMask & whichField))
910 _sfAntialiasingScale.syncWith(pFrom->_sfAntialiasingScale);
912 if(FieldBits::NoField != (AntialiasingTriggerFieldMask & whichField))
913 _sfAntialiasingTrigger.syncWith(pFrom->_sfAntialiasingTrigger);
915 if(FieldBits::NoField != (FrustumCullingFieldMask & whichField))
916 _sfFrustumCulling.syncWith(pFrom->_sfFrustumCulling);
918 if(FieldBits::NoField != (BackfaceCullingFieldMask & whichField))
919 _sfBackfaceCulling.syncWith(pFrom->_sfBackfaceCulling);
921 if(FieldBits::NoField != (SmallFeatureCullingFieldMask & whichField))
922 _sfSmallFeatureCulling.syncWith(pFrom->_sfSmallFeatureCulling);
924 if(FieldBits::NoField != (SmallFeaturePixelsFieldMask & whichField))
925 _sfSmallFeaturePixels.syncWith(pFrom->_sfSmallFeaturePixels);
927 if(FieldBits::NoField != (SmallFeatureThresholdFieldMask & whichField))
928 _sfSmallFeatureThreshold.syncWith(pFrom->_sfSmallFeatureThreshold);
930 if(FieldBits::NoField != (FirstFrameFieldMask & whichField))
931 _sfFirstFrame.syncWith(pFrom->_sfFirstFrame);
933 if(FieldBits::NoField != (DepthOnlyPassFieldMask & whichField))
934 _sfDepthOnlyPass.syncWith(pFrom->_sfDepthOnlyPass);
936 if(FieldBits::NoField != (LightModelAmbientFieldMask & whichField))
937 _sfLightModelAmbient.syncWith(pFrom->_sfLightModelAmbient);
939 if(FieldBits::NoField != (FogColorFieldMask & whichField))
940 _sfFogColor.syncWith(pFrom->_sfFogColor);
942 if(FieldBits::NoField != (FogRangeFieldMask & whichField))
943 _sfFogRange.syncWith(pFrom->_sfFogRange);
945 if(FieldBits::NoField != (FogDensityFieldMask & whichField))
946 _sfFogDensity.syncWith(pFrom->_sfFogDensity);
948 if(FieldBits::NoField != (FogModeFieldMask & whichField))
949 _sfFogMode.syncWith(pFrom->_sfFogMode);
951 if(FieldBits::NoField != (MultiSampleFieldMask & whichField))
952 _sfMultiSample.syncWith(pFrom->_sfMultiSample);
954 if(FieldBits::NoField != (MultiSampleFilterModeFieldMask & whichField))
955 _sfMultiSampleFilterMode.syncWith(pFrom->_sfMultiSampleFilterMode);
961 const Char8 *RenderOptionsBase::getClassname(void)
963 return "RenderOptions";
965 OSG_GEN_CONTAINERPTR(RenderOptions);