HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
22
class
GAS_API
GAS_GrainSphere
23
{
24
public
:
25
UT_Vector3
myCenter
;
26
fpreal
myRadius
;
27
int
myParticle
;
28
int
mySphereID
;
29
};
30
31
class
GAS_API
GAS_GrainObject
32
{
33
public
:
34
GAS_GrainObject
();
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
47
UT_Array<GAS_GrainSphere>
mySpheres
;
48
int
myParticle
;
49
};
50
51
#endif
UT_Matrix4T< double >
GAS_GrainSphere::mySphereID
int mySphereID
Definition:
GAS_GrainObject.h:28
GAS_API
#define GAS_API
Definition:
GAS_API.h:10
UT_Vector3.h
UT_Array.h
UT_Vector3T< float >
GU_Detail.h
UT_Array< GAS_GrainSphere >
GAS_GrainObject
Definition:
GAS_GrainObject.h:31
GAS_GrainObject::myParticle
int myParticle
Definition:
GAS_GrainObject.h:48
GAS_GrainSphere::myRadius
fpreal myRadius
Definition:
GAS_GrainObject.h:26
fpreal
fpreal64 fpreal
Definition:
SYS_Types.h:277
GU_Detail
Definition:
GU_Detail.h:154
GAS_GrainSphere
Definition:
GAS_GrainObject.h:22
GAS_GrainSphere::myCenter
UT_Vector3 myCenter
Definition:
GAS_GrainObject.h:25
GAS_GrainSphere::myParticle
int myParticle
Definition:
GAS_GrainObject.h:27
GAS_API.h
GAS_GrainObject::mySpheres
UT_Array< GAS_GrainSphere > mySpheres
Definition:
GAS_GrainObject.h:47
GAS
GAS_GrainObject.h
Generated on Tue Dec 17 2024 03:39:41 for HDK by
1.8.6