当前位置: 首页>>代码示例>>C++>>正文


C++ IObject::getFullName方法代码示例

本文整理汇总了C++中IObject::getFullName方法的典型用法代码示例。如果您正苦于以下问题:C++ IObject::getFullName方法的具体用法?C++ IObject::getFullName怎么用?C++ IObject::getFullName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IObject的用法示例。


在下文中一共展示了IObject::getFullName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: readDeepHierarchy

//-*****************************************************************************
void readDeepHierarchy( IObject parent, const int level, const IObject& orig )
{
    if ( level > DEPTH )
    {
        ICompoundProperty p = parent.getProperties();
        IInt32ArrayProperty iap( p, "intArrayProp" );
        std::string fullName = const_cast<std::string&>(
            iap.getObject().getFullName() );

        PATH_PAIR ret = PATHS.insert( fullName );

        Int32ArraySamplePtr sampPtr = iap.getValue();

        TESTING_ASSERT( sampPtr->get()[5] == 5 );
        TESTING_ASSERT( sampPtr->get()[99] == 99 );
        TESTING_ASSERT( sampPtr->size() == ( size_t ) HIGHVAL );

        TESTING_ASSERT( ret.second );

        TESTING_ASSERT( fullName == parent.getFullName() );

        // walk back up the tree until you find the first child object
        // under the top object, and check that it's the one we started
        // with.
        IObject _p = parent;
        while ( _p.getParent().getParent() )
        {
            _p = _p.getParent();
        }

        TESTING_ASSERT( _p.getFullName() == orig.getFullName() );

        return;
    }

    std::ostringstream strm;
    strm << level;
    std::string levelName = strm.str();
    readDeepHierarchy( IObject( parent, levelName ), level + 1, orig );
}
开发者ID:AndyHuang7601,项目名称:EpicGames-UnrealEngine,代码行数:41,代码来源:RedundantDataTest.cpp

示例2: ApplyResources

void ApplyResources( IObject object, ProcArgs &args )
{
    std::string resourceName;
    
    //first check full name...
    resourceName = args.getResource( object.getFullName() );
    
    if ( resourceName.empty() )
    {
        //...and then base name
        resourceName = args.getResource( object.getName() );
    }
    
    if ( !resourceName.empty() )
    {
        RestoreResource(resourceName);
    }
}
开发者ID:AWhetter,项目名称:alembic,代码行数:18,代码来源:WriteGeo.cpp

示例3: visitObject

//-*****************************************************************************
void visitObject( IObject iObj )
{
    std::string path = iObj.getFullName();

    const MetaData &md = iObj.getMetaData();

    if ( IPolyMeshSchema::matches( md ) || ISubDSchema::matches( md ) )
    {
        Box3d bnds = getBounds( iObj );
        std::cout << path << " " << bnds.min << " " << bnds.max << std::endl;
    }

    // now the child objects
    for ( size_t i = 0 ; i < iObj.getNumChildren() ; i++ )
    {
        visitObject( IObject( iObj, iObj.getChildHeader( i ).getName() ) );
    }
}
开发者ID:oyaGG,项目名称:helgemathee-alembic-softimage,代码行数:19,代码来源:AbcBoundsEcho.cpp

示例4: pushName

//-*****************************************************************************
int pushName( IObject &iObj )
{
    Abc::MetaData md = iObj.getMetaData();
    if ( IPolyMesh::matches( md ) ||
         IPoints::matches( md ) ||
         ICurves::matches( md ) ||
         INuPatch::matches( md ) ||
         ISubD::matches( md )
       )
    {
        OBJECT_MAP.push_back( iObj.getFullName() );
        glPushName( OBJECT_MAP.size() );
        //std::cout << OBJECT_MAP.size()
        //          << "\t"
        //          << iObj.getFullName()
        //          << std::endl;
        return OBJECT_MAP.size();
    } else {
        return -1;
    }
}
开发者ID:aloysbaillet,项目名称:nghochung-softimage-alembic,代码行数:22,代码来源:IObjectDrw.cpp

示例5: visitObject

//-*****************************************************************************
void visitObject( IObject iObj,
                  std::string iIndent )
{
    // Object has a name, a full name, some meta data,
    // and then it has a compound property full of properties.
    std::string path = iObj.getFullName();

    if ( path != "/" )
    {
        std::cout << "Object " << "name=" << path << std::endl;
    }

    // Get the properties.
    ICompoundProperty props = iObj.getProperties();
    visitProperties( props, iIndent );

    // now the child objects
    for ( size_t i = 0 ; i < iObj.getNumChildren() ; i++ )
    {
        visitObject( IObject( iObj, iObj.getChildHeader( i ).getName() ),
                     iIndent );
    }
}
开发者ID:ahmidou,项目名称:aphid,代码行数:24,代码来源:main.cpp


注:本文中的IObject::getFullName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。