HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GD_PrimTypeCompat.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: GD_PrimTypeCompat.h (GD Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GD_PrimTypeCompat_h__
12 #define __GD_PrimTypeCompat_h__
13 
14 /// @file GD_PrimTypeCompat.h
15 /// Contains transitional objects to provide some backward compatibility for
16 /// code that references old GD primitive ids. New code should explicitly use
17 /// either GA_Primitive::getTypeId() or GA_Primitive::getFamilyMask(), as
18 /// appropriate. These transitional objects will be removed in the next major
19 /// release.
20 
21 #include "GD_API.h"
22 #include <GA/GA_PrimCompat.h>
23 
24 /// The compatibility objects are wrapped in a name space to stress the change
25 /// between the obsolete type bitmasks (e.g. GDPRIMPOLY) and the new type ids
26 /// (e.g. GD_PRIMPOLY).
27 namespace GD_PrimTypeCompat
28 {
29  //
30  // Standard face types
35 
37 
39 
40  //
41  // Type strings
42  GD_API extern const char *GDPRIMPOLYN;
43  GD_API extern const char *GDPRIMNURBCURVEN;
44  GD_API extern const char *GDPRIMBEZCURVEN;
45 
46  //
47  // File type identifiers
48  enum
49  {
50  GDPRIMPOLY_FILEID = 0x00000001,
51  GDPRIMNURBCURVE_FILEID = 0x00000002,
52  GDPRIMBEZCURVE_FILEID = 0x00000004
53  };
54 }
55 
56 #endif
GD_API const GA_PrimCompat::TypeMask GDPRIMBEZCURVE
GD_API const char * GDPRIMNURBCURVEN
GD_API const GA_PrimCompat::TypeMask GDCURVE
GD_API const char * GDPRIMBEZCURVEN
GD_API const GA_PrimCompat::TypeMask GDPRIMALL
GD_API const char * GDPRIMPOLYN
GD_API const GA_PrimCompat::TypeMask GDFACE
GD_API const GA_PrimCompat::TypeMask GDPRIMNURBCURVE
#define GD_API
Definition: GD_API.h:10
GD_API const GA_PrimCompat::TypeMask GDPRIMPOLY