35 #ifndef IE_COREMAYA_TOMAYAIMAGECONVERTER_H
36 #define IE_COREMAYA_TOMAYAIMAGECONVERTER_H
40 #include "IECoreMaya/ToMayaConverter.h"
42 #include "IECore/VectorTypedData.h"
43 #include "IECore/NumericParameter.h"
45 #include "IECoreImage/ImagePrimitive.h"
47 #include "maya/MImage.h"
52 IE_CORE_FORWARDDECLARE( ToMayaImageConverter );
72 MStatus
convert( MImage &image )
const;
74 IECore::IntParameterPtr typeParameter();
75 IECore::ConstIntParameterPtr typeParameter()
const;
79 IECore::IntParameterPtr m_typeParameter;
82 struct ChannelConverter;
85 void writeChannel( MImage &image,
typename IECore::TypedData< std::vector<T> >::Ptr channelData,
unsigned channelOffset,
unsigned numChannels )
const;
88 void writeAlpha( MImage &image,
const T &alpha )
const;
90 void writeDepth( MImage &image, IECore::FloatVectorDataPtr channelData )
const;
96 #endif // IE_COREMAYA_TOMAYAIMAGECONVERTER_H
Definition: ToMayaConverter.h:47
Definition: TypedData.h:64
Definition: ToMayaImageConverter.h:56
MStatus convert(MImage &image) const
Converts the srcParameter() value to an MImage value.
The IECoreMaya namespace holds all the functionality of libIECoreMaya.
Definition: BoolParameterHandler.h:44