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 Particles! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &ParticlesBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 ParticlesBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00071 inline 00072 ParticlesPtr ParticlesBase::create(void) 00073 { 00074 ParticlesPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = ParticlesPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 } 00084 00086 inline 00087 ParticlesPtr ParticlesBase::createEmpty(void) 00088 { 00089 ParticlesPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 } 00095 00096 00097 /*------------------------------ get -----------------------------------*/ 00098 00100 inline 00101 SFUInt32 *ParticlesBase::getSFMode(void) 00102 { 00103 return &_sfMode; 00104 } 00105 00107 inline 00108 SFGeoPositionsPtr *ParticlesBase::getSFPositions(void) 00109 { 00110 return &_sfPositions; 00111 } 00112 00114 inline 00115 MFVec3f *ParticlesBase::getMFSizes(void) 00116 { 00117 return &_mfSizes; 00118 } 00119 00121 inline 00122 SFGeoPositionsPtr *ParticlesBase::getSFSecPositions(void) 00123 { 00124 return &_sfSecPositions; 00125 } 00126 00128 inline 00129 SFGeoColorsPtr *ParticlesBase::getSFColors(void) 00130 { 00131 return &_sfColors; 00132 } 00133 00135 inline 00136 SFGeoNormalsPtr *ParticlesBase::getSFNormals(void) 00137 { 00138 return &_sfNormals; 00139 } 00140 00142 inline 00143 MFInt32 *ParticlesBase::getMFIndices(void) 00144 { 00145 return &_mfIndices; 00146 } 00147 00149 inline 00150 MFReal32 *ParticlesBase::getMFTextureZs(void) 00151 { 00152 return &_mfTextureZs; 00153 } 00154 00156 inline 00157 SFUInt32 *ParticlesBase::getSFDrawOrder(void) 00158 { 00159 return &_sfDrawOrder; 00160 } 00161 00163 inline 00164 SFBool *ParticlesBase::getSFDynamic(void) 00165 { 00166 return &_sfDynamic; 00167 } 00168 00170 inline 00171 SFUInt32 *ParticlesBase::getSFPump(void) 00172 { 00173 return &_sfPump; 00174 } 00175 00177 inline 00178 SFParticleBSPTree *ParticlesBase::getSFBsp(void) 00179 { 00180 return &_sfBsp; 00181 } 00182 00184 inline 00185 SFInt32 *ParticlesBase::getSFNumParticles(void) 00186 { 00187 return &_sfNumParticles; 00188 } 00189 00190 00192 inline 00193 UInt32 &ParticlesBase::getMode(void) 00194 { 00195 return _sfMode.getValue(); 00196 } 00197 00199 inline 00200 const UInt32 &ParticlesBase::getMode(void) const 00201 { 00202 return _sfMode.getValue(); 00203 } 00204 00206 inline 00207 void ParticlesBase::setMode(const UInt32 &value) 00208 { 00209 _sfMode.setValue(value); 00210 } 00211 00213 inline 00214 GeoPositionsPtr &ParticlesBase::getPositions(void) 00215 { 00216 return _sfPositions.getValue(); 00217 } 00218 00220 inline 00221 const GeoPositionsPtr &ParticlesBase::getPositions(void) const 00222 { 00223 return _sfPositions.getValue(); 00224 } 00225 00227 inline 00228 void ParticlesBase::setPositions(const GeoPositionsPtr &value) 00229 { 00230 _sfPositions.setValue(value); 00231 } 00232 00234 inline 00235 GeoPositionsPtr &ParticlesBase::getSecPositions(void) 00236 { 00237 return _sfSecPositions.getValue(); 00238 } 00239 00241 inline 00242 const GeoPositionsPtr &ParticlesBase::getSecPositions(void) const 00243 { 00244 return _sfSecPositions.getValue(); 00245 } 00246 00248 inline 00249 void ParticlesBase::setSecPositions(const GeoPositionsPtr &value) 00250 { 00251 _sfSecPositions.setValue(value); 00252 } 00253 00255 inline 00256 GeoColorsPtr &ParticlesBase::getColors(void) 00257 { 00258 return _sfColors.getValue(); 00259 } 00260 00262 inline 00263 const GeoColorsPtr &ParticlesBase::getColors(void) const 00264 { 00265 return _sfColors.getValue(); 00266 } 00267 00269 inline 00270 void ParticlesBase::setColors(const GeoColorsPtr &value) 00271 { 00272 _sfColors.setValue(value); 00273 } 00274 00276 inline 00277 GeoNormalsPtr &ParticlesBase::getNormals(void) 00278 { 00279 return _sfNormals.getValue(); 00280 } 00281 00283 inline 00284 const GeoNormalsPtr &ParticlesBase::getNormals(void) const 00285 { 00286 return _sfNormals.getValue(); 00287 } 00288 00290 inline 00291 void ParticlesBase::setNormals(const GeoNormalsPtr &value) 00292 { 00293 _sfNormals.setValue(value); 00294 } 00295 00297 inline 00298 UInt32 &ParticlesBase::getDrawOrder(void) 00299 { 00300 return _sfDrawOrder.getValue(); 00301 } 00302 00304 inline 00305 const UInt32 &ParticlesBase::getDrawOrder(void) const 00306 { 00307 return _sfDrawOrder.getValue(); 00308 } 00309 00311 inline 00312 void ParticlesBase::setDrawOrder(const UInt32 &value) 00313 { 00314 _sfDrawOrder.setValue(value); 00315 } 00316 00318 inline 00319 bool &ParticlesBase::getDynamic(void) 00320 { 00321 return _sfDynamic.getValue(); 00322 } 00323 00325 inline 00326 const bool &ParticlesBase::getDynamic(void) const 00327 { 00328 return _sfDynamic.getValue(); 00329 } 00330 00332 inline 00333 void ParticlesBase::setDynamic(const bool &value) 00334 { 00335 _sfDynamic.setValue(value); 00336 } 00337 00339 inline 00340 UInt32 &ParticlesBase::getPump(void) 00341 { 00342 return _sfPump.getValue(); 00343 } 00344 00346 inline 00347 const UInt32 &ParticlesBase::getPump(void) const 00348 { 00349 return _sfPump.getValue(); 00350 } 00351 00353 inline 00354 void ParticlesBase::setPump(const UInt32 &value) 00355 { 00356 _sfPump.setValue(value); 00357 } 00358 00360 inline 00361 ParticleBSPTree &ParticlesBase::getBsp(void) 00362 { 00363 return _sfBsp.getValue(); 00364 } 00365 00367 inline 00368 const ParticleBSPTree &ParticlesBase::getBsp(void) const 00369 { 00370 return _sfBsp.getValue(); 00371 } 00372 00374 inline 00375 void ParticlesBase::setBsp(const ParticleBSPTree &value) 00376 { 00377 _sfBsp.setValue(value); 00378 } 00379 00381 inline 00382 Int32 &ParticlesBase::getNumParticles(void) 00383 { 00384 return _sfNumParticles.getValue(); 00385 } 00386 00388 inline 00389 const Int32 &ParticlesBase::getNumParticles(void) const 00390 { 00391 return _sfNumParticles.getValue(); 00392 } 00393 00395 inline 00396 void ParticlesBase::setNumParticles(const Int32 &value) 00397 { 00398 _sfNumParticles.setValue(value); 00399 } 00400 00401 00403 inline 00404 Vec3f &ParticlesBase::getSizes(const UInt32 index) 00405 { 00406 return _mfSizes[index]; 00407 } 00408 00410 inline 00411 MFVec3f &ParticlesBase::getSizes(void) 00412 { 00413 return _mfSizes; 00414 } 00415 00417 inline 00418 const MFVec3f &ParticlesBase::getSizes(void) const 00419 { 00420 return _mfSizes; 00421 } 00422 00424 inline 00425 Int32 &ParticlesBase::getIndices(const UInt32 index) 00426 { 00427 return _mfIndices[index]; 00428 } 00429 00431 inline 00432 MFInt32 &ParticlesBase::getIndices(void) 00433 { 00434 return _mfIndices; 00435 } 00436 00438 inline 00439 const MFInt32 &ParticlesBase::getIndices(void) const 00440 { 00441 return _mfIndices; 00442 } 00443 00445 inline 00446 Real32 &ParticlesBase::getTextureZs(const UInt32 index) 00447 { 00448 return _mfTextureZs[index]; 00449 } 00450 00452 inline 00453 MFReal32 &ParticlesBase::getTextureZs(void) 00454 { 00455 return _mfTextureZs; 00456 } 00457 00459 inline 00460 const MFReal32 &ParticlesBase::getTextureZs(void) const 00461 { 00462 return _mfTextureZs; 00463 } 00464 00465 OSG_END_NAMESPACE 00466 00467 #define OSGPARTICLESBASE_INLINE_CVSID "@(#)$Id: FCBaseTemplate_inl.h,v 1.20 2002/12/04 14:22:22 dirk Exp $" 00468
1.5.5