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 TextureObjChunk!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &TextureObjChunkBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 TextureObjChunkBase::getClassTypeId(void)
70 OSG::UInt16 TextureObjChunkBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TextureObjChunk::_sfInternalFormat field.
80 GLenum &TextureObjChunkBase::editInternalFormat(void)
82 editSField(InternalFormatFieldMask);
84 return _sfInternalFormat.getValue();
87 //! Get the value of the TextureObjChunk::_sfInternalFormat field.
89 const GLenum &TextureObjChunkBase::getInternalFormat(void) const
91 return _sfInternalFormat.getValue();
94 //! Set the value of the TextureObjChunk::_sfInternalFormat field.
96 void TextureObjChunkBase::setInternalFormat(const GLenum &value)
98 editSField(InternalFormatFieldMask);
100 _sfInternalFormat.setValue(value);
102 //! Get the value of the TextureObjChunk::_sfExternalFormat field.
105 GLenum &TextureObjChunkBase::editExternalFormat(void)
107 editSField(ExternalFormatFieldMask);
109 return _sfExternalFormat.getValue();
112 //! Get the value of the TextureObjChunk::_sfExternalFormat field.
114 const GLenum &TextureObjChunkBase::getExternalFormat(void) const
116 return _sfExternalFormat.getValue();
119 //! Set the value of the TextureObjChunk::_sfExternalFormat field.
121 void TextureObjChunkBase::setExternalFormat(const GLenum &value)
123 editSField(ExternalFormatFieldMask);
125 _sfExternalFormat.setValue(value);
127 //! Get the value of the TextureObjChunk::_sfScale field.
130 bool &TextureObjChunkBase::editScale(void)
132 editSField(ScaleFieldMask);
134 return _sfScale.getValue();
137 //! Get the value of the TextureObjChunk::_sfScale field.
139 bool TextureObjChunkBase::getScale(void) const
141 return _sfScale.getValue();
144 //! Set the value of the TextureObjChunk::_sfScale field.
146 void TextureObjChunkBase::setScale(const bool value)
148 editSField(ScaleFieldMask);
150 _sfScale.setValue(value);
152 //! Get the value of the TextureObjChunk::_sfFrame field.
155 UInt32 &TextureObjChunkBase::editFrame(void)
157 editSField(FrameFieldMask);
159 return _sfFrame.getValue();
162 //! Get the value of the TextureObjChunk::_sfFrame field.
164 UInt32 TextureObjChunkBase::getFrame(void) const
166 return _sfFrame.getValue();
169 //! Set the value of the TextureObjChunk::_sfFrame field.
171 void TextureObjChunkBase::setFrame(const UInt32 value)
173 editSField(FrameFieldMask);
175 _sfFrame.setValue(value);
177 //! Get the value of the TextureObjChunk::_sfMinFilter field.
180 GLenum &TextureObjChunkBase::editMinFilter(void)
182 editSField(MinFilterFieldMask);
184 return _sfMinFilter.getValue();
187 //! Get the value of the TextureObjChunk::_sfMinFilter field.
189 const GLenum &TextureObjChunkBase::getMinFilter(void) const
191 return _sfMinFilter.getValue();
194 //! Set the value of the TextureObjChunk::_sfMinFilter field.
196 void TextureObjChunkBase::setMinFilter(const GLenum &value)
198 editSField(MinFilterFieldMask);
200 _sfMinFilter.setValue(value);
202 //! Get the value of the TextureObjChunk::_sfMagFilter field.
205 GLenum &TextureObjChunkBase::editMagFilter(void)
207 editSField(MagFilterFieldMask);
209 return _sfMagFilter.getValue();
212 //! Get the value of the TextureObjChunk::_sfMagFilter field.
214 const GLenum &TextureObjChunkBase::getMagFilter(void) const
216 return _sfMagFilter.getValue();
219 //! Set the value of the TextureObjChunk::_sfMagFilter field.
221 void TextureObjChunkBase::setMagFilter(const GLenum &value)
223 editSField(MagFilterFieldMask);
225 _sfMagFilter.setValue(value);
227 //! Get the value of the TextureObjChunk::_sfWrapS field.
230 GLenum &TextureObjChunkBase::editWrapS(void)
232 editSField(WrapSFieldMask);
234 return _sfWrapS.getValue();
237 //! Get the value of the TextureObjChunk::_sfWrapS field.
239 const GLenum &TextureObjChunkBase::getWrapS(void) const
241 return _sfWrapS.getValue();
244 //! Set the value of the TextureObjChunk::_sfWrapS field.
246 void TextureObjChunkBase::setWrapS(const GLenum &value)
248 editSField(WrapSFieldMask);
250 _sfWrapS.setValue(value);
252 //! Get the value of the TextureObjChunk::_sfWrapT field.
255 GLenum &TextureObjChunkBase::editWrapT(void)
257 editSField(WrapTFieldMask);
259 return _sfWrapT.getValue();
262 //! Get the value of the TextureObjChunk::_sfWrapT field.
264 const GLenum &TextureObjChunkBase::getWrapT(void) const
266 return _sfWrapT.getValue();
269 //! Set the value of the TextureObjChunk::_sfWrapT field.
271 void TextureObjChunkBase::setWrapT(const GLenum &value)
273 editSField(WrapTFieldMask);
275 _sfWrapT.setValue(value);
277 //! Get the value of the TextureObjChunk::_sfWrapR field.
280 GLenum &TextureObjChunkBase::editWrapR(void)
282 editSField(WrapRFieldMask);
284 return _sfWrapR.getValue();
287 //! Get the value of the TextureObjChunk::_sfWrapR field.
289 const GLenum &TextureObjChunkBase::getWrapR(void) const
291 return _sfWrapR.getValue();
294 //! Set the value of the TextureObjChunk::_sfWrapR field.
296 void TextureObjChunkBase::setWrapR(const GLenum &value)
298 editSField(WrapRFieldMask);
300 _sfWrapR.setValue(value);
302 //! Get the value of the TextureObjChunk::_sfGLId field.
305 GLenum &TextureObjChunkBase::editGLId(void)
307 editSField(GLIdFieldMask);
309 return _sfGLId.getValue();
312 //! Get the value of the TextureObjChunk::_sfGLId field.
314 const GLenum &TextureObjChunkBase::getGLId(void) const
316 return _sfGLId.getValue();
319 //! Set the value of the TextureObjChunk::_sfGLId field.
321 void TextureObjChunkBase::setGLId(const GLenum &value)
323 editSField(GLIdFieldMask);
325 _sfGLId.setValue(value);
327 //! Get the value of the TextureObjChunk::_sfPriority field.
330 Real32 &TextureObjChunkBase::editPriority(void)
332 editSField(PriorityFieldMask);
334 return _sfPriority.getValue();
337 //! Get the value of the TextureObjChunk::_sfPriority field.
339 Real32 TextureObjChunkBase::getPriority(void) const
341 return _sfPriority.getValue();
344 //! Set the value of the TextureObjChunk::_sfPriority field.
346 void TextureObjChunkBase::setPriority(const Real32 value)
348 editSField(PriorityFieldMask);
350 _sfPriority.setValue(value);
352 //! Get the value of the TextureObjChunk::_sfDirtyLeft field.
355 Int32 &TextureObjChunkBase::editDirtyLeft(void)
357 editSField(DirtyLeftFieldMask);
359 return _sfDirtyLeft.getValue();
362 //! Get the value of the TextureObjChunk::_sfDirtyLeft field.
364 Int32 TextureObjChunkBase::getDirtyLeft(void) const
366 return _sfDirtyLeft.getValue();
369 //! Set the value of the TextureObjChunk::_sfDirtyLeft field.
371 void TextureObjChunkBase::setDirtyLeft(const Int32 value)
373 editSField(DirtyLeftFieldMask);
375 _sfDirtyLeft.setValue(value);
377 //! Get the value of the TextureObjChunk::_sfDirtyMinX field.
380 Int32 &TextureObjChunkBase::editDirtyMinX(void)
382 editSField(DirtyMinXFieldMask);
384 return _sfDirtyMinX.getValue();
387 //! Get the value of the TextureObjChunk::_sfDirtyMinX field.
389 Int32 TextureObjChunkBase::getDirtyMinX(void) const
391 return _sfDirtyMinX.getValue();
394 //! Set the value of the TextureObjChunk::_sfDirtyMinX field.
396 void TextureObjChunkBase::setDirtyMinX(const Int32 value)
398 editSField(DirtyMinXFieldMask);
400 _sfDirtyMinX.setValue(value);
402 //! Get the value of the TextureObjChunk::_sfDirtyMaxX field.
405 Int32 &TextureObjChunkBase::editDirtyMaxX(void)
407 editSField(DirtyMaxXFieldMask);
409 return _sfDirtyMaxX.getValue();
412 //! Get the value of the TextureObjChunk::_sfDirtyMaxX field.
414 Int32 TextureObjChunkBase::getDirtyMaxX(void) const
416 return _sfDirtyMaxX.getValue();
419 //! Set the value of the TextureObjChunk::_sfDirtyMaxX field.
421 void TextureObjChunkBase::setDirtyMaxX(const Int32 value)
423 editSField(DirtyMaxXFieldMask);
425 _sfDirtyMaxX.setValue(value);
427 //! Get the value of the TextureObjChunk::_sfDirtyMinY field.
430 Int32 &TextureObjChunkBase::editDirtyMinY(void)
432 editSField(DirtyMinYFieldMask);
434 return _sfDirtyMinY.getValue();
437 //! Get the value of the TextureObjChunk::_sfDirtyMinY field.
439 Int32 TextureObjChunkBase::getDirtyMinY(void) const
441 return _sfDirtyMinY.getValue();
444 //! Set the value of the TextureObjChunk::_sfDirtyMinY field.
446 void TextureObjChunkBase::setDirtyMinY(const Int32 value)
448 editSField(DirtyMinYFieldMask);
450 _sfDirtyMinY.setValue(value);
452 //! Get the value of the TextureObjChunk::_sfDirtyMaxY field.
455 Int32 &TextureObjChunkBase::editDirtyMaxY(void)
457 editSField(DirtyMaxYFieldMask);
459 return _sfDirtyMaxY.getValue();
462 //! Get the value of the TextureObjChunk::_sfDirtyMaxY field.
464 Int32 TextureObjChunkBase::getDirtyMaxY(void) const
466 return _sfDirtyMaxY.getValue();
469 //! Set the value of the TextureObjChunk::_sfDirtyMaxY field.
471 void TextureObjChunkBase::setDirtyMaxY(const Int32 value)
473 editSField(DirtyMaxYFieldMask);
475 _sfDirtyMaxY.setValue(value);
477 //! Get the value of the TextureObjChunk::_sfDirtyMinZ field.
480 Int32 &TextureObjChunkBase::editDirtyMinZ(void)
482 editSField(DirtyMinZFieldMask);
484 return _sfDirtyMinZ.getValue();
487 //! Get the value of the TextureObjChunk::_sfDirtyMinZ field.
489 Int32 TextureObjChunkBase::getDirtyMinZ(void) const
491 return _sfDirtyMinZ.getValue();
494 //! Set the value of the TextureObjChunk::_sfDirtyMinZ field.
496 void TextureObjChunkBase::setDirtyMinZ(const Int32 value)
498 editSField(DirtyMinZFieldMask);
500 _sfDirtyMinZ.setValue(value);
502 //! Get the value of the TextureObjChunk::_sfDirtyMaxZ field.
505 Int32 &TextureObjChunkBase::editDirtyMaxZ(void)
507 editSField(DirtyMaxZFieldMask);
509 return _sfDirtyMaxZ.getValue();
512 //! Get the value of the TextureObjChunk::_sfDirtyMaxZ field.
514 Int32 TextureObjChunkBase::getDirtyMaxZ(void) const
516 return _sfDirtyMaxZ.getValue();
519 //! Set the value of the TextureObjChunk::_sfDirtyMaxZ field.
521 void TextureObjChunkBase::setDirtyMaxZ(const Int32 value)
523 editSField(DirtyMaxZFieldMask);
525 _sfDirtyMaxZ.setValue(value);
527 //! Get the value of the TextureObjChunk::_sfAnisotropy field.
530 Real32 &TextureObjChunkBase::editAnisotropy(void)
532 editSField(AnisotropyFieldMask);
534 return _sfAnisotropy.getValue();
537 //! Get the value of the TextureObjChunk::_sfAnisotropy field.
539 Real32 TextureObjChunkBase::getAnisotropy(void) const
541 return _sfAnisotropy.getValue();
544 //! Set the value of the TextureObjChunk::_sfAnisotropy field.
546 void TextureObjChunkBase::setAnisotropy(const Real32 value)
548 editSField(AnisotropyFieldMask);
550 _sfAnisotropy.setValue(value);
552 //! Get the value of the TextureObjChunk::_sfBorderColor field.
555 Color4f &TextureObjChunkBase::editBorderColor(void)
557 editSField(BorderColorFieldMask);
559 return _sfBorderColor.getValue();
562 //! Get the value of the TextureObjChunk::_sfBorderColor field.
564 const Color4f &TextureObjChunkBase::getBorderColor(void) const
566 return _sfBorderColor.getValue();
569 //! Set the value of the TextureObjChunk::_sfBorderColor field.
571 void TextureObjChunkBase::setBorderColor(const Color4f &value)
573 editSField(BorderColorFieldMask);
575 _sfBorderColor.setValue(value);
577 //! Get the value of the TextureObjChunk::_sfCompareMode field.
580 GLenum &TextureObjChunkBase::editCompareMode(void)
582 editSField(CompareModeFieldMask);
584 return _sfCompareMode.getValue();
587 //! Get the value of the TextureObjChunk::_sfCompareMode field.
589 const GLenum &TextureObjChunkBase::getCompareMode(void) const
591 return _sfCompareMode.getValue();
594 //! Set the value of the TextureObjChunk::_sfCompareMode field.
596 void TextureObjChunkBase::setCompareMode(const GLenum &value)
598 editSField(CompareModeFieldMask);
600 _sfCompareMode.setValue(value);
602 //! Get the value of the TextureObjChunk::_sfCompareFunc field.
605 GLenum &TextureObjChunkBase::editCompareFunc(void)
607 editSField(CompareFuncFieldMask);
609 return _sfCompareFunc.getValue();
612 //! Get the value of the TextureObjChunk::_sfCompareFunc field.
614 const GLenum &TextureObjChunkBase::getCompareFunc(void) const
616 return _sfCompareFunc.getValue();
619 //! Set the value of the TextureObjChunk::_sfCompareFunc field.
621 void TextureObjChunkBase::setCompareFunc(const GLenum &value)
623 editSField(CompareFuncFieldMask);
625 _sfCompareFunc.setValue(value);
627 //! Get the value of the TextureObjChunk::_sfDepthMode field.
630 GLenum &TextureObjChunkBase::editDepthMode(void)
632 editSField(DepthModeFieldMask);
634 return _sfDepthMode.getValue();
637 //! Get the value of the TextureObjChunk::_sfDepthMode field.
639 const GLenum &TextureObjChunkBase::getDepthMode(void) const
641 return _sfDepthMode.getValue();
644 //! Set the value of the TextureObjChunk::_sfDepthMode field.
646 void TextureObjChunkBase::setDepthMode(const GLenum &value)
648 editSField(DepthModeFieldMask);
650 _sfDepthMode.setValue(value);
652 //! Get the value of the TextureObjChunk::_sfBorderWidth field.
655 UInt32 &TextureObjChunkBase::editBorderWidth(void)
657 editSField(BorderWidthFieldMask);
659 return _sfBorderWidth.getValue();
662 //! Get the value of the TextureObjChunk::_sfBorderWidth field.
664 UInt32 TextureObjChunkBase::getBorderWidth(void) const
666 return _sfBorderWidth.getValue();
669 //! Set the value of the TextureObjChunk::_sfBorderWidth field.
671 void TextureObjChunkBase::setBorderWidth(const UInt32 value)
673 editSField(BorderWidthFieldMask);
675 _sfBorderWidth.setValue(value);
677 //! Get the value of the TextureObjChunk::_sfSkipMipMapLevels field.
680 Real32 &TextureObjChunkBase::editSkipMipMapLevels(void)
682 editSField(SkipMipMapLevelsFieldMask);
684 return _sfSkipMipMapLevels.getValue();
687 //! Get the value of the TextureObjChunk::_sfSkipMipMapLevels field.
689 Real32 TextureObjChunkBase::getSkipMipMapLevels(void) const
691 return _sfSkipMipMapLevels.getValue();
694 //! Set the value of the TextureObjChunk::_sfSkipMipMapLevels field.
696 void TextureObjChunkBase::setSkipMipMapLevels(const Real32 value)
698 editSField(SkipMipMapLevelsFieldMask);
700 _sfSkipMipMapLevels.setValue(value);
704 #ifdef OSG_MT_CPTR_ASPECT
706 void TextureObjChunkBase::execSync ( TextureObjChunkBase *pFrom,
707 ConstFieldMaskArg whichField,
708 AspectOffsetStore &oOffsets,
709 ConstFieldMaskArg syncMode,
710 const UInt32 uiSyncInfo)
712 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
714 if(FieldBits::NoField != (ImageFieldMask & whichField))
715 _sfImage.syncWith(pFrom->_sfImage);
717 if(FieldBits::NoField != (InternalFormatFieldMask & whichField))
718 _sfInternalFormat.syncWith(pFrom->_sfInternalFormat);
720 if(FieldBits::NoField != (ExternalFormatFieldMask & whichField))
721 _sfExternalFormat.syncWith(pFrom->_sfExternalFormat);
723 if(FieldBits::NoField != (ScaleFieldMask & whichField))
724 _sfScale.syncWith(pFrom->_sfScale);
726 if(FieldBits::NoField != (FrameFieldMask & whichField))
727 _sfFrame.syncWith(pFrom->_sfFrame);
729 if(FieldBits::NoField != (MinFilterFieldMask & whichField))
730 _sfMinFilter.syncWith(pFrom->_sfMinFilter);
732 if(FieldBits::NoField != (MagFilterFieldMask & whichField))
733 _sfMagFilter.syncWith(pFrom->_sfMagFilter);
735 if(FieldBits::NoField != (WrapSFieldMask & whichField))
736 _sfWrapS.syncWith(pFrom->_sfWrapS);
738 if(FieldBits::NoField != (WrapTFieldMask & whichField))
739 _sfWrapT.syncWith(pFrom->_sfWrapT);
741 if(FieldBits::NoField != (WrapRFieldMask & whichField))
742 _sfWrapR.syncWith(pFrom->_sfWrapR);
744 if(FieldBits::NoField != (GLIdFieldMask & whichField))
745 _sfGLId.syncWith(pFrom->_sfGLId);
747 if(FieldBits::NoField != (PriorityFieldMask & whichField))
748 _sfPriority.syncWith(pFrom->_sfPriority);
750 if(FieldBits::NoField != (DirtyLeftFieldMask & whichField))
751 _sfDirtyLeft.syncWith(pFrom->_sfDirtyLeft);
753 if(FieldBits::NoField != (DirtyMinXFieldMask & whichField))
754 _sfDirtyMinX.syncWith(pFrom->_sfDirtyMinX);
756 if(FieldBits::NoField != (DirtyMaxXFieldMask & whichField))
757 _sfDirtyMaxX.syncWith(pFrom->_sfDirtyMaxX);
759 if(FieldBits::NoField != (DirtyMinYFieldMask & whichField))
760 _sfDirtyMinY.syncWith(pFrom->_sfDirtyMinY);
762 if(FieldBits::NoField != (DirtyMaxYFieldMask & whichField))
763 _sfDirtyMaxY.syncWith(pFrom->_sfDirtyMaxY);
765 if(FieldBits::NoField != (DirtyMinZFieldMask & whichField))
766 _sfDirtyMinZ.syncWith(pFrom->_sfDirtyMinZ);
768 if(FieldBits::NoField != (DirtyMaxZFieldMask & whichField))
769 _sfDirtyMaxZ.syncWith(pFrom->_sfDirtyMaxZ);
771 if(FieldBits::NoField != (AnisotropyFieldMask & whichField))
772 _sfAnisotropy.syncWith(pFrom->_sfAnisotropy);
774 if(FieldBits::NoField != (BorderColorFieldMask & whichField))
775 _sfBorderColor.syncWith(pFrom->_sfBorderColor);
777 if(FieldBits::NoField != (CompareModeFieldMask & whichField))
778 _sfCompareMode.syncWith(pFrom->_sfCompareMode);
780 if(FieldBits::NoField != (CompareFuncFieldMask & whichField))
781 _sfCompareFunc.syncWith(pFrom->_sfCompareFunc);
783 if(FieldBits::NoField != (DepthModeFieldMask & whichField))
784 _sfDepthMode.syncWith(pFrom->_sfDepthMode);
786 if(FieldBits::NoField != (BorderWidthFieldMask & whichField))
787 _sfBorderWidth.syncWith(pFrom->_sfBorderWidth);
789 if(FieldBits::NoField != (SkipMipMapLevelsFieldMask & whichField))
790 _sfSkipMipMapLevels.syncWith(pFrom->_sfSkipMipMapLevels);
796 const Char8 *TextureObjChunkBase::getClassname(void)
798 return "TextureObjChunk";
800 OSG_GEN_CONTAINERPTR(TextureObjChunk);