AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CameraTranslator.h
1 #pragma once
2 #include "AL/usdmaya/fileio/translators/DagNodeTranslator.h"
3 
4 namespace AL {
5 namespace usdmaya {
6 namespace fileio {
7 namespace translators {
8 
9 //----------------------------------------------------------------------------------------------------------------------
12 //----------------------------------------------------------------------------------------------------------------------
14  : public DagNodeTranslator
15 {
16 public:
17 
20 
23 
26  static MStatus registerType();
27 
34  MObject createNode(const UsdPrim& from, MObject parent, const char* nodeType, const ImporterParams& params) override;
35 
41  MStatus copyAttributes(const UsdPrim& from, MObject to, const ImporterParams& params);
42 
48  static MStatus copyAttributes(const MObject& from, UsdPrim& to, const ExporterParams& params);
49 
50 private:
51  static MObject m_orthographic;
52  static MObject m_horizontalFilmAperture;
53  static MObject m_verticalFilmAperture;
54  static MObject m_horizontalFilmApertureOffset;
55  static MObject m_verticalFilmApertureOffset;
56  static MObject m_focalLength;
57  static MObject m_nearDistance;
58  static MObject m_farDistance;
59  static MObject m_fstop;
60  static MObject m_focusDistance;
61  static MObject m_lensSqueezeRatio;
62 };
63 
64 //----------------------------------------------------------------------------------------------------------------------
65 } // translators
66 } // fileio
67 } // usdmaya
68 } // AL
69 //----------------------------------------------------------------------------------------------------------------------
static MStatus registerType()
static type registration
A class to transfer dag node data between Usd <–> Maya.
Definition: DagNodeTranslator.h:14
A class to transfer camera data between Usd <–> Maya.
Definition: CameraTranslator.h:13
parameters for the exporter. These parameters are constructed by any command or file translator that ...
Definition: ExportParams.h:17
parameters for the importer
Definition: ImportParams.h:18
MObject createNode(const UsdPrim &from, MObject parent, const char *nodeType, const ImporterParams &params) override
Creates a new maya node of the given type and set attributes based on input prim. ...
MStatus copyAttributes(const UsdPrim &from, MObject to, const ImporterParams &params)
helper method to copy attributes from the UsdPrim to the Maya node
CameraTranslator()
ctor
Definition: CameraTranslator.h:19
~CameraTranslator()
dtor
Definition: CameraTranslator.h:22