24 #ifndef PXRUSDMAYA_FUNCTOR_PRIM_WRITER_H
25 #define PXRUSDMAYA_FUNCTOR_PRIM_WRITER_H
36 #include "pxr/usd/sdf/path.h"
37 #include "pxr/usd/usd/timeCode.h"
39 #include <maya/MFnDependencyNode.h>
44 PXR_NAMESPACE_OPEN_SCOPE
57 const MFnDependencyNode& depNodeFn,
69 static UsdMayaPrimWriterSharedPtr Create(
70 const MFnDependencyNode& depNodeFn,
82 SdfPathVector _modelPaths;
86 PXR_NAMESPACE_CLOSE_SCOPE
Provides basic functionality and access to shared data for UsdMayaPrimWriters.
void Write(const UsdTimeCode &usdTime) override
Main export function that runs when the traversal hits the node.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
A path value used to locate objects in layers or scenegraphs.
bool ShouldPruneChildren() const override
Whether the traversal routine using this prim writer should skip all of the Maya node's descendants w...
std::function< bool(const UsdMayaPrimWriterArgs &, UsdMayaPrimWriterContext *) > WriterFn
Writer function, i.e.
std::function< UsdMayaPrimWriterSharedPtr(const MFnDependencyNode &, const SdfPath &, UsdMayaWriteJobContext &) > WriterFactoryFn
Writer factory function, i.e.
const SdfPathVector & GetModelPaths() const override
Gets all of the exported prim paths that are potentially models, i.e.
This class is scaffolding to hold bare prim writer functions and adapt them to the UsdMayaPrimWriter ...
bool ExportsGprims() const override
Whether this prim writer directly create one or more gprims on the current model on the USD stage...