Cortex
10.0.0-a4
|
#include <FromMayaObjectConverter.h>
Public Member Functions | |
FromMayaObjectConverterDescription (MFn::Type fromType, IECore::TypeId resultType, bool defaultConversion) | |
Creating a static instance of one of these (templated on your Converter type) within your class will register your converter with the factory mechanism.
IECoreMaya::FromMayaObjectConverter::FromMayaObjectConverterDescription< T >::FromMayaObjectConverterDescription | ( | MFn::Type | fromType, |
IECore::TypeId | resultType, | ||
bool | defaultConversion | ||
) |
fromType | The maya type which can be converted. |
resultType | The cortex type which will result from the conversion. |
defaultConversion | Should be true if this conversion is the "best" for a given fromType. If this is true then this is the converter that will be used when create() is called without specifying a resultType. |