HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
groupBaseWrapper.h
Go to the documentation of this file.
1 //
2 // Copyright 2017 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef __GUSD_GROUPBASEWRAPPER_H__
25 #define __GUSD_GROUPBASEWRAPPER_H__
26 
27 #include "primWrapper.h"
28 
29 #include "pxr/pxr.h"
30 
32 
34 {
35 public:
39  GusdPurposeSet purposes );
41  ~GusdGroupBaseWrapper() override;
42 
43  bool unpack(
45  const UT_StringRef& fileName,
46  const SdfPath& primPath,
47  const UT_Matrix4D* xform,
48  fpreal frame,
49  const char * viewportLod,
50  GusdPurposeSet purposes,
51  const GT_RefineParms &rparms) const override;
52 
53 protected:
54  bool refineGroup(
55  const UsdPrim& prim,
56  GT_Refine& refiner,
57  const GT_RefineParms* parms=NULL) const;
58 
60  const UsdGeomImageable& destPrim,
61  const GT_PrimitiveHandle& sourcePrim,
62  const UT_Matrix4D& houXform,
63  const GusdContext& ctxt,
64  GusdSimpleXformCache& xformCache );
65 
67  const UsdGeomImageable& destPrim,
68  const GT_PrimitiveHandle& sourcePrim,
69  UsdTimeCode time );
70 
71 };
72 
74 
75 #endif
A GT_Primitive that wraps a USD Prim.
Definition: primWrapper.h:90
bool updateGroupFromGTPrim(const UsdGeomImageable &destPrim, const GT_PrimitiveHandle &sourcePrim, const UT_Matrix4D &houXform, const GusdContext &ctxt, GusdSimpleXformCache &xformCache)
GT_API const UT_StringHolder time
Definition: prim.h:133
Definition: path.h:290
~GusdGroupBaseWrapper() override
Processes primitives generated by refinement process.
Definition: GT_Refine.h:20
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1432
bool unpack(UT_Array< GU_DetailHandle > &details, const UT_StringRef &fileName, const SdfPath &primPath, const UT_Matrix4D *xform, fpreal frame, const char *viewportLod, GusdPurposeSet purposes, const GT_RefineParms &rparms) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
void updateGroupActiveFromGTPrim(const UsdGeomImageable &destPrim, const GT_PrimitiveHandle &sourcePrim, UsdTimeCode time)
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:91
bool refineGroup(const UsdPrim &prim, GT_Refine &refiner, const GT_RefineParms *parms=NULL) const
GusdPurposeSet
Definition: purpose.h:39
std::map< SdfPath, UT_Matrix4D > GusdSimpleXformCache
Definition: primWrapper.h:88