Example #1
0
CopyImageMetadata::CopyImageMetadata( const std::string &name )
	:	MetadataProcessor( name )
{
	storeIndexOfNextChild( g_firstPlugIndex );
	addChild( new ImagePlug( "copyFrom" ) );
	addChild( new StringPlug( "names", Plug::In, "*" ) );
	addChild( new BoolPlug( "invertNames" ) );
}
Example #2
0
Grade::Grade( const std::string &name )
	:	ChannelDataProcessor( name )
{
	storeIndexOfNextChild( g_firstPlugIndex );
	addChild( new Color3fPlug( "blackPoint" ) );
	addChild( new Color3fPlug( "whitePoint", Gaffer::Plug::In, Imath::V3f(1.f, 1.f, 1.f) ) );
	addChild( new Color3fPlug( "lift" ) );
	addChild( new Color3fPlug( "gain", Gaffer::Plug::In, Imath::V3f(1.f, 1.f, 1.f) ) );
	addChild( new Color3fPlug( "multiply", Gaffer::Plug::In, Imath::V3f(1.f, 1.f, 1.f) ) );
	addChild( new Color3fPlug( "offset" ) );
	addChild( new Color3fPlug( "gamma", Gaffer::Plug::In, Imath::Color3f( 1.0f ), Imath::Color3f( 0.0f ) ) );
	addChild( new BoolPlug( "blackClamp", Gaffer::Plug::In, true ) );
	addChild( new BoolPlug( "whiteClamp" ) );
}
Example #3
0
Merge::Merge( const std::string &name )
	:	ImageProcessor( name ), m_inputs( this, inPlug(), 2, Imath::limits<int>::max() )
{
	storeIndexOfNextChild( g_firstPlugIndex );
	addChild(
		new IntPlug(
			"operation",	// name
			Plug::In,	// direction
			Add,		// default
			Add,		// min
			Under		// max
		)
	);

	// We don't ever want to change these, so we make pass-through connections.
	outPlug()->metadataPlug()->setInput( inPlug()->metadataPlug() );
}
Example #4
0
Unpremultiply::Unpremultiply( const std::string &name )
	:	ChannelDataProcessor( name )
{
	storeIndexOfNextChild( g_firstPlugIndex );
	addChild( new StringPlug( "alphaChannel", Gaffer::Plug::In, "A" ) );
}
Example #5
0
ImageMetadata::ImageMetadata( const std::string &name )
	:	MetadataProcessor( name )
{
	storeIndexOfNextChild( g_firstPlugIndex );
	addChild( new CompoundDataPlug( "metadata" ) );
}
Example #6
0
Select::Select( const std::string &name )
	:	FilterProcessor( name, 2, 50 )
{
	storeIndexOfNextChild( g_firstPlugIndex );
	addChild( new IntPlug( "select" ) );
}