HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HUSD_ObjectImport-2.0.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Side Effects Software Inc.
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  */
17 
18 #ifndef __HUSD_ObjectImport2_h__
19 #define __HUSD_ObjectImport2_h__
20 
21 #include "HUSD_API.h"
22 #include "HUSD_CreatePrims.h"
23 #include "HUSD_DataHandle.h"
24 #include "HUSD_SetRelationships.h"
25 #include <OBJ/OBJ_Node.h>
26 
27 class HUSD_FindPrims;
28 class HUSD_TimeCode;
29 
31 {
32 public:
33  explicit HUSD_ObjectImport2(HUSD_AutoWriteLock &dest);
35 
36  // Returns the appropriate primtype for an object.
37  // Returns an empty string for unsupported object types.
38  static UT_StringHolder getPrimKindForObject(const OP_Node *node);
39 
40  bool importPrim(
41  const OBJ_Node *object,
42  const UT_StringHolder &primpath,
43  const UT_StringHolder &primtype,
44  const UT_StringHolder &primkind) const;
45 
46  void importSOP(
47  SOP_Node *sop,
48  OP_Context &context,
50  const UT_StringRef &refprimpath,
51  const UT_StringRef &primpath) const;
52 
53  bool importMaterial(VOP_Node *object, const UT_StringHolder &primpath)
54  const;
55 
56 private:
57  HUSD_AutoWriteLock &myWriteLock;
58 };
59 
60 #endif
#define HUSD_API
Definition: HUSD_API.h:32
**If you just want to fire and args
Definition: thread.h:615