HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_PrimitiveTypes.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: GA_PrimitiveTypes.h ( GA Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GA_PrimitiveTypes__
12 #define __GA_PrimitiveTypes__
13 
14 #include "GA_API.h"
15 
16 #include "GA_PrimitiveTypeId.h"
17 
18 // The list of identifiers for the factory primitive types. Any user defined
19 // types will be assigned unique identifiers following these. In general, no
20 // assumptions about these factory identifiers remaining unchanged should be
21 // made. See GA_PrimitiveDefinition.h for more.
22 // However, note this *DOES* leak outside (via intrinsics) so we can't
23 // actually change this order and must always add to the end.
24 
25 enum
26 {
28 
32 
36 
38 
42 
44 
50 
55 
57 
60 
62 
64 
65  GA_PRIMINTERNALSENTINEL // sentinel value
66 };
67 
68 inline bool GAisVolumeElement(const GA_PrimitiveTypeId &id)
69 {
70  return (id == GA_PRIMTETRAHEDRON) || (id == GA_PRIMHEXAHEDRON);
71 }
72 
73 
74 #endif
bool GAisVolumeElement(const GA_PrimitiveTypeId &id)