Typedefs | Functions | Variables

genBuilding/main.cpp File Reference

#include <iostream>
#include "datahash/datahash_text.h"
#include "datahash/datahash_util.h"
#include "geometry/geometry_3d.h"
#include "geometry/matrix_4.h"
#include "perf/perf.h"
Include dependency graph for genBuilding/main.cpp:

Go to the source code of this file.

Typedefs

typedef std::map< std::string,
smart_ptr< axis_t > > 
axis_map_t

Functions

static smart_ptr< axis_t > parseAxis (IN const Datahash *hash)
static void getAxisRegistry (IN axis_map_t &map, IN const Datahash *input)
static void updateTransformation (IN const matrix4_t &rootT, IN const axis_t *axis, OUT matrix4_t &T)
static void generateRooms (IN state_t &state, IN const matrix4_t &rootT, IN const axis_t *axis, IN int count)
static void genBuilding (IN const Datahash *input)
int main (IN int argc, IN const char *argv[])

Variables

static const float s_radiansPerDegree = M_PI / 180.0

Typedef Documentation

typedef std::map<std::string, smart_ptr<axis_t> > axis_map_t

Definition at line 41 of file genBuilding/main.cpp.


Function Documentation

static smart_ptr<axis_t> parseAxis ( IN const Datahash *  hash  )  [static]

Definition at line 70 of file genBuilding/main.cpp.

static void getAxisRegistry ( IN axis_map_t map,
IN const Datahash *  input 
) [static]

Definition at line 98 of file genBuilding/main.cpp.

static void updateTransformation ( IN const matrix4_t &  rootT,
IN const axis_t *  axis,
OUT matrix4_t &  T 
) [static]

Definition at line 127 of file genBuilding/main.cpp.

static void generateRooms ( IN state_t &  state,
IN const matrix4_t &  rootT,
IN const axis_t *  axis,
IN int  count 
) [static]

Definition at line 153 of file genBuilding/main.cpp.

static void genBuilding ( IN const Datahash *  input  )  [static]

Definition at line 187 of file genBuilding/main.cpp.

int main ( IN int  argc,
IN const char *  argv[] 
)

Definition at line 224 of file genBuilding/main.cpp.


Variable Documentation

const float s_radiansPerDegree = M_PI / 180.0 [static]

Definition at line 21 of file genBuilding/main.cpp.