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


C++ AffectedPlugsContainer类代码示例

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


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

示例1: affects

void Grade::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	ChannelDataProcessor::affects( input, outputs );

	// Process the children of the compound plugs.
	for( unsigned int i = 0; i < 4; ++i )
	{
		if( input == blackPointPlug()->getChild(i) ||
				input == whitePointPlug()->getChild(i) ||
				input == liftPlug()->getChild(i) ||
				input == gainPlug()->getChild(i) ||
				input == multiplyPlug()->getChild(i) ||
				input == offsetPlug()->getChild(i) ||
				input == gammaPlug()->getChild(i)
		  )
		{
			outputs.push_back( outPlug()->channelDataPlug() );
			return;
		}
	}

	// Process all other plugs.
	if( input == inPlug()->channelDataPlug() ||
			input == blackClampPlug() ||
			input == whiteClampPlug()
	  )
	{
		outputs.push_back( outPlug()->channelDataPlug() );
		return;
	}

}
开发者ID:mattigruener,项目名称:gaffer,代码行数:32,代码来源:Grade.cpp

示例2: affects

void Random::affects( const Plug *input, AffectedPlugsContainer &outputs ) const
{
	ComputeNode::affects( input, outputs );
	
	if( input == seedPlug() || input == contextEntryPlug() )
	{
		outputs.push_back( outFloatPlug() );
		for( ValuePlugIterator componentIt( outColorPlug() ); componentIt != componentIt.end(); componentIt++ )
		{
			outputs.push_back( componentIt->get() );
		}
	}
	else if( input->parent<Plug>() == floatRangePlug() )
	{
		outputs.push_back( outFloatPlug() );
	}
	else if(
		input->parent<Plug>() == baseColorPlug() ||
		input == huePlug() ||
		input == saturationPlug() ||
		input == valuePlug()
	)
	{
		for( ValuePlugIterator componentIt( outColorPlug() ); componentIt != componentIt.end(); componentIt++ )
		{
			outputs.push_back( componentIt->get() );
		}
	}
}
开发者ID:7on7on,项目名称:gaffer,代码行数:29,代码来源:Random.cpp

示例3: affects

void Constant::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	ImageNode::affects( input, outputs );

	if( input->parent<Plug>() == colorPlug() )
	{
		outputs.push_back( outPlug()->channelDataPlug() );
	}

	if( formatPlug()->displayWindowPlug()->isAncestorOf( input ) )
	{
		outputs.push_back( outPlug()->formatPlug() );
		outputs.push_back( outPlug()->dataWindowPlug() );
	}

	if( input == formatPlug()->pixelAspectPlug() )
	{
		outputs.push_back( outPlug()->formatPlug() );
	}

	if( input == layerPlug() )
	{
		outputs.push_back( outPlug()->channelNamesPlug() );
	}
}
开发者ID:boberfly,项目名称:gaffer,代码行数:25,代码来源:Constant.cpp

示例4: affects

void ImageReader::affects( const Plug *input, AffectedPlugsContainer &outputs ) const
{
    ImageNode::affects( input, outputs );

    if( input == intermediateMetadataPlug() )
    {
        outputs.push_back( intermediateColorSpacePlug() );
    }
    else if( input->parent<ImagePlug>() == intermediateImagePlug() )
    {
        outputs.push_back( outPlug()->getChild<ValuePlug>( input->getName() ) );
    }
    else if (
        input == startFramePlug() ||
        input == startModePlug() ||
        input == endFramePlug() ||
        input == endModePlug()
    )
    {
        for( ValuePlugIterator it( outPlug() ); it != it.end(); ++it )
        {
            outputs.push_back( it->get() );
        }
    }
}
开发者ID:mor-vfx,项目名称:gaffer,代码行数:25,代码来源:ImageReader.cpp

示例5: affects

void Mirror::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	ImageProcessor::affects( input, outputs );

	const bool affectsTransform =
		input == inPlug()->formatPlug() ||
		input == horizontalPlug() ||
		input == verticalPlug()
	;

	if(
		affectsTransform ||
		input == inPlug()->dataWindowPlug()
	)
	{
		outputs.push_back( outPlug()->dataWindowPlug() );
	}

	if(
		affectsTransform ||
		input == inPlug()->channelDataPlug()
	)
	{
		outputs.push_back( outPlug()->channelDataPlug() );
	}
}
开发者ID:hradec,项目名称:gaffer,代码行数:26,代码来源:Mirror.cpp

示例6: affects

void OSLObject::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	SceneElementProcessor::affects( input, outputs );

	if( input == shaderPlug() )
	{
		outputs.push_back( resampledNamesPlug() );
		outputs.push_back( outPlug()->objectPlug() );
	}
	else if (input == inPlug()->transformPlug() ||
		input == interpolationPlug() ||
		input == resampledInPlug()->objectPlug()
		)
	{
		outputs.push_back( outPlug()->objectPlug() );
	}
	else if( input == inPlug()->objectPlug() )
	{
		outputs.push_back( resampledNamesPlug() );
	}
	else if( input == outPlug()->objectPlug() )
	{
		outputs.push_back( outPlug()->boundPlug() );
	}
}
开发者ID:andrewkaufman,项目名称:gaffer,代码行数:25,代码来源:OSLObject.cpp

示例7: affects

void Shader::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	DependencyNode::affects( input, outputs );

	if(
		parametersPlug()->isAncestorOf( input ) ||
		input == enabledPlug() ||
		input == nodeNamePlug() ||
		input == namePlug() ||
		input == typePlug() ||
		input->parent<Plug>() == nodeColorPlug()
	)
	{
		const Plug *out = outPlug();
		if( out )
		{
			if( !out->children().empty() )
			{
				for( RecursivePlugIterator it( out ); it != it.end(); it++ )
				{
					if( (*it)->children().empty() )
					{
						outputs.push_back( it->get() );
					}
				}
			}
			else
			{
				outputs.push_back( out );
			}
		}
	}
}
开发者ID:espennordahl,项目名称:gaffer,代码行数:33,代码来源:Shader.cpp

示例8: affects

void Resample::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	ImageProcessor::affects( input, outputs );

	if(
		input == inPlug()->dataWindowPlug() ||
		input == matrixPlug() ||
		input == expandDataWindowPlug() ||
		input == filterPlug() ||
		input->parent<V2fPlug>() == filterWidthPlug() ||
		input == debugPlug()
	)
	{
		outputs.push_back( outPlug()->dataWindowPlug() );
		outputs.push_back( horizontalPassPlug()->dataWindowPlug() );
	}

	if(
		input == inPlug()->dataWindowPlug() ||
		input == matrixPlug() ||
		input == filterPlug() ||
		input->parent<V2fPlug>() == filterWidthPlug() ||
		input == inPlug()->channelDataPlug() ||
		input == boundingModePlug() ||
		input == debugPlug()
	)
	{
		outputs.push_back( outPlug()->channelDataPlug() );
		outputs.push_back( horizontalPassPlug()->channelDataPlug() );
	}
}
开发者ID:hradec,项目名称:gaffer,代码行数:31,代码来源:Resample.cpp

示例9: affects

void SetVisualiser::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	SceneElementProcessor::affects( input, outputs );

	// Making attributes depend on outSets as much as possible (instead of
	// the input plugs directly) allows us to better take advantage of Gaffers
	// plug value caching and avoid some duplicate set processing work.

	if(
		input == setsPlug() ||
		colorOverridesPlug()->isAncestorOf( input ) ||
		input == inPlug()->setNamesPlug()
	)
	{
		outputs.push_back( outSetsPlug() );
	}
	else if (
		input == includeInheritedPlug() ||
		input == stripeWidthPlug() ||
		input == outSetsPlug() ||
		input == inPlug()->setPlug()
	)
	{
		outputs.push_back( outPlug()->attributesPlug() );
	}
}
开发者ID:ImageEngine,项目名称:gaffer,代码行数:26,代码来源:SetVisualiser.cpp

示例10: affects

void Transform::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	SceneElementProcessor::affects( input, outputs );

	if( input == spacePlug() || transformPlug()->isAncestorOf( input ) )
	{
		outputs.push_back( outPlug()->transformPlug() );
		outputs.push_back( outPlug()->boundPlug() );
	}
}
开发者ID:nicoduce,项目名称:gaffer,代码行数:10,代码来源:Transform.cpp

示例11: affects

void BranchCreator::affects( const Plug *input, AffectedPlugsContainer &outputs ) const
{
	SceneProcessor::affects( input, outputs );

	if( input->parent<ScenePlug>() == inPlug() )
	{
		outputs.push_back( outPlug()->getChild<ValuePlug>( input->getName() ) );
	}
	else if( input == parentPlug() )
	{
		outputs.push_back( mappingPlug() );
	}
	else if( input == mappingPlug() )
	{
		outputs.push_back( outPlug()->boundPlug() );
		outputs.push_back( outPlug()->transformPlug() );
		outputs.push_back( outPlug()->attributesPlug() );
		outputs.push_back( outPlug()->objectPlug() );
		outputs.push_back( outPlug()->childNamesPlug() );
		// Globals plug deliberately omitted - because
		// it's just a pass-through connection.
		outputs.push_back( outPlug()->setNamesPlug() );
		outputs.push_back( outPlug()->setPlug() );
	}
}
开发者ID:HughMacdonald,项目名称:gaffer,代码行数:25,代码来源:BranchCreator.cpp

示例12: affects

void AlembicSource::affects( const Plug *input, AffectedPlugsContainer &outputs ) const
{
	SceneNode::affects( input, outputs );

	if( input == fileNamePlug() || input == refreshCountPlug() )
	{
		outputs.push_back( outPlug()->boundPlug() );
		outputs.push_back( outPlug()->transformPlug() );
		outputs.push_back( outPlug()->objectPlug() );
		outputs.push_back( outPlug()->childNamesPlug() );
	}
}
开发者ID:nicoduce,项目名称:gaffer,代码行数:12,代码来源:AlembicSource.cpp

示例13: affects

void SceneReader::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	FileSource::affects( input, outputs );
	
	if( input == tagsPlug() )
	{
		outputs.push_back( outPlug()->childNamesPlug() );
	}
	else if( input == setsPlug() )
	{
		outputs.push_back( outPlug()->globalsPlug() );
	}
}
开发者ID:dboogert,项目名称:gaffer,代码行数:13,代码来源:SceneReader.cpp

示例14: affects

void Seeds::affects( const Plug *input, AffectedPlugsContainer &outputs ) const
{
	BranchCreator::affects( input, outputs );

	if( input == densityPlug() || input == pointTypePlug() )
	{
		outputs.push_back( outPlug()->objectPlug() );
	}
	else if( input == namePlug() )
	{
		outputs.push_back( outPlug()->childNamesPlug() );
	}
}
开发者ID:Kthulhu,项目名称:gaffer,代码行数:13,代码来源:Seeds.cpp

示例15: affects

void OSLObject::affects( const Gaffer::Plug *input, AffectedPlugsContainer &outputs ) const
{
	SceneElementProcessor::affects( input, outputs );
	
	if( input == shaderPlug() )
	{
		outputs.push_back( outPlug()->objectPlug() );		
		/// \todo Technically the objectPlug() affects the boundPlug(),
		/// but affects isn't currently called for output plugs - see
		/// corresponding todo in OSLImage.
		outputs.push_back( outPlug()->boundPlug() );
	}
}
开发者ID:7on7on,项目名称:gaffer,代码行数:13,代码来源:OSLObject.cpp


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