本文整理汇总了C++中osgdb::Output类的典型用法代码示例。如果您正苦于以下问题:C++ Output类的具体用法?C++ Output怎么用?C++ Output使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Output类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: osgWidget_Box_writeData
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;
}
开发者ID:joevandyk,项目名称:osg,代码行数:7,代码来源:Box.cpp
示例2: osgWidget_WindowManager_writeData
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;
}
开发者ID:aalex,项目名称:osg,代码行数:8,代码来源:WindowManager.cpp
示例3: osgWidget_EmbeddedWindow_writeData
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;
}
开发者ID:AlexBobkov,项目名称:OpenSceneGraph,代码行数:8,代码来源:EmbeddedWindow.cpp
示例4: Text3D_writeLocalData
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;
}
开发者ID:151706061,项目名称:OpenSceneGraph,代码行数:10,代码来源:IO_Text3D.cpp
示例5: Cartoon_writeLocalData
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;
}
开发者ID:yueying,项目名称:osg,代码行数:10,代码来源:IO_Cartoon.cpp
示例6: SpecularHighlights_writeLocalData
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;
}
开发者ID:yueying,项目名称:osg,代码行数:11,代码来源:IO_SpecularHighlights.cpp
示例7: OrbitOperator_writeLocalData
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;
}
开发者ID:aalex,项目名称:osg,代码行数:11,代码来源:IO_OrbitOperator.cpp
示例8: FluidFrictionOperator_writeLocalData
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;
}
开发者ID:BlitzMaxModules,项目名称:osg.mod,代码行数:11,代码来源:IO_FluidFrictionOperator.cpp
示例9: ParticleSystem_writeLocalData
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;
}
开发者ID:BlitzMaxModules,项目名称:osg.mod,代码行数:59,代码来源:IO_ParticleSystem.cpp
示例10: ConeSector_writeLocalData
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;
}
开发者ID:yueying,项目名称:osg,代码行数:12,代码来源:IO_Sector.cpp
示例11: ObjectRecordData_writeLocalData
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;
}
开发者ID:151706061,项目名称:OpenSceneGraph,代码行数:13,代码来源:IO_ObjectRecordData.cpp
示例12: SectorPlacer_writeLocalData
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;
}
开发者ID:BlitzMaxModules,项目名称:osg.mod,代码行数:13,代码来源:IO_SectorPlacer.cpp
示例13: DirectionalSector_writeLocalData
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;
}
开发者ID:yueying,项目名称:osg,代码行数:14,代码来源:IO_Sector.cpp
示例14: AnisotropicLighting_writeLocalData
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;
}
开发者ID:aalex,项目名称:osg,代码行数:15,代码来源:IO_AnisotropicLighting.cpp
示例15: AzimElevationSector_writeLocalData
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;
}
开发者ID:yueying,项目名称:osg,代码行数:15,代码来源:IO_Sector.cpp
示例16: Creation_writeLocalData
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 );
}
开发者ID:AditGame,项目名称:Adit,代码行数:16,代码来源:dotosgCreationRecord.cpp
示例17: EphemerisModel_writeLocalData
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;
}
开发者ID:godbyk,项目名称:osgephemeris,代码行数:16,代码来源:IO_EphemerisModel.cpp
示例18: ClusterCullingCallback_writeLocalData
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;
}
开发者ID:BlitzMaxModules,项目名称:osg.mod,代码行数:17,代码来源:ClusterCullingCallback.cpp
示例19: SwitchProperty_writeLocalData
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;
}
开发者ID:yueying,项目名称:osg,代码行数:8,代码来源:SwitchProperty.cpp
示例20: ScalarProperty_writeLocalData
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;
}
开发者ID:BlitzMaxModules,项目名称:osg.mod,代码行数:8,代码来源:ScalarProperty.cpp
注:本文中的osgdb::Output类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论