AbcExport/MayaCameraWriter.h
#ifndef _AbcExport_MayaCameraWriter_h_
#define _AbcExport_MayaCameraWriter_h_
#include "Foundation.h"
#include "AttributesWriter.h"
#include "MayaTransformWriter.h"
#include <Alembic/AbcGeom/OCamera.h>
class MayaCameraWriter
{
public:
MayaCameraWriter(
MDagPath & iDag, Alembic::Abc::OObject & iParent,
Alembic::Util::uint32_t iTimeIndex, const JobArgs & iArgs);
AttributesWriterPtr getAttrs() {return mAttrs;};
void write();
bool isAnimated() const;
private:
bool mIsAnimated;
bool mUseRenderShutter;
double mShutterOpen;
double mShutterClose;
Alembic::AbcGeom::OCameraSchema mSchema;
AttributesWriterPtr mAttrs;
Alembic::AbcGeom::CameraSample mSamp;
};
typedef Alembic::Util::shared_ptr < MayaCameraWriter > MayaCameraWriterPtr;
#endif // _AbcExport_MayaCameraWriter_h_