HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tetMeshWrapper.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5 */
6 
7 #ifndef GUSD_TETMESHWRAPPER_H
8 #define GUSD_TETMESHWRAPPER_H
9 
10 #include "primWrapper.h"
11 
12 #include <pxr/pxr.h>
14 
16 
17 /// Wraps a USD TetMesh prim and refines it to a GT prim for the viewport or
18 /// conversion back to GU primitives.
20 {
21 public:
23  const UsdGeomTetMesh& tet_mesh,
24  UsdTimeCode t,
25  GusdPurposeSet purposes);
26 
27  const UsdGeomImageable getUsdPrim() const override { return myUsdTetMesh; }
28 
29  const char* className() const override;
30 
31  void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const override;
32 
33  int getMotionSegments() const override;
34 
35  int64 getMemoryUsage() const override;
36 
37  GT_PrimitiveHandle doSoftCopy() const override;
38 
39  bool isValid() const override;
40 
41  bool refine(GT_Refine& refiner, const GT_RefineParms* parms = nullptr)
42  const override;
43 
45  const UsdGeomImageable& source_prim,
47  GusdPurposeSet purposes);
48 
49 private:
50  UsdGeomTetMesh myUsdTetMesh;
51 };
52 
54 
55 #endif
A GT_Primitive that wraps a USD Prim.
Definition: primWrapper.h:90
bool isValid() const override
Return true if the underlying USD prim is valid.
GT_API const UT_StringHolder time
GT_PrimitiveHandle doSoftCopy() const override
void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const override
GusdTetMeshWrapper(const UsdGeomTetMesh &tet_mesh, UsdTimeCode t, GusdPurposeSet purposes)
const UsdGeomImageable getUsdPrim() const override
static GT_PrimitiveHandle defineForRead(const UsdGeomImageable &source_prim, UsdTimeCode time, GusdPurposeSet purposes)
int64 getMemoryUsage() const override
long long int64
Definition: SYS_Types.h:116
GLdouble t
Definition: glad.h:2397
const char * className() const override
Processes primitives generated by refinement process.
Definition: GT_Refine.h:20
bool refine(GT_Refine &refiner, const GT_RefineParms *parms=nullptr) const override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1432
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:91
int getMotionSegments() const override
GusdPurposeSet
Definition: purpose.h:39