Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGSurfaceBase.inl

Go to the documentation of this file.
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 Surface!
00047  **                                                                         **
00048  *****************************************************************************
00049 \*****************************************************************************/
00050 
00051 #include <OSGConfig.h>
00052 
00053 OSG_BEGIN_NAMESPACE
00054 
00055 
00057 inline
00058 OSG::FieldContainerType &SurfaceBase::getClassType(void)
00059 {
00060     return _type; 
00061 } 
00062 
00064 inline
00065 OSG::UInt32 SurfaceBase::getClassTypeId(void) 
00066 {
00067     return _type.getId(); 
00068 } 
00069 
00071 inline
00072 SurfacePtr SurfaceBase::create(void) 
00073 {
00074     SurfacePtr fc; 
00075 
00076     if(getClassType().getPrototype() != OSG::NullFC) 
00077     {
00078         fc = SurfacePtr::dcast(
00079             getClassType().getPrototype()-> shallowCopy()); 
00080     }
00081     
00082     return fc; 
00083 }
00084 
00086 inline
00087 SurfacePtr SurfaceBase::createEmpty(void) 
00088 { 
00089     SurfacePtr returnValue; 
00090     
00091     newPtr(returnValue); 
00092 
00093     return returnValue; 
00094 }
00095 
00096 
00097 /*------------------------------ get -----------------------------------*/
00098 
00100 inline
00101 SFUInt32 *SurfaceBase::getSFDimU(void)
00102 {
00103     return &_sfDimU;
00104 }
00105 
00107 inline
00108 SFUInt32 *SurfaceBase::getSFDimV(void)
00109 {
00110     return &_sfDimV;
00111 }
00112 
00114 inline
00115 MFReal32 *SurfaceBase::getMFKnotsU(void)
00116 {
00117     return &_mfKnotsU;
00118 }
00119 
00121 inline
00122 MFReal32 *SurfaceBase::getMFKnotsV(void)
00123 {
00124     return &_mfKnotsV;
00125 }
00126 
00128 inline
00129 SFGeoPositionsPtr *SurfaceBase::getSFControlPoints(void)
00130 {
00131     return &_sfControlPoints;
00132 }
00133 
00135 inline
00136 SFReal32 *SurfaceBase::getSFError(void)
00137 {
00138     return &_sfError;
00139 }
00140 
00142 inline
00143 SFUInt32 *SurfaceBase::getSFNumCurves(void)
00144 {
00145     return &_sfNumCurves;
00146 }
00147 
00149 inline
00150 MFUInt32 *SurfaceBase::getMFKnotLengths(void)
00151 {
00152     return &_mfKnotLengths;
00153 }
00154 
00156 inline
00157 MFUInt32 *SurfaceBase::getMFDimensions(void)
00158 {
00159     return &_mfDimensions;
00160 }
00161 
00163 inline
00164 MFPnt3f *SurfaceBase::getMFCurveControlPoints(void)
00165 {
00166     return &_mfCurveControlPoints;
00167 }
00168 
00170 inline
00171 MFReal32 *SurfaceBase::getMFKnots(void)
00172 {
00173     return &_mfKnots;
00174 }
00175 
00177 inline
00178 MFUInt32 *SurfaceBase::getMFCurvesPerLoop(void)
00179 {
00180     return &_mfCurvesPerLoop;
00181 }
00182 
00184 inline
00185 SFBool *SurfaceBase::getSFIsDelaunay(void)
00186 {
00187     return &_sfIsDelaunay;
00188 }
00189 
00191 inline
00192 SFGeoTexCoordsPtr *SurfaceBase::getSFTextureControlPoints(void)
00193 {
00194     return &_sfTextureControlPoints;
00195 }
00196 
00198 inline
00199 SFUInt32 *SurfaceBase::getSFDirtyMask(void)
00200 {
00201     return &_sfDirtyMask;
00202 }
00203 
00205 inline
00206 SFInt32 *SurfaceBase::getSFSurfaceGLId(void)
00207 {
00208     return &_sfSurfaceGLId;
00209 }
00210 
00211 
00213 inline
00214 UInt32 &SurfaceBase::getDimU(void)
00215 {
00216     return _sfDimU.getValue();
00217 }
00218 
00220 inline
00221 const UInt32 &SurfaceBase::getDimU(void) const
00222 {
00223     return _sfDimU.getValue();
00224 }
00225 
00227 inline
00228 void SurfaceBase::setDimU(const UInt32 &value)
00229 {
00230     _sfDimU.setValue(value);
00231 }
00232 
00234 inline
00235 UInt32 &SurfaceBase::getDimV(void)
00236 {
00237     return _sfDimV.getValue();
00238 }
00239 
00241 inline
00242 const UInt32 &SurfaceBase::getDimV(void) const
00243 {
00244     return _sfDimV.getValue();
00245 }
00246 
00248 inline
00249 void SurfaceBase::setDimV(const UInt32 &value)
00250 {
00251     _sfDimV.setValue(value);
00252 }
00253 
00255 inline
00256 GeoPositionsPtr &SurfaceBase::getControlPoints(void)
00257 {
00258     return _sfControlPoints.getValue();
00259 }
00260 
00262 inline
00263 const GeoPositionsPtr &SurfaceBase::getControlPoints(void) const
00264 {
00265     return _sfControlPoints.getValue();
00266 }
00267 
00269 inline
00270 void SurfaceBase::setControlPoints(const GeoPositionsPtr &value)
00271 {
00272     _sfControlPoints.setValue(value);
00273 }
00274 
00276 inline
00277 Real32 &SurfaceBase::getError(void)
00278 {
00279     return _sfError.getValue();
00280 }
00281 
00283 inline
00284 const Real32 &SurfaceBase::getError(void) const
00285 {
00286     return _sfError.getValue();
00287 }
00288 
00290 inline
00291 void SurfaceBase::setError(const Real32 &value)
00292 {
00293     _sfError.setValue(value);
00294 }
00295 
00297 inline
00298 UInt32 &SurfaceBase::getNumCurves(void)
00299 {
00300     return _sfNumCurves.getValue();
00301 }
00302 
00304 inline
00305 const UInt32 &SurfaceBase::getNumCurves(void) const
00306 {
00307     return _sfNumCurves.getValue();
00308 }
00309 
00311 inline
00312 void SurfaceBase::setNumCurves(const UInt32 &value)
00313 {
00314     _sfNumCurves.setValue(value);
00315 }
00316 
00318 inline
00319 bool &SurfaceBase::getIsDelaunay(void)
00320 {
00321     return _sfIsDelaunay.getValue();
00322 }
00323 
00325 inline
00326 const bool &SurfaceBase::getIsDelaunay(void) const
00327 {
00328     return _sfIsDelaunay.getValue();
00329 }
00330 
00332 inline
00333 void SurfaceBase::setIsDelaunay(const bool &value)
00334 {
00335     _sfIsDelaunay.setValue(value);
00336 }
00337 
00339 inline
00340 GeoTexCoordsPtr &SurfaceBase::getTextureControlPoints(void)
00341 {
00342     return _sfTextureControlPoints.getValue();
00343 }
00344 
00346 inline
00347 const GeoTexCoordsPtr &SurfaceBase::getTextureControlPoints(void) const
00348 {
00349     return _sfTextureControlPoints.getValue();
00350 }
00351 
00353 inline
00354 void SurfaceBase::setTextureControlPoints(const GeoTexCoordsPtr &value)
00355 {
00356     _sfTextureControlPoints.setValue(value);
00357 }
00358 
00360 inline
00361 UInt32 &SurfaceBase::getDirtyMask(void)
00362 {
00363     return _sfDirtyMask.getValue();
00364 }
00365 
00367 inline
00368 const UInt32 &SurfaceBase::getDirtyMask(void) const
00369 {
00370     return _sfDirtyMask.getValue();
00371 }
00372 
00374 inline
00375 void SurfaceBase::setDirtyMask(const UInt32 &value)
00376 {
00377     _sfDirtyMask.setValue(value);
00378 }
00379 
00381 inline
00382 Int32 &SurfaceBase::getSurfaceGLId(void)
00383 {
00384     return _sfSurfaceGLId.getValue();
00385 }
00386 
00388 inline
00389 const Int32 &SurfaceBase::getSurfaceGLId(void) const
00390 {
00391     return _sfSurfaceGLId.getValue();
00392 }
00393 
00395 inline
00396 void SurfaceBase::setSurfaceGLId(const Int32 &value)
00397 {
00398     _sfSurfaceGLId.setValue(value);
00399 }
00400 
00401 
00403 inline
00404 Real32 &SurfaceBase::getKnotsU(const UInt32 index)
00405 {
00406     return _mfKnotsU[index];
00407 }
00408 
00410 inline
00411 MFReal32 &SurfaceBase::getKnotsU(void)
00412 {
00413     return _mfKnotsU;
00414 }
00415 
00417 inline
00418 const MFReal32 &SurfaceBase::getKnotsU(void) const
00419 {
00420     return _mfKnotsU;
00421 }
00422 
00424 inline
00425 Real32 &SurfaceBase::getKnotsV(const UInt32 index)
00426 {
00427     return _mfKnotsV[index];
00428 }
00429 
00431 inline
00432 MFReal32 &SurfaceBase::getKnotsV(void)
00433 {
00434     return _mfKnotsV;
00435 }
00436 
00438 inline
00439 const MFReal32 &SurfaceBase::getKnotsV(void) const
00440 {
00441     return _mfKnotsV;
00442 }
00443 
00445 inline
00446 UInt32 &SurfaceBase::getKnotLengths(const UInt32 index)
00447 {
00448     return _mfKnotLengths[index];
00449 }
00450 
00452 inline
00453 MFUInt32 &SurfaceBase::getKnotLengths(void)
00454 {
00455     return _mfKnotLengths;
00456 }
00457 
00459 inline
00460 const MFUInt32 &SurfaceBase::getKnotLengths(void) const
00461 {
00462     return _mfKnotLengths;
00463 }
00464 
00466 inline
00467 UInt32 &SurfaceBase::getDimensions(const UInt32 index)
00468 {
00469     return _mfDimensions[index];
00470 }
00471 
00473 inline
00474 MFUInt32 &SurfaceBase::getDimensions(void)
00475 {
00476     return _mfDimensions;
00477 }
00478 
00480 inline
00481 const MFUInt32 &SurfaceBase::getDimensions(void) const
00482 {
00483     return _mfDimensions;
00484 }
00485 
00487 inline
00488 Pnt3f &SurfaceBase::getCurveControlPoints(const UInt32 index)
00489 {
00490     return _mfCurveControlPoints[index];
00491 }
00492 
00494 inline
00495 MFPnt3f &SurfaceBase::getCurveControlPoints(void)
00496 {
00497     return _mfCurveControlPoints;
00498 }
00499 
00501 inline
00502 const MFPnt3f &SurfaceBase::getCurveControlPoints(void) const
00503 {
00504     return _mfCurveControlPoints;
00505 }
00506 
00508 inline
00509 Real32 &SurfaceBase::getKnots(const UInt32 index)
00510 {
00511     return _mfKnots[index];
00512 }
00513 
00515 inline
00516 MFReal32 &SurfaceBase::getKnots(void)
00517 {
00518     return _mfKnots;
00519 }
00520 
00522 inline
00523 const MFReal32 &SurfaceBase::getKnots(void) const
00524 {
00525     return _mfKnots;
00526 }
00527 
00529 inline
00530 UInt32 &SurfaceBase::getCurvesPerLoop(const UInt32 index)
00531 {
00532     return _mfCurvesPerLoop[index];
00533 }
00534 
00536 inline
00537 MFUInt32 &SurfaceBase::getCurvesPerLoop(void)
00538 {
00539     return _mfCurvesPerLoop;
00540 }
00541 
00543 inline
00544 const MFUInt32 &SurfaceBase::getCurvesPerLoop(void) const
00545 {
00546     return _mfCurvesPerLoop;
00547 }
00548 
00549 OSG_END_NAMESPACE
00550 
00551 #define OSGSURFACEBASE_INLINE_CVSID "@(#)$Id: $"
00552 

Generated on Thu Aug 25 04:11:10 2005 for OpenSG by  doxygen 1.4.3