MCPcopy Create free account
hub / github.com/ImageEngine/cortex / ObjectParameter

Method ObjectParameter

src/IECore/ObjectParameter.cpp:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43IE_CORE_DEFINERUNTIMETYPED( ObjectParameter );
44
45ObjectParameter::ObjectParameter( const std::string &name, const std::string &description, ObjectPtr defaultValue, TypeId type, const PresetsContainer &presets, bool presetsOnly, ConstCompoundObjectPtr userData )
46 : Parameter( name, description, defaultValue, presets, presetsOnly, userData )
47{
48 m_validTypes.insert( type );
49}
50
51ObjectParameter::ObjectParameter( const std::string &name, const std::string &description, ObjectPtr defaultValue, const TypeIdSet &types, const PresetsContainer &presets, bool presetsOnly, ConstCompoundObjectPtr userData )
52 : Parameter( name, description, defaultValue, presets, presetsOnly, userData ), m_validTypes( types )

Callers 12

testUseAsKeyMethod · 0.80
testConstructorMethod · 0.80
testConstructor2Method · 0.80
testUserDataMethod · 0.80
testErrorMessageMethod · 0.80
testOrderedPresetsMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 1

insertMethod · 0.80

Tested by 3

testUseAsKeyMethod · 0.64