HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HUSD_GeoUtils.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_GeoUtils_h__
19 #define __HUSD_GeoUtils_h__
20 
21 #include "HUSD_API.h"
22 #include "HUSD_DataHandle.h"
23 #include "HUSD_LockedStage.h"
24 
25 #include <GU/GU_DetailHandle.h>
26 #include <UT/UT_StringHolder.h>
27 
28 class GU_Detail;
29 class HUSD_FindPrims;
30 
31 bool
33  GU_Detail *gdp,
34  const HUSD_LockedStagePtr &locked_stage,
35  const HUSD_FindPrims &findprims,
36  const UT_StringHolder &purpose,
37  const UT_StringHolder &traversal,
38  const UT_StringHolder &pathattribname,
39  const UT_StringHolder &nameattribname,
40  const HUSD_TimeCode &timecode);
41 
42 bool
44  GU_Detail *gdp,
45  void *stage_ptr,
46  const HUSD_FindPrims &findprims,
47  const UT_StringHolder &purpose,
48  const UT_StringHolder &traversal,
49  const UT_StringHolder &pathattribname,
50  const UT_StringHolder &nameattribname,
51  const HUSD_TimeCode &timecode);
52 
53 /// Loads a GU_Detail from an asset path.
54 /// Returns an empty handle on failure.
57  const UT_StringRef &resolved_path);
58 
59 #endif
#define HUSD_API
Definition: HUSD_API.h:31
bool HUSD_API HUSDimportUsdIntoGeometry(GU_Detail *gdp, const HUSD_LockedStagePtr &locked_stage, const HUSD_FindPrims &findprims, const UT_StringHolder &purpose, const UT_StringHolder &traversal, const UT_StringHolder &pathattribname, const UT_StringHolder &nameattribname, const HUSD_TimeCode &timecode)
UT_SharedPtr< HUSD_LockedStage > HUSD_LockedStagePtr
GU_DetailHandle HUSD_API HUSDloadGeometryFromAsset(const UT_StringRef &resolved_path)