AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TranslatorTestPlugin.h
1 //
2 // Copyright 2017 Animal Logic
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.//
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 #pragma once
17 
18 #include "AL/usdmaya/fileio/translators/TranslatorBase.h"
19 #include "AL/usdmaya/fileio/translators/TranslatorContext.h"
20 #include "AL/usdmaya/fileio/translators/TranslatorTestType.h"
21 
22 #include "maya/MStatus.h"
23 
24 #include "pxr/pxr.h"
25 #include "pxr/base/tf/type.h"
26 
27 PXR_NAMESPACE_USING_DIRECTIVE
28 
29 namespace AL {
30 namespace usdmaya {
31 namespace fileio {
32 namespace translators {
33 
34 //----------------------------------------------------------------------------------------------------------------------
35 #ifndef AL_GENERATING_DOCS
37  : public TranslatorBase
38 {
39 public:
40 
41  AL_USDMAYA_DECLARE_TRANSLATOR(TranslatorTestPlugin);
42 
43 private:
44  MStatus initialize() override;
45  MStatus import(const UsdPrim& prim, MObject& parent, MObject& createdObj) override;
46  MStatus postImport(const UsdPrim& prim) override;
47  MStatus preTearDown(UsdPrim& path) override;
48  MStatus tearDown(const SdfPath& path) override;
49  ExportFlag canExport(const MObject& obj) override
50  { return ExportFlag::kNotSupported; }
51 };
52 #endif
53 
54 //----------------------------------------------------------------------------------------------------------------------
55 } // translators
56 } // fileio
57 } // usdmaya
58 } // AL
59 //----------------------------------------------------------------------------------------------------------------------
Base class for maya translator usd plugins. The TfType of these plugins has to be derived from the ba...
Definition: TranslatorBase.h:177
Definition: TranslatorTestPlugin.h:36