#include <ToMayaObjectConverter.h>
|
typedef ToMayaObjectConverterPtr(* | CreatorFn) (IECore::ConstObjectPtr object) |
|
typedef std::map< TypeId, TypeId > | BaseTypeRegistryMap |
|
typedef std::map< TypeId, std::vector< TypeId > > | BaseTypesRegistryMap |
|
typedef std::map< TypeId, std::set< TypeId > > | DerivedTypesRegistryMap |
|
typedef tbb::spin_rw_mutex | Mutex |
|
typedef std::map< TypeId, std::string > | TypeIdsToTypeNamesMap |
|
typedef std::map< std::string, TypeId > | TypeNamesToTypeIdsMap |
|
|
| ToMayaObjectConverter (const std::string &description, IECore::ConstObjectPtr object) |
|
virtual bool | doConversion (IECore::ConstObjectPtr from, MObject &to, IECore::ConstCompoundObjectPtr operands) const =0 |
|
| ToMayaConverter (const std::string &description, IECore::TypeId supportedType) |
|
| FromCoreConverter (const std::string &description, TypeId supportedType) |
|
| FromCoreConverter (const std::string &description, const ObjectParameter::TypeIdSet &supportedTypes) |
|
| FromCoreConverter (const std::string &description, const TypeId *supportedTypes) |
|
| Converter (const std::string &description) |
|
|
static void | registerConverter (IECore::TypeId fromType, const MFn::Type resultType, CreatorFn creator) |
|
static BaseTypeRegistryMap & | baseTypeRegistry () |
|
static DerivedTypesRegistryMap & | derivedTypesRegistry () |
|
static BaseTypesRegistryMap & | completeBaseTypesRegistry () |
|
static DerivedTypesRegistryMap & | completeDerivedTypesRegistry () |
|
static void | derivedTypeIdsWalk (TypeId typeId, std::set< TypeId > &) |
|
static TypeIdsToTypeNamesMap & | typeIdsToTypeNames () |
|
static TypeNamesToTypeIdsMap & | typeNamesToTypeIds () |
|
|
typedef RefCounted | BaseClass |
| A typedef for the class this class derives from. All RunTimeTyped classes define this typedef.
|
|
typedef size_t | RefCount |
|
static Mutex | g_baseTypeIdsMutex |
|
static Mutex | g_derivedTypeIdsMutex |
|
The ToMayaObjectConverter class forms a base class for convertions to MObject datatype.
bool IECoreMaya::ToMayaObjectConverter::convert |
( |
MObject & |
object | ) |
const |
Converts the IECore::Object into the given MObject and returns True if successful and false otherwise.
- Todo:
- Define the meaning of object. Some derived classes seem to modify it, others seem to create a new one and assign it. I think if a valid object is passed then it should be edited, and if a null object is passed then a new one should be created. We also probably need a ToMayaShapeConverter base class with some parentOrOwner type semantics.
static ToMayaObjectConverterPtr IECoreMaya::ToMayaObjectConverter::create |
( |
IECore::ConstObjectPtr |
object | ) |
|
|
static |
static ToMayaObjectConverterPtr IECoreMaya::ToMayaObjectConverter::create |
( |
IECore::ConstObjectPtr |
object, |
|
|
MFn::Type |
resultType |
|
) |
| |
|
static |
Creates a converter which will convert the given IECore::Object to a MObject of the specified type. Returns 0 if no such converter can be found.
virtual bool IECoreMaya::ToMayaObjectConverter::doConversion |
( |
IECore::ConstObjectPtr |
from, |
|
|
MObject & |
to, |
|
|
IECore::ConstCompoundObjectPtr |
operands |
|
) |
| const |
|
protectedpure virtual |
Must be implemented by subclasses. Is guaranteed only to be called when object() returns a valid IECore::Object of a type specified when the converter was registered.
Implemented in IECoreMaya::ToMayaCurveConverter, IECoreMaya::ToMayaMeshConverter, IECoreMaya::ToMayaCameraConverter, IECoreMaya::ToMayaLocatorConverter, IECoreMaya::ToMayaParticleConverter, IECoreMaya::ToMayaSkinClusterConverter, IECoreMaya::ToMayaNumericDataConverter, IECoreMaya::ToMayaArrayDataConverter< From, To >, IECoreMaya::ToMayaGroupConverter, IECoreMaya::ToMayaMatrixDataConverter< From >, and IECoreMaya::ToMayaMatrixVectorDataConverter< From >.
The documentation for this class was generated from the following file: