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 MultiLightChunk!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &MultiLightChunkBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 MultiLightChunkBase::getClassTypeId(void)
70 OSG::UInt16 MultiLightChunkBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the MultiLightChunk::_sfHasWorldToLightSpaceMatrix field.
80 bool &MultiLightChunkBase::editHasWorldToLightSpaceMatrix(void)
82 editSField(HasWorldToLightSpaceMatrixFieldMask);
84 return _sfHasWorldToLightSpaceMatrix.getValue();
87 //! Get the value of the MultiLightChunk::_sfHasWorldToLightSpaceMatrix field.
89 bool MultiLightChunkBase::getHasWorldToLightSpaceMatrix(void) const
91 return _sfHasWorldToLightSpaceMatrix.getValue();
94 //! Set the value of the MultiLightChunk::_sfHasWorldToLightSpaceMatrix field.
96 void MultiLightChunkBase::setHasWorldToLightSpaceMatrix(const bool value)
98 editSField(HasWorldToLightSpaceMatrixFieldMask);
100 _sfHasWorldToLightSpaceMatrix.setValue(value);
102 //! Get the value of the MultiLightChunk::_sfHasLightToWorldSpaceMatrix field.
105 bool &MultiLightChunkBase::editHasLightToWorldSpaceMatrix(void)
107 editSField(HasLightToWorldSpaceMatrixFieldMask);
109 return _sfHasLightToWorldSpaceMatrix.getValue();
112 //! Get the value of the MultiLightChunk::_sfHasLightToWorldSpaceMatrix field.
114 bool MultiLightChunkBase::getHasLightToWorldSpaceMatrix(void) const
116 return _sfHasLightToWorldSpaceMatrix.getValue();
119 //! Set the value of the MultiLightChunk::_sfHasLightToWorldSpaceMatrix field.
121 void MultiLightChunkBase::setHasLightToWorldSpaceMatrix(const bool value)
123 editSField(HasLightToWorldSpaceMatrixFieldMask);
125 _sfHasLightToWorldSpaceMatrix.setValue(value);
127 //! Get the value of the MultiLightChunk::_sfHasEyeToLightSpaceMatrix field.
130 bool &MultiLightChunkBase::editHasEyeToLightSpaceMatrix(void)
132 editSField(HasEyeToLightSpaceMatrixFieldMask);
134 return _sfHasEyeToLightSpaceMatrix.getValue();
137 //! Get the value of the MultiLightChunk::_sfHasEyeToLightSpaceMatrix field.
139 bool MultiLightChunkBase::getHasEyeToLightSpaceMatrix(void) const
141 return _sfHasEyeToLightSpaceMatrix.getValue();
144 //! Set the value of the MultiLightChunk::_sfHasEyeToLightSpaceMatrix field.
146 void MultiLightChunkBase::setHasEyeToLightSpaceMatrix(const bool value)
148 editSField(HasEyeToLightSpaceMatrixFieldMask);
150 _sfHasEyeToLightSpaceMatrix.setValue(value);
152 //! Get the value of the MultiLightChunk::_sfHasLightToEyeSpaceMatrix field.
155 bool &MultiLightChunkBase::editHasLightToEyeSpaceMatrix(void)
157 editSField(HasLightToEyeSpaceMatrixFieldMask);
159 return _sfHasLightToEyeSpaceMatrix.getValue();
162 //! Get the value of the MultiLightChunk::_sfHasLightToEyeSpaceMatrix field.
164 bool MultiLightChunkBase::getHasLightToEyeSpaceMatrix(void) const
166 return _sfHasLightToEyeSpaceMatrix.getValue();
169 //! Set the value of the MultiLightChunk::_sfHasLightToEyeSpaceMatrix field.
171 void MultiLightChunkBase::setHasLightToEyeSpaceMatrix(const bool value)
173 editSField(HasLightToEyeSpaceMatrixFieldMask);
175 _sfHasLightToEyeSpaceMatrix.setValue(value);
177 //! Get the value of the MultiLightChunk::_sfHasLightPerspectiveMatrix field.
180 bool &MultiLightChunkBase::editHasLightPerspectiveMatrix(void)
182 editSField(HasLightPerspectiveMatrixFieldMask);
184 return _sfHasLightPerspectiveMatrix.getValue();
187 //! Get the value of the MultiLightChunk::_sfHasLightPerspectiveMatrix field.
189 bool MultiLightChunkBase::getHasLightPerspectiveMatrix(void) const
191 return _sfHasLightPerspectiveMatrix.getValue();
194 //! Set the value of the MultiLightChunk::_sfHasLightPerspectiveMatrix field.
196 void MultiLightChunkBase::setHasLightPerspectiveMatrix(const bool value)
198 editSField(HasLightPerspectiveMatrixFieldMask);
200 _sfHasLightPerspectiveMatrix.setValue(value);
202 //! Get the value of the MultiLightChunk::_sfHasInvLightPerspectiveMatrix field.
205 bool &MultiLightChunkBase::editHasInvLightPerspectiveMatrix(void)
207 editSField(HasInvLightPerspectiveMatrixFieldMask);
209 return _sfHasInvLightPerspectiveMatrix.getValue();
212 //! Get the value of the MultiLightChunk::_sfHasInvLightPerspectiveMatrix field.
214 bool MultiLightChunkBase::getHasInvLightPerspectiveMatrix(void) const
216 return _sfHasInvLightPerspectiveMatrix.getValue();
219 //! Set the value of the MultiLightChunk::_sfHasInvLightPerspectiveMatrix field.
221 void MultiLightChunkBase::setHasInvLightPerspectiveMatrix(const bool value)
223 editSField(HasInvLightPerspectiveMatrixFieldMask);
225 _sfHasInvLightPerspectiveMatrix.setValue(value);
227 //! Get the value of the MultiLightChunk::_sfHasColor field.
230 bool &MultiLightChunkBase::editHasColor(void)
232 editSField(HasColorFieldMask);
234 return _sfHasColor.getValue();
237 //! Get the value of the MultiLightChunk::_sfHasColor field.
239 bool MultiLightChunkBase::getHasColor(void) const
241 return _sfHasColor.getValue();
244 //! Set the value of the MultiLightChunk::_sfHasColor field.
246 void MultiLightChunkBase::setHasColor(const bool value)
248 editSField(HasColorFieldMask);
250 _sfHasColor.setValue(value);
252 //! Get the value of the MultiLightChunk::_sfHasIntensity field.
255 bool &MultiLightChunkBase::editHasIntensity(void)
257 editSField(HasIntensityFieldMask);
259 return _sfHasIntensity.getValue();
262 //! Get the value of the MultiLightChunk::_sfHasIntensity field.
264 bool MultiLightChunkBase::getHasIntensity(void) const
266 return _sfHasIntensity.getValue();
269 //! Set the value of the MultiLightChunk::_sfHasIntensity field.
271 void MultiLightChunkBase::setHasIntensity(const bool value)
273 editSField(HasIntensityFieldMask);
275 _sfHasIntensity.setValue(value);
277 //! Get the value of the MultiLightChunk::_sfHasSeparateIntensities field.
280 bool &MultiLightChunkBase::editHasSeparateIntensities(void)
282 editSField(HasSeparateIntensitiesFieldMask);
284 return _sfHasSeparateIntensities.getValue();
287 //! Get the value of the MultiLightChunk::_sfHasSeparateIntensities field.
289 bool MultiLightChunkBase::getHasSeparateIntensities(void) const
291 return _sfHasSeparateIntensities.getValue();
294 //! Set the value of the MultiLightChunk::_sfHasSeparateIntensities field.
296 void MultiLightChunkBase::setHasSeparateIntensities(const bool value)
298 editSField(HasSeparateIntensitiesFieldMask);
300 _sfHasSeparateIntensities.setValue(value);
302 //! Get the value of the MultiLightChunk::_sfHasAttenuation field.
305 bool &MultiLightChunkBase::editHasAttenuation(void)
307 editSField(HasAttenuationFieldMask);
309 return _sfHasAttenuation.getValue();
312 //! Get the value of the MultiLightChunk::_sfHasAttenuation field.
314 bool MultiLightChunkBase::getHasAttenuation(void) const
316 return _sfHasAttenuation.getValue();
319 //! Set the value of the MultiLightChunk::_sfHasAttenuation field.
321 void MultiLightChunkBase::setHasAttenuation(const bool value)
323 editSField(HasAttenuationFieldMask);
325 _sfHasAttenuation.setValue(value);
327 //! Get the value of the MultiLightChunk::_sfAutoCalcRanges field.
330 bool &MultiLightChunkBase::editAutoCalcRanges(void)
332 editSField(AutoCalcRangesFieldMask);
334 return _sfAutoCalcRanges.getValue();
337 //! Get the value of the MultiLightChunk::_sfAutoCalcRanges field.
339 bool MultiLightChunkBase::getAutoCalcRanges(void) const
341 return _sfAutoCalcRanges.getValue();
344 //! Set the value of the MultiLightChunk::_sfAutoCalcRanges field.
346 void MultiLightChunkBase::setAutoCalcRanges(const bool value)
348 editSField(AutoCalcRangesFieldMask);
350 _sfAutoCalcRanges.setValue(value);
352 //! Get the value of the MultiLightChunk::_sfHasRangeCutOn field.
355 bool &MultiLightChunkBase::editHasRangeCutOn(void)
357 editSField(HasRangeCutOnFieldMask);
359 return _sfHasRangeCutOn.getValue();
362 //! Get the value of the MultiLightChunk::_sfHasRangeCutOn field.
364 bool MultiLightChunkBase::getHasRangeCutOn(void) const
366 return _sfHasRangeCutOn.getValue();
369 //! Set the value of the MultiLightChunk::_sfHasRangeCutOn field.
371 void MultiLightChunkBase::setHasRangeCutOn(const bool value)
373 editSField(HasRangeCutOnFieldMask);
375 _sfHasRangeCutOn.setValue(value);
377 //! Get the value of the MultiLightChunk::_sfHasRangeCutOff field.
380 bool &MultiLightChunkBase::editHasRangeCutOff(void)
382 editSField(HasRangeCutOffFieldMask);
384 return _sfHasRangeCutOff.getValue();
387 //! Get the value of the MultiLightChunk::_sfHasRangeCutOff field.
389 bool MultiLightChunkBase::getHasRangeCutOff(void) const
391 return _sfHasRangeCutOff.getValue();
394 //! Set the value of the MultiLightChunk::_sfHasRangeCutOff field.
396 void MultiLightChunkBase::setHasRangeCutOff(const bool value)
398 editSField(HasRangeCutOffFieldMask);
400 _sfHasRangeCutOff.setValue(value);
402 //! Get the value of the MultiLightChunk::_sfHasRangeNearZone field.
405 bool &MultiLightChunkBase::editHasRangeNearZone(void)
407 editSField(HasRangeNearZoneFieldMask);
409 return _sfHasRangeNearZone.getValue();
412 //! Get the value of the MultiLightChunk::_sfHasRangeNearZone field.
414 bool MultiLightChunkBase::getHasRangeNearZone(void) const
416 return _sfHasRangeNearZone.getValue();
419 //! Set the value of the MultiLightChunk::_sfHasRangeNearZone field.
421 void MultiLightChunkBase::setHasRangeNearZone(const bool value)
423 editSField(HasRangeNearZoneFieldMask);
425 _sfHasRangeNearZone.setValue(value);
427 //! Get the value of the MultiLightChunk::_sfHasRangeFarZone field.
430 bool &MultiLightChunkBase::editHasRangeFarZone(void)
432 editSField(HasRangeFarZoneFieldMask);
434 return _sfHasRangeFarZone.getValue();
437 //! Get the value of the MultiLightChunk::_sfHasRangeFarZone field.
439 bool MultiLightChunkBase::getHasRangeFarZone(void) const
441 return _sfHasRangeFarZone.getValue();
444 //! Set the value of the MultiLightChunk::_sfHasRangeFarZone field.
446 void MultiLightChunkBase::setHasRangeFarZone(const bool value)
448 editSField(HasRangeFarZoneFieldMask);
450 _sfHasRangeFarZone.setValue(value);
452 //! Get the value of the MultiLightChunk::_sfHasCosSpotlightAngle field.
455 bool &MultiLightChunkBase::editHasCosSpotlightAngle(void)
457 editSField(HasCosSpotlightAngleFieldMask);
459 return _sfHasCosSpotlightAngle.getValue();
462 //! Get the value of the MultiLightChunk::_sfHasCosSpotlightAngle field.
464 bool MultiLightChunkBase::getHasCosSpotlightAngle(void) const
466 return _sfHasCosSpotlightAngle.getValue();
469 //! Set the value of the MultiLightChunk::_sfHasCosSpotlightAngle field.
471 void MultiLightChunkBase::setHasCosSpotlightAngle(const bool value)
473 editSField(HasCosSpotlightAngleFieldMask);
475 _sfHasCosSpotlightAngle.setValue(value);
477 //! Get the value of the MultiLightChunk::_sfHasSpotlightAngle field.
480 bool &MultiLightChunkBase::editHasSpotlightAngle(void)
482 editSField(HasSpotlightAngleFieldMask);
484 return _sfHasSpotlightAngle.getValue();
487 //! Get the value of the MultiLightChunk::_sfHasSpotlightAngle field.
489 bool MultiLightChunkBase::getHasSpotlightAngle(void) const
491 return _sfHasSpotlightAngle.getValue();
494 //! Set the value of the MultiLightChunk::_sfHasSpotlightAngle field.
496 void MultiLightChunkBase::setHasSpotlightAngle(const bool value)
498 editSField(HasSpotlightAngleFieldMask);
500 _sfHasSpotlightAngle.setValue(value);
502 //! Get the value of the MultiLightChunk::_sfHasSpotExponent field.
505 bool &MultiLightChunkBase::editHasSpotExponent(void)
507 editSField(HasSpotExponentFieldMask);
509 return _sfHasSpotExponent.getValue();
512 //! Get the value of the MultiLightChunk::_sfHasSpotExponent field.
514 bool MultiLightChunkBase::getHasSpotExponent(void) const
516 return _sfHasSpotExponent.getValue();
519 //! Set the value of the MultiLightChunk::_sfHasSpotExponent field.
521 void MultiLightChunkBase::setHasSpotExponent(const bool value)
523 editSField(HasSpotExponentFieldMask);
525 _sfHasSpotExponent.setValue(value);
527 //! Get the value of the MultiLightChunk::_sfHasCinemaLight field.
530 bool &MultiLightChunkBase::editHasCinemaLight(void)
532 editSField(HasCinemaLightFieldMask);
534 return _sfHasCinemaLight.getValue();
537 //! Get the value of the MultiLightChunk::_sfHasCinemaLight field.
539 bool MultiLightChunkBase::getHasCinemaLight(void) const
541 return _sfHasCinemaLight.getValue();
544 //! Set the value of the MultiLightChunk::_sfHasCinemaLight field.
546 void MultiLightChunkBase::setHasCinemaLight(const bool value)
548 editSField(HasCinemaLightFieldMask);
550 _sfHasCinemaLight.setValue(value);
552 //! Get the value of the MultiLightChunk::_sfEyeSpace field.
555 bool &MultiLightChunkBase::editEyeSpace(void)
557 editSField(EyeSpaceFieldMask);
559 return _sfEyeSpace.getValue();
562 //! Get the value of the MultiLightChunk::_sfEyeSpace field.
564 bool MultiLightChunkBase::getEyeSpace(void) const
566 return _sfEyeSpace.getValue();
569 //! Set the value of the MultiLightChunk::_sfEyeSpace field.
571 void MultiLightChunkBase::setEyeSpace(const bool value)
573 editSField(EyeSpaceFieldMask);
575 _sfEyeSpace.setValue(value);
577 //! Get the value of the MultiLightChunk::_sfLastCamNear field.
580 Real32 &MultiLightChunkBase::editLastCamNear(void)
582 editSField(LastCamNearFieldMask);
584 return _sfLastCamNear.getValue();
587 //! Get the value of the MultiLightChunk::_sfLastCamNear field.
589 Real32 MultiLightChunkBase::getLastCamNear(void) const
591 return _sfLastCamNear.getValue();
594 //! Set the value of the MultiLightChunk::_sfLastCamNear field.
596 void MultiLightChunkBase::setLastCamNear(const Real32 value)
598 editSField(LastCamNearFieldMask);
600 _sfLastCamNear.setValue(value);
602 //! Get the value of the MultiLightChunk::_sfLastCamFar field.
605 Real32 &MultiLightChunkBase::editLastCamFar(void)
607 editSField(LastCamFarFieldMask);
609 return _sfLastCamFar.getValue();
612 //! Get the value of the MultiLightChunk::_sfLastCamFar field.
614 Real32 MultiLightChunkBase::getLastCamFar(void) const
616 return _sfLastCamFar.getValue();
619 //! Set the value of the MultiLightChunk::_sfLastCamFar field.
621 void MultiLightChunkBase::setLastCamFar(const Real32 value)
623 editSField(LastCamFarFieldMask);
625 _sfLastCamFar.setValue(value);
627 //! Get the value of the MultiLightChunk::_sfLastCamToWorld field.
630 Matrix &MultiLightChunkBase::editLastCamToWorld(void)
632 editSField(LastCamToWorldFieldMask);
634 return _sfLastCamToWorld.getValue();
637 //! Get the value of the MultiLightChunk::_sfLastCamToWorld field.
639 const Matrix &MultiLightChunkBase::getLastCamToWorld(void) const
641 return _sfLastCamToWorld.getValue();
644 //! Set the value of the MultiLightChunk::_sfLastCamToWorld field.
646 void MultiLightChunkBase::setLastCamToWorld(const Matrix &value)
648 editSField(LastCamToWorldFieldMask);
650 _sfLastCamToWorld.setValue(value);
652 //! Get the value of the MultiLightChunk::_sfLightBlockName field.
655 std::string &MultiLightChunkBase::editLightBlockName(void)
657 editSField(LightBlockNameFieldMask);
659 return _sfLightBlockName.getValue();
662 //! Get the value of the MultiLightChunk::_sfLightBlockName field.
664 const std::string &MultiLightChunkBase::getLightBlockName(void) const
666 return _sfLightBlockName.getValue();
669 //! Set the value of the MultiLightChunk::_sfLightBlockName field.
671 void MultiLightChunkBase::setLightBlockName(const std::string &value)
673 editSField(LightBlockNameFieldMask);
675 _sfLightBlockName.setValue(value);
677 //! Get the value of the MultiLightChunk::_sfLightVariableName field.
680 std::string &MultiLightChunkBase::editLightVariableName(void)
682 editSField(LightVariableNameFieldMask);
684 return _sfLightVariableName.getValue();
687 //! Get the value of the MultiLightChunk::_sfLightVariableName field.
689 const std::string &MultiLightChunkBase::getLightVariableName(void) const
691 return _sfLightVariableName.getValue();
694 //! Set the value of the MultiLightChunk::_sfLightVariableName field.
696 void MultiLightChunkBase::setLightVariableName(const std::string &value)
698 editSField(LightVariableNameFieldMask);
700 _sfLightVariableName.setValue(value);
703 //! Get the value of the \a index element the MultiLightChunk::_mfPosition field.
705 const Pnt3f &MultiLightChunkBase::getPosition(const UInt32 index) const
707 return _mfPosition[index];
711 MFPnt3f ::reference MultiLightChunkBase::editPosition(const UInt32 index)
713 editMField(PositionFieldMask, _mfPosition);
715 return _mfPosition[index];
718 //! Get the value of the \a index element the MultiLightChunk::_mfDirection field.
720 const Vec3f &MultiLightChunkBase::getDirection(const UInt32 index) const
722 return _mfDirection[index];
726 MFVec3f ::reference MultiLightChunkBase::editDirection(const UInt32 index)
728 editMField(DirectionFieldMask, _mfDirection);
730 return _mfDirection[index];
733 //! Get the value of the \a index element the MultiLightChunk::_mfColor field.
735 const Color3f &MultiLightChunkBase::getColor(const UInt32 index) const
737 return _mfColor[index];
741 MFColor3f ::reference MultiLightChunkBase::editColor(const UInt32 index)
743 editMField(ColorFieldMask, _mfColor);
745 return _mfColor[index];
748 //! Get the value of the \a index element the MultiLightChunk::_mfIntensity field.
750 Real32 MultiLightChunkBase::getIntensity(const UInt32 index) const
752 return _mfIntensity[index];
756 MFReal32 ::reference MultiLightChunkBase::editIntensity(const UInt32 index)
758 editMField(IntensityFieldMask, _mfIntensity);
760 return _mfIntensity[index];
763 //! Get the value of the \a index element the MultiLightChunk::_mfAmbientIntensity field.
765 const Vec3f &MultiLightChunkBase::getAmbientIntensity(const UInt32 index) const
767 return _mfAmbientIntensity[index];
771 MFVec3f ::reference MultiLightChunkBase::editAmbientIntensity(const UInt32 index)
773 editMField(AmbientIntensityFieldMask, _mfAmbientIntensity);
775 return _mfAmbientIntensity[index];
778 //! Get the value of the \a index element the MultiLightChunk::_mfDiffuseIntensity field.
780 const Vec3f &MultiLightChunkBase::getDiffuseIntensity(const UInt32 index) const
782 return _mfDiffuseIntensity[index];
786 MFVec3f ::reference MultiLightChunkBase::editDiffuseIntensity(const UInt32 index)
788 editMField(DiffuseIntensityFieldMask, _mfDiffuseIntensity);
790 return _mfDiffuseIntensity[index];
793 //! Get the value of the \a index element the MultiLightChunk::_mfSpecularIntensity field.
795 const Vec3f &MultiLightChunkBase::getSpecularIntensity(const UInt32 index) const
797 return _mfSpecularIntensity[index];
801 MFVec3f ::reference MultiLightChunkBase::editSpecularIntensity(const UInt32 index)
803 editMField(SpecularIntensityFieldMask, _mfSpecularIntensity);
805 return _mfSpecularIntensity[index];
808 //! Get the value of the \a index element the MultiLightChunk::_mfAttenuation field.
810 const Vec3f &MultiLightChunkBase::getAttenuation(const UInt32 index) const
812 return _mfAttenuation[index];
816 MFVec3f ::reference MultiLightChunkBase::editAttenuation(const UInt32 index)
818 editMField(AttenuationFieldMask, _mfAttenuation);
820 return _mfAttenuation[index];
823 //! Get the value of the \a index element the MultiLightChunk::_mfSpotlightAngle field.
825 Real32 MultiLightChunkBase::getSpotlightAngle(const UInt32 index) const
827 return _mfSpotlightAngle[index];
831 MFReal32 ::reference MultiLightChunkBase::editSpotlightAngle(const UInt32 index)
833 editMField(SpotlightAngleFieldMask, _mfSpotlightAngle);
835 return _mfSpotlightAngle[index];
838 //! Get the value of the \a index element the MultiLightChunk::_mfSpotExponent field.
840 Real32 MultiLightChunkBase::getSpotExponent(const UInt32 index) const
842 return _mfSpotExponent[index];
846 MFReal32 ::reference MultiLightChunkBase::editSpotExponent(const UInt32 index)
848 editMField(SpotExponentFieldMask, _mfSpotExponent);
850 return _mfSpotExponent[index];
853 //! Get the value of the \a index element the MultiLightChunk::_mfInnerSuperEllipsesWidth field.
855 Real32 MultiLightChunkBase::getInnerSuperEllipsesWidth(const UInt32 index) const
857 return _mfInnerSuperEllipsesWidth[index];
861 MFReal32 ::reference MultiLightChunkBase::editInnerSuperEllipsesWidth(const UInt32 index)
863 editMField(InnerSuperEllipsesWidthFieldMask, _mfInnerSuperEllipsesWidth);
865 return _mfInnerSuperEllipsesWidth[index];
868 //! Get the value of the \a index element the MultiLightChunk::_mfInnerSuperEllipsesHeight field.
870 Real32 MultiLightChunkBase::getInnerSuperEllipsesHeight(const UInt32 index) const
872 return _mfInnerSuperEllipsesHeight[index];
876 MFReal32 ::reference MultiLightChunkBase::editInnerSuperEllipsesHeight(const UInt32 index)
878 editMField(InnerSuperEllipsesHeightFieldMask, _mfInnerSuperEllipsesHeight);
880 return _mfInnerSuperEllipsesHeight[index];
883 //! Get the value of the \a index element the MultiLightChunk::_mfOuterSuperEllipsesWidth field.
885 Real32 MultiLightChunkBase::getOuterSuperEllipsesWidth(const UInt32 index) const
887 return _mfOuterSuperEllipsesWidth[index];
891 MFReal32 ::reference MultiLightChunkBase::editOuterSuperEllipsesWidth(const UInt32 index)
893 editMField(OuterSuperEllipsesWidthFieldMask, _mfOuterSuperEllipsesWidth);
895 return _mfOuterSuperEllipsesWidth[index];
898 //! Get the value of the \a index element the MultiLightChunk::_mfOuterSuperEllipsesHeight field.
900 Real32 MultiLightChunkBase::getOuterSuperEllipsesHeight(const UInt32 index) const
902 return _mfOuterSuperEllipsesHeight[index];
906 MFReal32 ::reference MultiLightChunkBase::editOuterSuperEllipsesHeight(const UInt32 index)
908 editMField(OuterSuperEllipsesHeightFieldMask, _mfOuterSuperEllipsesHeight);
910 return _mfOuterSuperEllipsesHeight[index];
913 //! Get the value of the \a index element the MultiLightChunk::_mfSuperEllipsesRoundness field.
915 Real32 MultiLightChunkBase::getSuperEllipsesRoundness(const UInt32 index) const
917 return _mfSuperEllipsesRoundness[index];
921 MFReal32 ::reference MultiLightChunkBase::editSuperEllipsesRoundness(const UInt32 index)
923 editMField(SuperEllipsesRoundnessFieldMask, _mfSuperEllipsesRoundness);
925 return _mfSuperEllipsesRoundness[index];
928 //! Get the value of the \a index element the MultiLightChunk::_mfSuperEllipsesTwist field.
930 Real32 MultiLightChunkBase::getSuperEllipsesTwist(const UInt32 index) const
932 return _mfSuperEllipsesTwist[index];
936 MFReal32 ::reference MultiLightChunkBase::editSuperEllipsesTwist(const UInt32 index)
938 editMField(SuperEllipsesTwistFieldMask, _mfSuperEllipsesTwist);
940 return _mfSuperEllipsesTwist[index];
943 //! Get the value of the \a index element the MultiLightChunk::_mfRangeCutOn field.
945 Real32 MultiLightChunkBase::getRangeCutOn(const UInt32 index) const
947 return _mfRangeCutOn[index];
951 MFReal32 ::reference MultiLightChunkBase::editRangeCutOn(const UInt32 index)
953 editMField(RangeCutOnFieldMask, _mfRangeCutOn);
955 return _mfRangeCutOn[index];
958 //! Get the value of the \a index element the MultiLightChunk::_mfRangeCutOff field.
960 Real32 MultiLightChunkBase::getRangeCutOff(const UInt32 index) const
962 return _mfRangeCutOff[index];
966 MFReal32 ::reference MultiLightChunkBase::editRangeCutOff(const UInt32 index)
968 editMField(RangeCutOffFieldMask, _mfRangeCutOff);
970 return _mfRangeCutOff[index];
973 //! Get the value of the \a index element the MultiLightChunk::_mfRangeNearZone field.
975 Real32 MultiLightChunkBase::getRangeNearZone(const UInt32 index) const
977 return _mfRangeNearZone[index];
981 MFReal32 ::reference MultiLightChunkBase::editRangeNearZone(const UInt32 index)
983 editMField(RangeNearZoneFieldMask, _mfRangeNearZone);
985 return _mfRangeNearZone[index];
988 //! Get the value of the \a index element the MultiLightChunk::_mfRangeFarZone field.
990 Real32 MultiLightChunkBase::getRangeFarZone(const UInt32 index) const
992 return _mfRangeFarZone[index];
996 MFReal32 ::reference MultiLightChunkBase::editRangeFarZone(const UInt32 index)
998 editMField(RangeFarZoneFieldMask, _mfRangeFarZone);
1000 return _mfRangeFarZone[index];
1003 //! Get the value of the \a index element the MultiLightChunk::_mfType field.
1005 UInt8 MultiLightChunkBase::getType(const UInt32 index) const
1007 return _mfType[index];
1011 MFUInt8 ::reference MultiLightChunkBase::editType(const UInt32 index)
1013 editMField(TypeFieldMask, _mfType);
1015 return _mfType[index];
1018 //! Get the value of the \a index element the MultiLightChunk::_mfEnabled field.
1020 bool MultiLightChunkBase::getEnabled(const UInt32 index) const
1022 return _mfEnabled[index];
1026 MFBool ::reference MultiLightChunkBase::editEnabled(const UInt32 index)
1028 editMField(EnabledFieldMask, _mfEnabled);
1030 return _mfEnabled[index];
1034 //! Get the value of the \a index element the MultiLightChunk::_mfBeaconMatrix field.
1036 const Matrix &MultiLightChunkBase::getBeaconMatrix(const UInt32 index) const
1038 return _mfBeaconMatrix[index];
1042 MFMatrix ::reference MultiLightChunkBase::editBeaconMatrix(const UInt32 index)
1044 editMField(BeaconMatrixFieldMask, _mfBeaconMatrix);
1046 return _mfBeaconMatrix[index];
1050 #ifdef OSG_MT_CPTR_ASPECT
1052 void MultiLightChunkBase::execSync ( MultiLightChunkBase *pFrom,
1053 ConstFieldMaskArg whichField,
1054 AspectOffsetStore &oOffsets,
1055 ConstFieldMaskArg syncMode,
1056 const UInt32 uiSyncInfo)
1058 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
1060 if(FieldBits::NoField != (HasWorldToLightSpaceMatrixFieldMask & whichField))
1061 _sfHasWorldToLightSpaceMatrix.syncWith(pFrom->_sfHasWorldToLightSpaceMatrix);
1063 if(FieldBits::NoField != (HasLightToWorldSpaceMatrixFieldMask & whichField))
1064 _sfHasLightToWorldSpaceMatrix.syncWith(pFrom->_sfHasLightToWorldSpaceMatrix);
1066 if(FieldBits::NoField != (HasEyeToLightSpaceMatrixFieldMask & whichField))
1067 _sfHasEyeToLightSpaceMatrix.syncWith(pFrom->_sfHasEyeToLightSpaceMatrix);
1069 if(FieldBits::NoField != (HasLightToEyeSpaceMatrixFieldMask & whichField))
1070 _sfHasLightToEyeSpaceMatrix.syncWith(pFrom->_sfHasLightToEyeSpaceMatrix);
1072 if(FieldBits::NoField != (HasLightPerspectiveMatrixFieldMask & whichField))
1073 _sfHasLightPerspectiveMatrix.syncWith(pFrom->_sfHasLightPerspectiveMatrix);
1075 if(FieldBits::NoField != (HasInvLightPerspectiveMatrixFieldMask & whichField))
1076 _sfHasInvLightPerspectiveMatrix.syncWith(pFrom->_sfHasInvLightPerspectiveMatrix);
1078 if(FieldBits::NoField != (HasColorFieldMask & whichField))
1079 _sfHasColor.syncWith(pFrom->_sfHasColor);
1081 if(FieldBits::NoField != (HasIntensityFieldMask & whichField))
1082 _sfHasIntensity.syncWith(pFrom->_sfHasIntensity);
1084 if(FieldBits::NoField != (HasSeparateIntensitiesFieldMask & whichField))
1085 _sfHasSeparateIntensities.syncWith(pFrom->_sfHasSeparateIntensities);
1087 if(FieldBits::NoField != (HasAttenuationFieldMask & whichField))
1088 _sfHasAttenuation.syncWith(pFrom->_sfHasAttenuation);
1090 if(FieldBits::NoField != (AutoCalcRangesFieldMask & whichField))
1091 _sfAutoCalcRanges.syncWith(pFrom->_sfAutoCalcRanges);
1093 if(FieldBits::NoField != (HasRangeCutOnFieldMask & whichField))
1094 _sfHasRangeCutOn.syncWith(pFrom->_sfHasRangeCutOn);
1096 if(FieldBits::NoField != (HasRangeCutOffFieldMask & whichField))
1097 _sfHasRangeCutOff.syncWith(pFrom->_sfHasRangeCutOff);
1099 if(FieldBits::NoField != (HasRangeNearZoneFieldMask & whichField))
1100 _sfHasRangeNearZone.syncWith(pFrom->_sfHasRangeNearZone);
1102 if(FieldBits::NoField != (HasRangeFarZoneFieldMask & whichField))
1103 _sfHasRangeFarZone.syncWith(pFrom->_sfHasRangeFarZone);
1105 if(FieldBits::NoField != (HasCosSpotlightAngleFieldMask & whichField))
1106 _sfHasCosSpotlightAngle.syncWith(pFrom->_sfHasCosSpotlightAngle);
1108 if(FieldBits::NoField != (HasSpotlightAngleFieldMask & whichField))
1109 _sfHasSpotlightAngle.syncWith(pFrom->_sfHasSpotlightAngle);
1111 if(FieldBits::NoField != (HasSpotExponentFieldMask & whichField))
1112 _sfHasSpotExponent.syncWith(pFrom->_sfHasSpotExponent);
1114 if(FieldBits::NoField != (HasCinemaLightFieldMask & whichField))
1115 _sfHasCinemaLight.syncWith(pFrom->_sfHasCinemaLight);
1117 if(FieldBits::NoField != (PositionFieldMask & whichField))
1118 _mfPosition.syncWith(pFrom->_mfPosition,
1123 if(FieldBits::NoField != (DirectionFieldMask & whichField))
1124 _mfDirection.syncWith(pFrom->_mfDirection,
1129 if(FieldBits::NoField != (ColorFieldMask & whichField))
1130 _mfColor.syncWith(pFrom->_mfColor,
1135 if(FieldBits::NoField != (IntensityFieldMask & whichField))
1136 _mfIntensity.syncWith(pFrom->_mfIntensity,
1141 if(FieldBits::NoField != (AmbientIntensityFieldMask & whichField))
1142 _mfAmbientIntensity.syncWith(pFrom->_mfAmbientIntensity,
1147 if(FieldBits::NoField != (DiffuseIntensityFieldMask & whichField))
1148 _mfDiffuseIntensity.syncWith(pFrom->_mfDiffuseIntensity,
1153 if(FieldBits::NoField != (SpecularIntensityFieldMask & whichField))
1154 _mfSpecularIntensity.syncWith(pFrom->_mfSpecularIntensity,
1159 if(FieldBits::NoField != (AttenuationFieldMask & whichField))
1160 _mfAttenuation.syncWith(pFrom->_mfAttenuation,
1165 if(FieldBits::NoField != (SpotlightAngleFieldMask & whichField))
1166 _mfSpotlightAngle.syncWith(pFrom->_mfSpotlightAngle,
1171 if(FieldBits::NoField != (SpotExponentFieldMask & whichField))
1172 _mfSpotExponent.syncWith(pFrom->_mfSpotExponent,
1177 if(FieldBits::NoField != (InnerSuperEllipsesWidthFieldMask & whichField))
1178 _mfInnerSuperEllipsesWidth.syncWith(pFrom->_mfInnerSuperEllipsesWidth,
1183 if(FieldBits::NoField != (InnerSuperEllipsesHeightFieldMask & whichField))
1184 _mfInnerSuperEllipsesHeight.syncWith(pFrom->_mfInnerSuperEllipsesHeight,
1189 if(FieldBits::NoField != (OuterSuperEllipsesWidthFieldMask & whichField))
1190 _mfOuterSuperEllipsesWidth.syncWith(pFrom->_mfOuterSuperEllipsesWidth,
1195 if(FieldBits::NoField != (OuterSuperEllipsesHeightFieldMask & whichField))
1196 _mfOuterSuperEllipsesHeight.syncWith(pFrom->_mfOuterSuperEllipsesHeight,
1201 if(FieldBits::NoField != (SuperEllipsesRoundnessFieldMask & whichField))
1202 _mfSuperEllipsesRoundness.syncWith(pFrom->_mfSuperEllipsesRoundness,
1207 if(FieldBits::NoField != (SuperEllipsesTwistFieldMask & whichField))
1208 _mfSuperEllipsesTwist.syncWith(pFrom->_mfSuperEllipsesTwist,
1213 if(FieldBits::NoField != (RangeCutOnFieldMask & whichField))
1214 _mfRangeCutOn.syncWith(pFrom->_mfRangeCutOn,
1219 if(FieldBits::NoField != (RangeCutOffFieldMask & whichField))
1220 _mfRangeCutOff.syncWith(pFrom->_mfRangeCutOff,
1225 if(FieldBits::NoField != (RangeNearZoneFieldMask & whichField))
1226 _mfRangeNearZone.syncWith(pFrom->_mfRangeNearZone,
1231 if(FieldBits::NoField != (RangeFarZoneFieldMask & whichField))
1232 _mfRangeFarZone.syncWith(pFrom->_mfRangeFarZone,
1237 if(FieldBits::NoField != (TypeFieldMask & whichField))
1238 _mfType.syncWith(pFrom->_mfType,
1243 if(FieldBits::NoField != (EnabledFieldMask & whichField))
1244 _mfEnabled.syncWith(pFrom->_mfEnabled,
1249 if(FieldBits::NoField != (BeaconFieldMask & whichField))
1250 _mfBeacon.syncWith(pFrom->_mfBeacon,
1255 if(FieldBits::NoField != (BeaconMatrixFieldMask & whichField))
1256 _mfBeaconMatrix.syncWith(pFrom->_mfBeaconMatrix,
1261 if(FieldBits::NoField != (EyeSpaceFieldMask & whichField))
1262 _sfEyeSpace.syncWith(pFrom->_sfEyeSpace);
1264 if(FieldBits::NoField != (LastCamNearFieldMask & whichField))
1265 _sfLastCamNear.syncWith(pFrom->_sfLastCamNear);
1267 if(FieldBits::NoField != (LastCamFarFieldMask & whichField))
1268 _sfLastCamFar.syncWith(pFrom->_sfLastCamFar);
1270 if(FieldBits::NoField != (LastCamToWorldFieldMask & whichField))
1271 _sfLastCamToWorld.syncWith(pFrom->_sfLastCamToWorld);
1273 if(FieldBits::NoField != (LightBlockNameFieldMask & whichField))
1274 _sfLightBlockName.syncWith(pFrom->_sfLightBlockName);
1276 if(FieldBits::NoField != (LightVariableNameFieldMask & whichField))
1277 _sfLightVariableName.syncWith(pFrom->_sfLightVariableName);
1283 const Char8 *MultiLightChunkBase::getClassname(void)
1285 return "MultiLightChunk";
1287 OSG_GEN_CONTAINERPTR(MultiLightChunk);