TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::SplineExtrapolationMode Class Reference

#include <SplineExtrapolationMode.h>

Public Types

enum  Value { CYCLIC, LINEAR, CLAMP }
 

Public Member Functions

 G3D_DECLARE_ENUM_CLASS_METHODS (SplineExtrapolationMode)
 

Public Attributes

Value value
 

Static Private Member Functions

static const char * toString (int i, Value &v)
 

Detailed Description

Describes the behavior of G3D::Spline, etc. when accessing a time outside of the control point range.

Refer to these as scoped enums, e.g., SplineExtrapolationMode m = SplineExtrapolationMode::CLAMP;.

Uses the "Intelligent Enum" design pattern http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4001/

Member Enumeration Documentation

Don't use this enum; use SplineExtrapolationMode instances instead.

Enumerator
CYCLIC 
LINEAR 
CLAMP 
33  {
34  CYCLIC,
35  LINEAR,
36  CLAMP
37  };
Definition: SplineExtrapolationMode.h:36
Definition: SplineExtrapolationMode.h:35
Definition: SplineExtrapolationMode.h:34

Member Function Documentation

G3D::SplineExtrapolationMode::G3D_DECLARE_ENUM_CLASS_METHODS ( SplineExtrapolationMode  )
static const char* G3D::SplineExtrapolationMode::toString ( int  i,
Value v 
)
inlinestaticprivate
41  {
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  }
Definition: SplineExtrapolationMode.h:36
Definition: SplineExtrapolationMode.h:35
Definition: SplineExtrapolationMode.h:34
arena_t NULL
Definition: jemalloc_internal.h:624

Member Data Documentation

Value G3D::SplineExtrapolationMode::value

The documentation for this class was generated from the following file: