HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_GrainObject.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: GAS_GrainObject.C ( GAS Library, C++)
7  *
8  * COMMENTS: Create composite-sphere grain object.
9  *
10  */
11 
12 #ifndef __GAS_GrainObject__
13 #define __GAS_GrainObject__
14 
15 #include "GAS_API.h"
16 
17 #include <UT/UT_Array.h>
18 #include <UT/UT_Vector3.h>
19 
20 #include <GU/GU_Detail.h>
21 
23 {
24 public:
28  int mySphereID;
29 };
30 
32 {
33 public:
35  ~GAS_GrainObject();
36 
37  // Build an instanced grain from a base grain and an
38  // appropriate transform.
39  void instanceFrom(const GAS_GrainObject *base,
40  int ptnum,
41  const UT_DMatrix4 &xform);
42 
43  // Build a grain from the gdp that defines spheres
44  // instanced onto a geometry.
45  void buildGrainFromGdp(const GU_Detail *gdp);
46 
49 };
50 
51 #endif
#define GAS_API
Definition: GAS_API.h:10
fpreal64 fpreal
Definition: SYS_Types.h:277
UT_Vector3 myCenter
UT_Array< GAS_GrainSphere > mySpheres