All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
groupBaseWrapper.h
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 
31 PXR_NAMESPACE_OPEN_SCOPE
32 
33 class GusdGroupBaseWrapper : public GusdPrimWrapper
34 {
35 public:
36  GusdGroupBaseWrapper();
37  GusdGroupBaseWrapper(
38  UsdTimeCode time,
39  GusdPurposeSet purposes );
40  GusdGroupBaseWrapper( const GusdGroupBaseWrapper& in );
41  virtual ~GusdGroupBaseWrapper();
42 
43  virtual bool unpack(
44  GU_Detail& gdr,
45  const UT_StringRef& fileName,
46  const SdfPath& primPath,
47  const UT_Matrix4D& xform,
48  fpreal frame,
49  const char * viewportLod,
50  GusdPurposeSet purposes ) override;
51 
52 protected:
53  bool refineGroup(
54  const UsdPrim& prim,
55  GT_Refine& refiner,
56  const GT_RefineParms* parms=NULL) const;
57 
58  bool updateGroupFromGTPrim(
59  const UsdGeomImageable& destPrim,
60  const GT_PrimitiveHandle& sourcePrim,
61  const UT_Matrix4D& houXform,
62  const GusdContext& ctxt,
63  GusdSimpleXformCache& xformCache );
64 
65  void updateGroupActiveFromGTPrim(
66  const UsdGeomImageable& destPrim,
67  const GT_PrimitiveHandle& sourcePrim,
68  UsdTimeCode time );
69 
70 };
71 
72 PXR_NAMESPACE_CLOSE_SCOPE
73 
74 #endif
A GT_Primitive that wraps a USD Prim.
Definition: primWrapper.h:89
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Definition: timeCode.h:85
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:131
A GusdContext structure is created by the ROPs that write USD files and passed to the GusdPrimWrapper...
Definition: context.h:46
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:287
Base class for all prims that may require rendering or visualization of some sort.
Definition: imageable.h:74