HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_CollectDiskData.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  * NAME: GT_CollectDiskData.h ( GT Library, C++)
7  *
8  * COMMENTS:
9  */
10 #ifndef GT_CollectDiskData_h
11 #define GT_CollectDiskData_h
12 
13 #include "GT_GEODetailList.h"
14 #include "GT_GEOPrimCollect.h"
15 #include "GT_GEOSupport.h"
16 #include "GT_RefineParms.h"
17 
18 #include <GEO/GEO_PackedTypes.h>
19 #include <UT/UT_StringMap.h>
20 #include <UT/UT_VectorTypes.h>
21 
23 class GU_PackedDisk;
24 class GU_PrimPacked;
25 
27 {
28 public:
30  const GT_RefineParms *parms)
32  , myGeometry(geometry)
33  , myRefineParms(parms)
34  {}
35 
36  void append(const GU_ConstDetailHandle &prim_gdh,
37  const GU_PrimPacked &prim);
39 
40 private:
41  GT_GEODetailListHandle myGeometry;
42  const GT_RefineParms *myRefineParms;
43 
44  class Item
45  {
46  public:
47  Item()
48  : myPrimSeq(nullptr), myPrimDisk(nullptr), myLODBits(0), myIndex(0)
49  {}
50 
51  UT_Matrix4DArray myTransforms;
52  GT_GEOOffsetList myPrimOffsets;
53  GT_GEOOffsetList myVertexOffsets;
55  const GU_PackedDiskSequence *myPrimSeq;
56  const GU_PackedDisk *myPrimDisk;
57  exint myIndex;
58  int myLODBits;
59  };
60  UT_StringMap<Item> myFiles;
61 };
62 
63 #endif
Geometry File procedural.
Definition: GU_PackedDisk.h:21
int64 exint
Definition: SYS_Types.h:125
Collection data container.
GT_PrimitiveHandle finish()
Geometry file procedural.
UT_SharedPtr< GT_GEODetailList > GT_GEODetailListHandle
GT_CollectDiskData(const GT_GEODetailListHandle &geometry, const GT_RefineParms *parms)
void append(const GU_ConstDetailHandle &prim_gdh, const GU_PrimPacked &prim)