这篇教程C++ ALEMBIC_ABC_SAFE_CALL_BEGIN函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中ALEMBIC_ABC_SAFE_CALL_BEGIN函数的典型用法代码示例。如果您正苦于以下问题:C++ ALEMBIC_ABC_SAFE_CALL_BEGIN函数的具体用法?C++ ALEMBIC_ABC_SAFE_CALL_BEGIN怎么用?C++ ALEMBIC_ABC_SAFE_CALL_BEGIN使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了ALEMBIC_ABC_SAFE_CALL_BEGIN函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************Abc::OCompoundProperty OMaterialSchema::getShaderParameters( const std::string & iTarget, const std::string & iShaderType ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "OMaterialSchema::getShaderParameters" ); Util::validateName( iTarget, "target" ); Util::validateName( iShaderType, "shaderType" ); std::string propertyName = Util::buildTargetName( iTarget, iShaderType, "params" ); Data::NodeMap::iterator i = m_data->nodes.find( propertyName ); if ( i != m_data->nodes.end() ) { return i->second.params; } Data::Node n; n.params = Abc::OCompoundProperty( this->getPtr(), propertyName ); m_data->nodes[propertyName] = n; return n.params; ALEMBIC_ABC_SAFE_CALL_END(); return Abc::OCompoundProperty();}
开发者ID:AndyHuang7601,项目名称:EpicGames-UnrealEngine,代码行数:30,
示例2: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************MeshTopologyVariance ICurvesSchema::getTopologyVariance() const{ ALEMBIC_ABC_SAFE_CALL_BEGIN( "ICurvesSchema::getTopologyVariance()" ); if ( m_positionsProperty.isConstant() && m_nVerticesProperty.isConstant() && m_basisAndTypeProperty.isConstant() ) { return kConstantTopology; } else if ( m_nVerticesProperty.isConstant() && m_basisAndTypeProperty.isConstant() ) { return kHomogenousTopology; } else { return kHeterogenousTopology; } ALEMBIC_ABC_SAFE_CALL_END(); // Not all error handlers throw return kHeterogenousTopology;}
开发者ID:aovi,项目名称:UnrealEngine4,代码行数:26,
示例3: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************MeshTopologyVariance ISubDSchema::getTopologyVariance() const{ ALEMBIC_ABC_SAFE_CALL_BEGIN( "ISubDSchema::getTopologyVariance()" ); if ( m_faceIndicesProperty.isConstant() && m_faceCountsProperty.isConstant() ) { if ( m_positionsProperty.isConstant() ) { return kConstantTopology; } else { return kHomogenousTopology; } } else { return kHeterogenousTopology; } ALEMBIC_ABC_SAFE_CALL_END(); // Not all error handlers throw return kConstantTopology;}
开发者ID:jonntd,项目名称:ExocortexCrate,代码行数:26,
示例4: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void OPolyMeshSchema::setTimeSampling( uint32_t iIndex ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "OPolyMeshSchema::setTimeSampling( uint32_t )" ); m_positionsProperty.setTimeSampling( iIndex ); m_indicesProperty.setTimeSampling( iIndex ); m_countsProperty.setTimeSampling( iIndex ); m_selfBoundsProperty.setTimeSampling( iIndex ); if ( m_velocitiesProperty ) { m_velocitiesProperty.setTimeSampling( iIndex ); } if ( m_uvsParam ) { m_uvsParam.setTimeSampling( iIndex ); } if ( m_normalsParam ) { m_normalsParam.setTimeSampling( iIndex ); } ALEMBIC_ABC_SAFE_CALL_END();}
开发者ID:AWhetter,项目名称:alembic,代码行数:28,
示例5: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void IPointsSchema::init( const Abc::Argument &iArg0, const Abc::Argument &iArg1 ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "IPointsSchema::init()" ); Abc::Arguments args; iArg0.setInto( args ); iArg1.setInto( args ); AbcA::CompoundPropertyReaderPtr _this = this->getPtr(); // no matching so we pick up old assets written as V3f m_positionsProperty = Abc::IP3fArrayProperty( _this, "P", kNoMatching, args.getErrorHandlerPolicy() ); m_idsProperty = Abc::IUInt64ArrayProperty( _this, ".pointIds", iArg0, iArg1 ); if ( _this->getPropertyHeader( ".velocities" ) != NULL ) { m_velocitiesProperty = Abc::IV3fArrayProperty( _this, ".velocities", iArg0, iArg1 ); } if ( _this->getPropertyHeader( ".widths" ) != NULL ) { m_widthsParam = IFloatGeomParam( _this, ".widths", iArg0, iArg1 ); } ALEMBIC_ABC_SAFE_CALL_END_RESET();}
开发者ID:AWhetter,项目名称:alembic,代码行数:32,
示例6: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************IFaceSetIPolyMeshSchema::getFaceSet ( const std::string &iFaceSetName ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "IPolyMeshSchema::getFaceSet()" ); boost::mutex::scoped_lock l(m_faceSetsMutex); if (!m_faceSetsLoaded) { loadFaceSetNames(); } ABCA_ASSERT( m_faceSets.find (iFaceSetName) != m_faceSets.end (), "The requested FaceSet name can't be found in PolyMesh."); if (!m_faceSets [iFaceSetName]) { // We haven't yet loaded the faceSet, so create/load it m_faceSets [iFaceSetName] = IFaceSet ( this->getParent().getObject(), iFaceSetName ); } return m_faceSets [iFaceSetName]; ALEMBIC_ABC_SAFE_CALL_END(); IFaceSet emptyFaceSet; return emptyFaceSet;}
开发者ID:EgoIncarnate,项目名称:appleseed,代码行数:28,
示例7: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void OCompoundProperty::init( AbcA::CompoundPropertyWriterPtr iParent, const std::string &iName, const Argument &iArg0, const Argument &iArg1, const Argument &iArg2 ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "OCompoundProperty::init()" ); ABCA_ASSERT( iParent, "invalid parent" ); Arguments args; iArg0.setInto( args ); iArg1.setInto( args ); iArg2.setInto( args ); getErrorHandler().setPolicy( args.getErrorHandlerPolicy() ); m_property = Alembic::Util::dynamic_pointer_cast< AbcA::CompoundPropertyWriter>( iParent->getProperty( iName ) ); if ( !m_property ) { m_property = iParent->createCompoundProperty( iName, args.getMetaData() ); } ALEMBIC_ABC_SAFE_CALL_END_RESET();}
开发者ID:alembic,项目名称:alembic,代码行数:28,
示例8: args//-*****************************************************************************void IArrayProperty::init( AbcA::CompoundPropertyReaderPtr iParent, const std::string &iName, ErrorHandler::Policy iParentPolicy, const Argument &iArg0, const Argument &iArg1 ){ Arguments args( iParentPolicy ); iArg0.setInto( args ); iArg1.setInto( args ); getErrorHandler().setPolicy( args.getErrorHandlerPolicy() ); ALEMBIC_ABC_SAFE_CALL_BEGIN( "IArrayProperty::init()" ); const AbcA::PropertyHeader *pheader = iParent->getPropertyHeader( iName ); ABCA_ASSERT( pheader != NULL, "Nonexistent array property: " << iName ); m_property = iParent->getArrayProperty( iName ); ALEMBIC_ABC_SAFE_CALL_END_RESET();}
开发者ID:oyaGG,项目名称:helgemathee-alembic-softimage,代码行数:26,
示例9: ALEMBIC_ABC_SAFE_CALL_BEGINAbc::OStringArrayPropertyOCollectionsSchema::createCollection( const std::string &iName, const Abc::Argument &iArg0, const Abc::Argument &iArg1, const Abc::Argument &iArg2 ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "OCollectionsSchema::createCollection" ); Abc::OStringArrayProperty prop = getCollection( iName ); if ( prop.valid() ) return prop; prop = Abc::OStringArrayProperty( this->getPtr(), iName, iArg0, iArg1, iArg2 ); if ( prop.valid() ) { m_collections.push_back( prop ); return prop; } ALEMBIC_ABC_SAFE_CALL_END(); return Abc::OStringArrayProperty();}
开发者ID:AWhetter,项目名称:alembic,代码行数:27,
示例10: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************MeshTopologyVariance INuPatchSchema::getTopologyVariance() const{ ALEMBIC_ABC_SAFE_CALL_BEGIN( "INuPatch::getTopologyVariance()" ); bool pointsConstant = m_positionsProperty.isConstant() && ( !m_positionWeightsProperty || m_positionWeightsProperty.isConstant() ); bool uvConstant = ( m_uOrderProperty.isConstant() && m_vOrderProperty.isConstant() && m_uKnotProperty.isConstant() && m_vKnotProperty.isConstant() ); // check for constant topology. // if the surface has trim curves, we must also check those of topology // variance. if ( pointsConstant && uvConstant ) { if ( this -> hasTrimCurve() ) { if ( this -> trimCurveTopologyIsConstant() ) { return kConstantTopology; } else if ( this -> trimCurveTopologyIsHomogenous() ) { return kHomogenousTopology; } else { return kHeterogenousTopology; } } return kConstantTopology; } // points are animated else if ( uvConstant ) { if ( this -> hasTrimCurve() ) { if ( this -> trimCurveTopologyIsHomogenous() ) { return kHomogenousTopology; } else { return kHeterogenousTopology; } } return kHomogenousTopology; } ALEMBIC_ABC_SAFE_CALL_END(); return kHeterogenousTopology;}
开发者ID:BlackGinger,项目名称:ExocortexCrate,代码行数:60,
示例11: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void IFaceSetSchema::get( IFaceSetSchema::Sample &oSample, const Abc::ISampleSelector &iSS ) const{ ALEMBIC_ABC_SAFE_CALL_BEGIN( "IFaceSetSchema::get()" ); m_facesProperty.get( oSample.m_faces, iSS ); ALEMBIC_ABC_SAFE_CALL_END();}
开发者ID:BlackGinger,项目名称:ExocortexCrate,代码行数:10,
示例12: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void OLightSchema::setFromPrevious(){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "OLightSchema::setFromPrevious" ); if ( m_cameraSchema ) m_cameraSchema.setFromPrevious(); ALEMBIC_ABC_SAFE_CALL_END();}
开发者ID:AndyHuang7601,项目名称:EpicGames-UnrealEngine,代码行数:10,
示例13: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void OCameraSchema::setTimeSampling( uint32_t iIndex ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "OCameraSchema::setTimeSampling( uint32_t )" ); m_coreProperties.setTimeSampling( iIndex ); ALEMBIC_ABC_SAFE_CALL_END();}
开发者ID:BlackGinger,项目名称:ExocortexCrate,代码行数:10,
示例14: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void ISubDSchema::get( ISubDSchema::Sample &oSample, const Abc::ISampleSelector &iSS ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "ISubDSchema::get()" ); m_positionsProperty.get( oSample.m_positions, iSS ); m_faceIndicesProperty.get( oSample.m_faceIndices, iSS ); m_faceCountsProperty.get( oSample.m_faceCounts, iSS ); m_faceVaryingInterpolateBoundaryProperty.get( oSample.m_faceVaryingInterpolateBoundary, iSS ); m_faceVaryingPropagateCornersProperty.get( oSample.m_faceVaryingPropagateCorners, iSS ); m_interpolateBoundaryProperty.get( oSample.m_interpolateBoundary, iSS ); m_selfBoundsProperty.get( oSample.m_selfBounds, iSS ); if ( m_creaseIndicesProperty ) { m_creaseIndicesProperty.get( oSample.m_creaseIndices, iSS ); } if ( m_creaseLengthsProperty ) { m_creaseLengthsProperty.get( oSample.m_creaseLengths, iSS ); } if ( m_creaseSharpnessesProperty ) { m_creaseSharpnessesProperty.get( oSample.m_creaseSharpnesses, iSS ); } if ( m_cornerIndicesProperty ) { m_cornerIndicesProperty.get( oSample.m_cornerIndices, iSS ); } if ( m_cornerSharpnessesProperty ) { m_cornerSharpnessesProperty.get( oSample.m_cornerSharpnesses, iSS ); } if ( m_holesProperty ) { m_holesProperty.get( oSample.m_holes, iSS ); } m_subdSchemeProperty.get( oSample.m_subdScheme, iSS ); if ( m_childBoundsProperty && m_childBoundsProperty.getNumSamples() > 0 ) { m_childBoundsProperty.get( oSample.m_childBounds, iSS ); } ALEMBIC_ABC_SAFE_CALL_END();}
开发者ID:oyaGG,项目名称:helgemathee-alembic-softimage,代码行数:57,
示例15: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void OFaceSetSchema::setTimeSampling( uint32_t iTimeSamplingID ){ ALEMBIC_ABC_SAFE_CALL_BEGIN( "OFaceSetSchema::setTimeSampling( uint32_t iTimeSamplingID )" ); m_facesProperty.setTimeSampling( iTimeSamplingID ); m_selfBoundsProperty.setTimeSampling( iTimeSamplingID ); ALEMBIC_ABC_SAFE_CALL_END();}
开发者ID:BlackGinger,项目名称:ExocortexCrate,代码行数:11,
示例16: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************void IScalarProperty::get( void *oSamp, const ISampleSelector &iSS ) const{ ALEMBIC_ABC_SAFE_CALL_BEGIN( "IScalarProperty::get()" ); AbcA::index_t index = iSS.getIndex( m_property->getTimeSampling(), m_property->getNumSamples() ); m_property->getSample( index, oSamp ); ALEMBIC_ABC_SAFE_CALL_END();}
开发者ID:BlackGinger,项目名称:ExocortexCrate,代码行数:11,
示例17: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************AbcA::TimeSamplingPtr IArrayProperty::getTimeSampling() const{ ALEMBIC_ABC_SAFE_CALL_BEGIN( "IArrayProperty::getTimeSampling()" ); return m_property->getTimeSampling(); ALEMBIC_ABC_SAFE_CALL_END(); // Not all error handlers throw, so return a default. return AbcA::TimeSamplingPtr();}
开发者ID:oyaGG,项目名称:helgemathee-alembic-softimage,代码行数:12,
示例18: ALEMBIC_ABC_SAFE_CALL_BEGIN//-*****************************************************************************size_t ICompoundProperty::getNumProperties() const{ ALEMBIC_ABC_SAFE_CALL_BEGIN( "ICompoundProperty::getNumProperties()" ); return m_property->getNumProperties(); ALEMBIC_ABC_SAFE_CALL_END(); // Not all error handlers throw, have a default. return 0;}
开发者ID:AndyHuang7601,项目名称:EpicGames-UnrealEngine,代码行数:12,
注:本文中的ALEMBIC_ABC_SAFE_CALL_BEGIN函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ ALEMBIC_ABC_SAFE_CALL_END函数代码示例 C++ ALCcontext_DecRef函数代码示例 |