bool osgWidget_Box_writeData(const osg::Object& obj, osgDB::Output& fw) { const osgWidget::Box& model = static_cast<const osgWidget::Box&>(obj); fw.indent() << fw.wrapString("Box stuff...") << std::endl; return true; }
bool osgWidget_NullWidget_writeData(const osg::Object& /*obj*/, osgDB::Output &fw) { // const osgWidget::NullWidget& model = static_cast<const osgWidget::NullWidget&>(obj); fw.indent() << fw.wrapString("NullWidget stuff...") << std::endl; return true; }
bool osgWidget_WindowManager_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) { // const osgWidget::WindowManager& model = static_cast<const osgWidget::WindowManager&>(obj); fw.indent() << fw.wrapString("WindowManager stuff...") << std::endl; return true; }
bool osgWidget_EmbeddedWindow_writeData(const osg::Object& /*obj*/, osgDB::Output& fw) { // const osgWidget::Window::EmbeddedWindow& model = static_cast<const osgWidget::Window::EmbeddedWindow&>(obj); fw.indent() << fw.wrapString("EmbeddedWindow stuff...") << std::endl; return true; }
bool Text3D_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgText::Text3D &text = static_cast<const osgText::Text3D &>(obj); fw.indent() << "characterDepth " << text.getCharacterDepth() << std::endl; fw.indent() << "renderMode " << convertRenderModeEnumToString(text.getRenderMode()) << std::endl; return true; }
bool Cartoon_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgFX::Cartoon &myobj = static_cast<const osgFX::Cartoon &>(obj); fw.indent() << "lightNumber " << myobj.getLightNumber() << "\n"; fw.indent() << "outlineColor " << myobj.getOutlineColor() << "\n"; fw.indent() << "outlineLineWidth " << myobj.getOutlineLineWidth() << "\n"; return true; }
bool SpecularHighlights_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgFX::SpecularHighlights &myobj = static_cast<const osgFX::SpecularHighlights &>(obj); fw.indent() << "lightNumber " << myobj.getLightNumber() << "\n"; fw.indent() << "textureUnit " << myobj.getTextureUnit() << "\n"; fw.indent() << "specularColor " << myobj.getSpecularColor() << "\n"; fw.indent() << "specularExponent " << myobj.getSpecularExponent() << "\n"; return true; }
bool SegmentPlacer_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::SegmentPlacer &myobj = static_cast<const osgParticle::SegmentPlacer &>(obj); osg::Vec3 v = myobj.getVertexA(); fw.indent() << "vertex_A " << v.x() << " " << v.y() << " " << v.z() << std::endl; v = myobj.getVertexB(); fw.indent() << "vertex_B " << v.x() << " " << v.y() << " " << v.z() << std::endl; return true; }
bool OrbitOperator_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::OrbitOperator &op = static_cast<const osgParticle::OrbitOperator &>(obj); osg::Vec3 a = op.getCenter(); fw.indent() << "center " << a.x() << " " << a.y() << " " << a.z() << std::endl; fw.indent() << "magnitude " << op.getMagnitude() << std::endl; fw.indent() << "epsilon " << op.getEpsilon() << std::endl; fw.indent() << "maxRadius " << op.getMaxRadius() << std::endl; return true; }
bool FluidFrictionOperator_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::FluidFrictionOperator &aop = static_cast<const osgParticle::FluidFrictionOperator &>(obj); fw.indent() << "fluidDensity " << aop.getFluidDensity() << std::endl; fw.indent() << "fluidViscosity " << aop.getFluidViscosity() << std::endl; fw.indent() << "overrideRadius " << aop.getOverrideRadius() << std::endl; osg::Vec3 w = aop.getWind(); fw.indent() << "wind " << w << std::endl; return true; }
bool ParticleSystem_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::ParticleSystem &myobj = static_cast<const osgParticle::ParticleSystem &>(obj); fw.indent() << "particleAlignment "; switch (myobj.getParticleAlignment()) { default: case osgParticle::ParticleSystem::BILLBOARD: fw << "BILLBOARD" << std::endl; break; case osgParticle::ParticleSystem::FIXED: fw << "FIXED" << std::endl; break; } fw.indent() << "particleScaleReferenceFrame "; switch (myobj.getParticleScaleReferenceFrame()) { default: case osgParticle::ParticleSystem::LOCAL_COORDINATES: fw << "LOCAL_COORDINATES" << std::endl; break; case osgParticle::ParticleSystem::WORLD_COORDINATES: fw << "WORLD_COORDINATES" << std::endl; break; } osg::Vec3 v = myobj.getAlignVectorX(); fw.indent() << "alignVectorX " << v.x() << " " << v.y() << " " << v.z() << std::endl; v = myobj.getAlignVectorY(); fw.indent() << "alignVectorY " << v.x() << " " << v.y() << " " << v.z() << std::endl; fw.indent() << "doublePassRendering "; if (myobj.getDoublePassRendering()) fw << "TRUE" << std::endl; else fw << "FALSE" << std::endl; fw.indent() << "frozen "; if (myobj.isFrozen()) fw << "TRUE" << std::endl; else fw << "FALSE" << std::endl; fw.indent() << "freezeOnCull "; if (myobj.getFreezeOnCull()) fw << "TRUE" << std::endl; else fw << "FALSE" << std::endl; osg::BoundingBox bbox = myobj.getDefaultBoundingBox(); fw.indent() << "defaultBoundingBox "; fw << bbox.xMin() << " " << bbox.yMin() << " " << bbox.zMin() << " "; fw << bbox.xMax() << " " << bbox.yMax() << " " << bbox.zMax() << std::endl; fw.indent() << "particleTemplate "; write_particle(myobj.getDefaultParticleTemplate(), fw); return true; }
bool ConeSector_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgSim::ConeSector §or = static_cast<const osgSim::ConeSector &>(obj); const osg::Vec3& axis = sector.getAxis(); fw.indent()<<"axis "<<axis<<std::endl; float angle = sector.getAngle(); float fadeangle = sector.getFadeAngle(); fw.indent()<<"angle "<<angle<<" "<<fadeangle<<std::endl; return true; }
bool ObjectRecordData_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgSim::ObjectRecordData &ord = static_cast<const osgSim::ObjectRecordData&>(obj); fw.indent() << "flags " << ord._flags << std::endl; fw.indent() << "relativePriority " << ord._relativePriority << std::endl; fw.indent() << "transparency " << ord._transparency << std::endl; fw.indent() << "effectID1 " << ord._effectID1 << std::endl; fw.indent() << "effectID2 " << ord._effectID2 << std::endl; fw.indent() << "significance " << ord._significance << std::endl; return true; }
bool SectorPlacer_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::SectorPlacer &myobj = static_cast<const osgParticle::SectorPlacer &>(obj); osgParticle::rangef r; r = myobj.getRadiusRange(); fw.indent() << "radiusRange " << r.minimum << " " << r.maximum << std::endl; r = myobj.getPhiRange(); fw.indent() << "phiRange " << r.minimum << " " << r.maximum << std::endl; return true; }
bool ExplosionOperator_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::ExplosionOperator &ep = static_cast<const osgParticle::ExplosionOperator&>(obj); osg::Vec3 a = ep.getCenter(); fw.indent() << "center " << a.x() << " " << a.y() << " " << a.z() << std::endl; fw.indent() << "radius " << ep.getRadius() << std::endl; fw.indent() << "magnitude " << ep.getMagnitude() << std::endl; fw.indent() << "epsilon " << ep.getEpsilon() << std::endl; fw.indent() << "sigma " << ep.getSigma() << std::endl; return true; }
bool DirectionalSector_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgSim::DirectionalSector §or = static_cast<const osgSim::DirectionalSector &>(obj); const osg::Vec3& axis = sector.getDirection(); fw.indent()<<"direction "<<axis<<std::endl; float horizangle = sector.getHorizLobeAngle(); float vertangle = sector.getVertLobeAngle(); float rollangle = sector.getLobeRollAngle(); float fadeangle = sector.getFadeAngle(); fw.indent()<<"angles "<<horizangle<<" "<<vertangle<<" "<<rollangle<<" "<<fadeangle<<std::endl; return true; }
bool AnisotropicLighting_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgFX::AnisotropicLighting &myobj = static_cast<const osgFX::AnisotropicLighting &>(obj); fw.indent() << "lightNumber " << myobj.getLightNumber() << "\n"; const osg::Image *lmap = myobj.getLightingMap(); if (lmap) { if (!lmap->getFileName().empty()) { fw.indent() << "lightingMapFileName \"" << lmap->getFileName() << "\"\n"; } } return true; }
bool AzimElevationSector_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgSim::AzimElevationSector §or = static_cast<const osgSim::AzimElevationSector &>(obj); float minElevation = sector.getMinElevation(); float maxElevation = sector.getMaxElevation(); float fadeAngle = sector.getFadeAngle(); fw.indent()<<"elevationRange "<<minElevation<< " "<<maxElevation<< " "<<fadeAngle<<std::endl; float minAzimuth, maxAzimuth; sector.getAzimuthRange(minAzimuth, maxAzimuth, fadeAngle); fw.indent()<<"azimuthRange "<<minAzimuth<< " "<<maxAzimuth<< " "<<fadeAngle<<std::endl; return true; }
bool BoxPlacer_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::BoxPlacer &myobj = static_cast<const osgParticle::BoxPlacer &>(obj); osgParticle::rangef r; r = myobj.getXRange(); fw.indent() << "xRange " << r.minimum << " " << r.maximum << std::endl; r = myobj.getYRange(); fw.indent() << "yRange " << r.minimum << " " << r.maximum << std::endl; r = myobj.getZRange(); fw.indent() << "zRange " << r.minimum << " " << r.maximum << std::endl; return true; }
bool Emitter_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::Emitter &myobj = static_cast<const osgParticle::Emitter &>(obj); fw.indent() << "useDefaultTemplate "; if (!myobj.getUseDefaultTemplate()) { fw << "FALSE" << std::endl; fw.indent() << "particleTemplate "; write_particle(myobj.getParticleTemplate(), fw); fw << std::endl; } else { fw << "TRUE" << std::endl; } return true; }
bool Layer_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgVolume::Layer &layer = static_cast<const osgVolume::Layer&>(obj); if (layer.getLocator()) { fw.writeObject(*layer.getLocator()); } if (layer.getProperty()) { fw.writeObject(*layer.getProperty()); } return true; }
bool Creation_writeLocalData( const osg::Object& obj, osgDB::Output& fw ) { const osgbDynamics::CreationRecord& cr = static_cast< const osgbDynamics::CreationRecord& >( obj ); fw.indent() << "Version " << 1 << std::endl; fw.indent() << "COM " << cr._com << std::endl; fw.indent() << "Use COM " << std::boolalpha << cr._comSet << std::endl; fw.indent() << "Scale " << cr._scale << std::endl; fw.indent() << "Collision shape " << (unsigned int)( cr._shapeType ) << std::endl; fw.indent() << "Mass " << cr._mass << std::endl; fw.indent() << "Cylinder axis " << cr._axis << std::endl; fw.indent() << "Reduction level " << cr._reductionLevel << std::endl; fw.indent() << "Overall " << std::boolalpha << cr._overall << std::endl; return( true ); }
bool AccelOperator_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::AccelOperator &aop = static_cast<const osgParticle::AccelOperator &>(obj); osg::Vec3 a = aop.getAcceleration(); fw.indent() << "acceleration " << a.x() << " " << a.y() << " " << a.z() << std::endl; return true; }
bool EphemerisModel_writeLocalData(const osg::Object& obj, osgDB::Output& fw) { const osgEphemeris::EphemerisModel &em = static_cast<const osgEphemeris::EphemerisModel &>(obj); fw.indent() << "Latitude " << em.getLatitude() << std::endl; fw.indent() << "Longitude " << em.getLongitude() << std::endl; fw.indent() << "SkyDomeRadius " << em.getSkyDomeRadius() << std::endl; fw.indent() << "AutoDateTime " << (em.getAutoDateTime()?"True":"False") << std::endl; fw.indent() << "MoveWithEyePoint " << (em.getMoveWithEyePoint()?"True":"False") << std::endl; fw.indent() << "SunLightNumber " << em.getSunLightNum() << std::endl; const osgEphemeris::EphemerisUpdateCallback *updateCallback = em.getEphemerisUpdateCallback(); if( updateCallback != 0L ) fw.indent() << "UpdateCallback " << updateCallback->getName() << std::endl; return true; }
bool SwitchLayer_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgTerrain::SwitchLayer &layer = static_cast<const osgTerrain::SwitchLayer&>(obj); fw.indent() << "ActiveLayer " << layer.getActiveLayer() << std::endl; return true; }
bool ClusterCullingCallback_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const ClusterCullingCallback* ccc = dynamic_cast<const ClusterCullingCallback*>(&obj); if (!ccc) return false; int prec = fw.precision(); fw.precision(15); fw.indent() << "controlPoint " << ccc->getControlPoint() << std::endl; fw.indent() << "normal " << ccc->getNormal() << std::endl; fw.indent() << "radius " << ccc->getRadius() << std::endl; fw.indent() << "deviation " << ccc->getDeviation() << std::endl; fw.precision(prec); return true; }
bool SwitchProperty_writeLocalData(const osg::Object& obj, osgDB::Output& fw) { const osgVolume::SwitchProperty& sp = static_cast<const osgVolume::SwitchProperty&>(obj); fw.indent()<<"activeProperty "<<sp.getActiveProperty()<<std::endl; return true; }
bool ScalarProperty_writeLocalData(const osg::Object& obj, osgDB::Output& fw) { const osgVolume::ScalarProperty& sp = static_cast<const osgVolume::ScalarProperty&>(obj); fw.indent()<<"value "<<sp.getValue()<<std::endl; return true; }
bool ConstantRateCounter_writeLocalData(const osg::Object &obj, osgDB::Output &fw) { const osgParticle::ConstantRateCounter &myobj = static_cast<const osgParticle::ConstantRateCounter &>(obj); fw.indent() << "minimumNumberOfParticlesToCreate " << myobj.getMinimumNumberOfParticlesToCreate() << std::endl; fw.indent() << "numberOfParticlesPerSecondToCreate " << myobj.getNumberOfParticlesPerSecondToCreate() << std::endl; return true; }
bool TransferFunctionProperty_writeLocalData(const osg::Object& obj, osgDB::Output& fw) { const osgVolume::TransferFunctionProperty& tfp = static_cast<const osgVolume::TransferFunctionProperty&>(obj); const osg::TransferFunction* tf = tfp.getTransferFunction(); if (tf) fw.writeObject(*tf); return true; }