Namespaces | Defines | Enumerations | Functions | Variables

bvh.cpp File Reference

#include "bvh.h"
#include <fstream>
#include <math.h>
#include "common/wave_ex.h"
#include "geometry/matrix_4.h"
#include "perf/perf.h"
#include "util/parsing.h"
#include "util/token_stream.h"
Include dependency graph for bvh.cpp:

Go to the source code of this file.

Namespaces

namespace  bvh

Defines

#define ENTRY(val)   { #val , eIndex_ ##val },

Enumerations

enum  bvh::eChannelIndex {
  bvh::eIndex_Xposition = 0,
  bvh::eIndex_Yposition = 1,
  bvh::eIndex_Zposition = 2,
  bvh::eIndex_Xrotation = 3,
  bvh::eIndex_Yrotation = 4,
  bvh::eIndex_Zrotation = 5,
  bvh::eIndex_Max = 6,
  bvh::eIndex_Invalid = -1
}

Functions

static void bvh::doTransformation (matrix4_t &M, eChannelIndex i, float x) throw ()
static eChannelIndex bvh::getChannelIndex (const char *name)
static const char * bvh::readFloat (const char *p, std::string &token, float &f)
static const char * bvh::readInt (const char *p, std::string &token, int &i)

Variables

static const float bvh::s_radiansPerDegree = M_PI / 180.0
static const index_entry_t bvh::s_indexTable []

Define Documentation

#define ENTRY (   val  )     { #val , eIndex_ ##val },

Definition at line 64 of file bvh.cpp.