AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
StageData.h
1 #pragma once
2 #include "AL/usdmaya/Common.h"
3 
4 #include "maya/MPxGeometryData.h"
5 #include "maya/MMessage.h"
6 
7 #include "pxr/usd/usd/stage.h"
8 
9 namespace AL {
10 namespace usdmaya {
11 
12 //----------------------------------------------------------------------------------------------------------------------
15 //----------------------------------------------------------------------------------------------------------------------
16 class StageData
17  : public MPxGeometryData
18 {
19 public:
20 
22  StageData();
23 
25  ~StageData();
26 
28  static void* creator();
29 
32  void copy(const MPxData& aDatum);
33 
35  static const MTypeId kTypeId;
36 
38  static const MString kName;
39 
41  UsdStageRefPtr stage;
42 
44  SdfPath primPath;
45 
46 private:
47  MTypeId typeId() const override;
48  MString name() const override;
49  MCallbackId m_exitCallbackId;
50 };
51 
52 //----------------------------------------------------------------------------------------------------------------------
53 } // usdmaya
54 } // AL
55 //----------------------------------------------------------------------------------------------------------------------
void copy(const MPxData &aDatum)
copy the input stage data into this node
UsdStageRefPtr stage
the stage passed through the DG
Definition: StageData.h:41
static void * creator()
creates an instance of this data object
This code is effectively copied from the pixar plugin. It's just used to pass the usd stage through t...
Definition: StageData.h:16
static const MString kName
the type name of the stage data
Definition: StageData.h:38
static const MTypeId kTypeId
the type id of the stage data
Definition: StageData.h:35
SdfPath primPath
the prim path root
Definition: StageData.h:44