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 Image! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &ImageBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 ImageBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00071 inline 00072 ImagePtr ImageBase::create(void) 00073 { 00074 ImagePtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = ImagePtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 } 00084 00086 inline 00087 ImagePtr ImageBase::createEmpty(void) 00088 { 00089 ImagePtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 } 00095 00096 00097 /*------------------------------ get -----------------------------------*/ 00098 00100 inline 00101 MFFieldContainerPtr *ImageBase::getMFParents(void) 00102 { 00103 return &_mfParents; 00104 } 00105 00107 inline 00108 SFInt32 *ImageBase::getSFDimension(void) 00109 { 00110 return &_sfDimension; 00111 } 00112 00114 inline 00115 SFInt32 *ImageBase::getSFWidth(void) 00116 { 00117 return &_sfWidth; 00118 } 00119 00121 inline 00122 SFInt32 *ImageBase::getSFHeight(void) 00123 { 00124 return &_sfHeight; 00125 } 00126 00128 inline 00129 SFInt32 *ImageBase::getSFDepth(void) 00130 { 00131 return &_sfDepth; 00132 } 00133 00135 inline 00136 SFInt32 *ImageBase::getSFBpp(void) 00137 { 00138 return &_sfBpp; 00139 } 00140 00142 inline 00143 SFInt32 *ImageBase::getSFMipMapCount(void) 00144 { 00145 return &_sfMipMapCount; 00146 } 00147 00149 inline 00150 SFInt32 *ImageBase::getSFFrameCount(void) 00151 { 00152 return &_sfFrameCount; 00153 } 00154 00156 inline 00157 SFTime *ImageBase::getSFFrameDelay(void) 00158 { 00159 return &_sfFrameDelay; 00160 } 00161 00163 inline 00164 SFUInt32 *ImageBase::getSFPixelFormat(void) 00165 { 00166 return &_sfPixelFormat; 00167 } 00168 00170 inline 00171 MFUInt8 *ImageBase::getMFPixel(void) 00172 { 00173 return &_mfPixel; 00174 } 00175 00177 inline 00178 SFInt32 *ImageBase::getSFFrameSize(void) 00179 { 00180 return &_sfFrameSize; 00181 } 00182 00184 inline 00185 SFString *ImageBase::getSFName(void) 00186 { 00187 return &_sfName; 00188 } 00189 00191 inline 00192 SFInt32 *ImageBase::getSFDataType(void) 00193 { 00194 return &_sfDataType; 00195 } 00196 00198 inline 00199 SFInt32 *ImageBase::getSFComponentSize(void) 00200 { 00201 return &_sfComponentSize; 00202 } 00203 00205 inline 00206 SFInt32 *ImageBase::getSFSideCount(void) 00207 { 00208 return &_sfSideCount; 00209 } 00210 00212 inline 00213 SFInt32 *ImageBase::getSFSideSize(void) 00214 { 00215 return &_sfSideSize; 00216 } 00217 00219 inline 00220 SFBool *ImageBase::getSFForceCompressedData(void) 00221 { 00222 return &_sfForceCompressedData; 00223 } 00224 00226 inline 00227 SFBool *ImageBase::getSFForceAlphaChannel(void) 00228 { 00229 return &_sfForceAlphaChannel; 00230 } 00231 00233 inline 00234 SFBool *ImageBase::getSFForceColorChannel(void) 00235 { 00236 return &_sfForceColorChannel; 00237 } 00238 00240 inline 00241 SFBool *ImageBase::getSFForceAlphaBinary(void) 00242 { 00243 return &_sfForceAlphaBinary; 00244 } 00245 00247 inline 00248 SFReal32 *ImageBase::getSFResX(void) 00249 { 00250 return &_sfResX; 00251 } 00252 00254 inline 00255 SFReal32 *ImageBase::getSFResY(void) 00256 { 00257 return &_sfResY; 00258 } 00259 00261 inline 00262 SFUInt16 *ImageBase::getSFResUnit(void) 00263 { 00264 return &_sfResUnit; 00265 } 00266 00267 00269 inline 00270 Int32 &ImageBase::getDimension(void) 00271 { 00272 return _sfDimension.getValue(); 00273 } 00274 00276 inline 00277 const Int32 &ImageBase::getDimension(void) const 00278 { 00279 return _sfDimension.getValue(); 00280 } 00281 00283 inline 00284 void ImageBase::setDimension(const Int32 &value) 00285 { 00286 _sfDimension.setValue(value); 00287 } 00288 00290 inline 00291 Int32 &ImageBase::getWidth(void) 00292 { 00293 return _sfWidth.getValue(); 00294 } 00295 00297 inline 00298 const Int32 &ImageBase::getWidth(void) const 00299 { 00300 return _sfWidth.getValue(); 00301 } 00302 00304 inline 00305 void ImageBase::setWidth(const Int32 &value) 00306 { 00307 _sfWidth.setValue(value); 00308 } 00309 00311 inline 00312 Int32 &ImageBase::getHeight(void) 00313 { 00314 return _sfHeight.getValue(); 00315 } 00316 00318 inline 00319 const Int32 &ImageBase::getHeight(void) const 00320 { 00321 return _sfHeight.getValue(); 00322 } 00323 00325 inline 00326 void ImageBase::setHeight(const Int32 &value) 00327 { 00328 _sfHeight.setValue(value); 00329 } 00330 00332 inline 00333 Int32 &ImageBase::getDepth(void) 00334 { 00335 return _sfDepth.getValue(); 00336 } 00337 00339 inline 00340 const Int32 &ImageBase::getDepth(void) const 00341 { 00342 return _sfDepth.getValue(); 00343 } 00344 00346 inline 00347 void ImageBase::setDepth(const Int32 &value) 00348 { 00349 _sfDepth.setValue(value); 00350 } 00351 00353 inline 00354 Int32 &ImageBase::getBpp(void) 00355 { 00356 return _sfBpp.getValue(); 00357 } 00358 00360 inline 00361 const Int32 &ImageBase::getBpp(void) const 00362 { 00363 return _sfBpp.getValue(); 00364 } 00365 00367 inline 00368 void ImageBase::setBpp(const Int32 &value) 00369 { 00370 _sfBpp.setValue(value); 00371 } 00372 00374 inline 00375 Int32 &ImageBase::getMipMapCount(void) 00376 { 00377 return _sfMipMapCount.getValue(); 00378 } 00379 00381 inline 00382 const Int32 &ImageBase::getMipMapCount(void) const 00383 { 00384 return _sfMipMapCount.getValue(); 00385 } 00386 00388 inline 00389 void ImageBase::setMipMapCount(const Int32 &value) 00390 { 00391 _sfMipMapCount.setValue(value); 00392 } 00393 00395 inline 00396 Int32 &ImageBase::getFrameCount(void) 00397 { 00398 return _sfFrameCount.getValue(); 00399 } 00400 00402 inline 00403 const Int32 &ImageBase::getFrameCount(void) const 00404 { 00405 return _sfFrameCount.getValue(); 00406 } 00407 00409 inline 00410 void ImageBase::setFrameCount(const Int32 &value) 00411 { 00412 _sfFrameCount.setValue(value); 00413 } 00414 00416 inline 00417 Time &ImageBase::getFrameDelay(void) 00418 { 00419 return _sfFrameDelay.getValue(); 00420 } 00421 00423 inline 00424 const Time &ImageBase::getFrameDelay(void) const 00425 { 00426 return _sfFrameDelay.getValue(); 00427 } 00428 00430 inline 00431 void ImageBase::setFrameDelay(const Time &value) 00432 { 00433 _sfFrameDelay.setValue(value); 00434 } 00435 00437 inline 00438 UInt32 &ImageBase::getPixelFormat(void) 00439 { 00440 return _sfPixelFormat.getValue(); 00441 } 00442 00444 inline 00445 const UInt32 &ImageBase::getPixelFormat(void) const 00446 { 00447 return _sfPixelFormat.getValue(); 00448 } 00449 00451 inline 00452 void ImageBase::setPixelFormat(const UInt32 &value) 00453 { 00454 _sfPixelFormat.setValue(value); 00455 } 00456 00458 inline 00459 Int32 &ImageBase::getFrameSize(void) 00460 { 00461 return _sfFrameSize.getValue(); 00462 } 00463 00465 inline 00466 const Int32 &ImageBase::getFrameSize(void) const 00467 { 00468 return _sfFrameSize.getValue(); 00469 } 00470 00472 inline 00473 void ImageBase::setFrameSize(const Int32 &value) 00474 { 00475 _sfFrameSize.setValue(value); 00476 } 00477 00479 inline 00480 std::string &ImageBase::getName(void) 00481 { 00482 return _sfName.getValue(); 00483 } 00484 00486 inline 00487 const std::string &ImageBase::getName(void) const 00488 { 00489 return _sfName.getValue(); 00490 } 00491 00493 inline 00494 void ImageBase::setName(const std::string &value) 00495 { 00496 _sfName.setValue(value); 00497 } 00498 00500 inline 00501 Int32 &ImageBase::getDataType(void) 00502 { 00503 return _sfDataType.getValue(); 00504 } 00505 00507 inline 00508 const Int32 &ImageBase::getDataType(void) const 00509 { 00510 return _sfDataType.getValue(); 00511 } 00512 00514 inline 00515 void ImageBase::setDataType(const Int32 &value) 00516 { 00517 _sfDataType.setValue(value); 00518 } 00519 00521 inline 00522 Int32 &ImageBase::getComponentSize(void) 00523 { 00524 return _sfComponentSize.getValue(); 00525 } 00526 00528 inline 00529 const Int32 &ImageBase::getComponentSize(void) const 00530 { 00531 return _sfComponentSize.getValue(); 00532 } 00533 00535 inline 00536 void ImageBase::setComponentSize(const Int32 &value) 00537 { 00538 _sfComponentSize.setValue(value); 00539 } 00540 00542 inline 00543 Int32 &ImageBase::getSideCount(void) 00544 { 00545 return _sfSideCount.getValue(); 00546 } 00547 00549 inline 00550 const Int32 &ImageBase::getSideCount(void) const 00551 { 00552 return _sfSideCount.getValue(); 00553 } 00554 00556 inline 00557 void ImageBase::setSideCount(const Int32 &value) 00558 { 00559 _sfSideCount.setValue(value); 00560 } 00561 00563 inline 00564 Int32 &ImageBase::getSideSize(void) 00565 { 00566 return _sfSideSize.getValue(); 00567 } 00568 00570 inline 00571 const Int32 &ImageBase::getSideSize(void) const 00572 { 00573 return _sfSideSize.getValue(); 00574 } 00575 00577 inline 00578 void ImageBase::setSideSize(const Int32 &value) 00579 { 00580 _sfSideSize.setValue(value); 00581 } 00582 00584 inline 00585 bool &ImageBase::getForceCompressedData(void) 00586 { 00587 return _sfForceCompressedData.getValue(); 00588 } 00589 00591 inline 00592 const bool &ImageBase::getForceCompressedData(void) const 00593 { 00594 return _sfForceCompressedData.getValue(); 00595 } 00596 00598 inline 00599 void ImageBase::setForceCompressedData(const bool &value) 00600 { 00601 _sfForceCompressedData.setValue(value); 00602 } 00603 00605 inline 00606 bool &ImageBase::getForceAlphaChannel(void) 00607 { 00608 return _sfForceAlphaChannel.getValue(); 00609 } 00610 00612 inline 00613 const bool &ImageBase::getForceAlphaChannel(void) const 00614 { 00615 return _sfForceAlphaChannel.getValue(); 00616 } 00617 00619 inline 00620 void ImageBase::setForceAlphaChannel(const bool &value) 00621 { 00622 _sfForceAlphaChannel.setValue(value); 00623 } 00624 00626 inline 00627 bool &ImageBase::getForceColorChannel(void) 00628 { 00629 return _sfForceColorChannel.getValue(); 00630 } 00631 00633 inline 00634 const bool &ImageBase::getForceColorChannel(void) const 00635 { 00636 return _sfForceColorChannel.getValue(); 00637 } 00638 00640 inline 00641 void ImageBase::setForceColorChannel(const bool &value) 00642 { 00643 _sfForceColorChannel.setValue(value); 00644 } 00645 00647 inline 00648 bool &ImageBase::getForceAlphaBinary(void) 00649 { 00650 return _sfForceAlphaBinary.getValue(); 00651 } 00652 00654 inline 00655 const bool &ImageBase::getForceAlphaBinary(void) const 00656 { 00657 return _sfForceAlphaBinary.getValue(); 00658 } 00659 00661 inline 00662 void ImageBase::setForceAlphaBinary(const bool &value) 00663 { 00664 _sfForceAlphaBinary.setValue(value); 00665 } 00666 00668 inline 00669 Real32 &ImageBase::getResX(void) 00670 { 00671 return _sfResX.getValue(); 00672 } 00673 00675 inline 00676 const Real32 &ImageBase::getResX(void) const 00677 { 00678 return _sfResX.getValue(); 00679 } 00680 00682 inline 00683 void ImageBase::setResX(const Real32 &value) 00684 { 00685 _sfResX.setValue(value); 00686 } 00687 00689 inline 00690 Real32 &ImageBase::getResY(void) 00691 { 00692 return _sfResY.getValue(); 00693 } 00694 00696 inline 00697 const Real32 &ImageBase::getResY(void) const 00698 { 00699 return _sfResY.getValue(); 00700 } 00701 00703 inline 00704 void ImageBase::setResY(const Real32 &value) 00705 { 00706 _sfResY.setValue(value); 00707 } 00708 00710 inline 00711 UInt16 &ImageBase::getResUnit(void) 00712 { 00713 return _sfResUnit.getValue(); 00714 } 00715 00717 inline 00718 const UInt16 &ImageBase::getResUnit(void) const 00719 { 00720 return _sfResUnit.getValue(); 00721 } 00722 00724 inline 00725 void ImageBase::setResUnit(const UInt16 &value) 00726 { 00727 _sfResUnit.setValue(value); 00728 } 00729 00730 00732 inline 00733 FieldContainerPtr &ImageBase::getParents(const UInt32 index) 00734 { 00735 return _mfParents[index]; 00736 } 00737 00739 inline 00740 MFFieldContainerPtr &ImageBase::getParents(void) 00741 { 00742 return _mfParents; 00743 } 00744 00746 inline 00747 const MFFieldContainerPtr &ImageBase::getParents(void) const 00748 { 00749 return _mfParents; 00750 } 00751 00753 inline 00754 UInt8 &ImageBase::getPixel(const UInt32 index) 00755 { 00756 return _mfPixel[index]; 00757 } 00758 00760 inline 00761 MFUInt8 &ImageBase::getPixel(void) 00762 { 00763 return _mfPixel; 00764 } 00765 00767 inline 00768 const MFUInt8 &ImageBase::getPixel(void) const 00769 { 00770 return _mfPixel; 00771 } 00772 00773 OSG_END_NAMESPACE 00774 00775 #define OSGIMAGEBASE_INLINE_CVSID "@(#)$Id: FCBaseTemplate_inl.h,v 1.20 2002/12/04 14:22:22 dirk Exp $" 00776
1.5.5