TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SplineExtrapolationMode.h
Go to the documentation of this file.
1 
13 #ifndef G3D_SplineExtrapolationMode_h
14 #define G3D_SplineExtrapolationMode_h
15 
16 #include "G3D/platform.h"
17 #include "G3D/enumclass.h"
18 
19 
20 namespace G3D {
21 
31 public:
33  enum Value {
37  };
39 private:
40 
41  static const char* toString(int i, Value& v) {
42  static const char* str[] = {"CYCLIC", "LINEAR", "CLAMP", NULL};
43  static const Value val[] = {CYCLIC, LINEAR, CLAMP};
44  const char* s = str[i];
45  if (s) {
46  v = val[i];
47  }
48  return s;
49  }
50 
51 public:
52 
54 };
55 
56 
57 
58 
63 public:
65  enum Value {
68  };
70 private:
71 
72  static const char* toString(int i, Value& v) {
73  static const char* str[] = {"LINEAR", "CUBIC", NULL};
74  static const Value val[] = {LINEAR, CUBIC};
75  const char* s = str[i];
76  if (s) {
77  v = val[i];
78  }
79  return s;
80  }
81 
82 public:
83 
85 
86 };
87 
88 
89 } // namespace G3D
90 
93 
94 #endif
Value
Definition: SplineExtrapolationMode.h:65
Definition: SplineExtrapolationMode.h:66
Definition: SplineExtrapolationMode.h:36
Definition: SplineExtrapolationMode.h:67
Definition: SplineExtrapolationMode.h:35
Definition: SplineExtrapolationMode.h:34
Definition: AABox.h:25
arena_t NULL
Definition: jemalloc_internal.h:624
G3D_DECLARE_ENUM_CLASS_METHODS(SplineInterpolationMode)
Definition: SplineExtrapolationMode.h:30
G3D_DECLARE_ENUM_CLASS_HASHCODE(G3D::SplineExtrapolationMode)
Definition: SplineExtrapolationMode.h:62
Value value
Definition: SplineExtrapolationMode.h:38
static const char * toString(int i, Value &v)
Definition: SplineExtrapolationMode.h:72
Value value
Definition: SplineExtrapolationMode.h:69
static const char * toString(int i, Value &v)
Definition: SplineExtrapolationMode.h:41
Value
Definition: SplineExtrapolationMode.h:33
G3D_DECLARE_ENUM_CLASS_METHODS(SplineExtrapolationMode)