本文整理汇总了C++中ConstCompoundDataPtr::copy方法的典型用法代码示例。如果您正苦于以下问题:C++ ConstCompoundDataPtr::copy方法的具体用法?C++ ConstCompoundDataPtr::copy怎么用?C++ ConstCompoundDataPtr::copy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConstCompoundDataPtr
的用法示例。
在下文中一共展示了ConstCompoundDataPtr::copy方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CompoundDataPtr
GafferDisplayDriver( const Imath::Box2i &displayWindow, const Imath::Box2i &dataWindow,
const vector<string> &channelNames, ConstCompoundDataPtr parameters )
: ImageDisplayDriver( displayWindow, dataWindow, channelNames, parameters )
{
m_parameters = parameters ? parameters->copy() : CompoundDataPtr( new CompoundData );
instanceCreatedSignal()( this );
}
示例2:
NukeDisplayDriver( const Imath::Box2i &displayWindow, const Imath::Box2i &dataWindow, const std::vector<std::string> &channelNames, ConstCompoundDataPtr parameters )
: ImageDisplayDriver( displayWindow, dataWindow, channelNames, parameters )
{
if( parameters )
{
m_parameters = parameters->copy();
}
else
{
m_parameters = new CompoundData;
}
instanceCreatedSignal( this );
}
示例3: CompoundDataPtr
GafferDisplayDriver( const Imath::Box2i &displayWindow, const Imath::Box2i &dataWindow,
const vector<string> &channelNames, ConstCompoundDataPtr parameters )
: DisplayDriver( displayWindow, dataWindow, channelNames, parameters ),
m_gafferFormat( displayWindow, 1 ),
m_gafferDataWindow( m_gafferFormat.yDownToFormatSpace( dataWindow ) )
{
const V2i dataWindowMinTileIndex = ImagePlug::tileOrigin( m_gafferDataWindow.min ) / ImagePlug::tileSize();
const V2i dataWindowMaxTileIndex = ImagePlug::tileOrigin( m_gafferDataWindow.max ) / ImagePlug::tileSize();
m_tiles.resize(
TileArray::extent_gen()
[TileArray::extent_range( dataWindowMinTileIndex.x, dataWindowMaxTileIndex.x + 1 )]
[TileArray::extent_range( dataWindowMinTileIndex.y, dataWindowMaxTileIndex.y + 1 )]
[channelNames.size()]
);
m_parameters = parameters ? parameters->copy() : CompoundDataPtr( new CompoundData );
instanceCreatedSignal()( this );
}