Typedefs | Functions | Variables

aesop-core/tool/terrain/terraHeightGen/main.cpp File Reference

#include <iostream>
#include <fstream>
#include <math.h>
#include "common/wave_ex.h"
#include "datahash/datahash_text.h"
#include "datahash/datahash_util.h"
#include "geometry/geometry_2d.h"
#include "geometry/geometry_3d.h"
#include "geometry/xform_2d.h"
#include "perf/perf.h"
#include "pgmppm/pgmppm.h"
#include "util/date.h"
#include "util/file.h"
Include dependency graph for aesop-core/tool/terrain/terraHeightGen/main.cpp:

Go to the source code of this file.

Typedefs

typedef std::vector< point3d_tvec_points_t
typedef point2d_t< float > point_t
typedef rect2d_t< float > rect_t

Functions

static float randX (float max) throw ()
static float randMid (float min, float max) throw ()
static void parsePoints (hdata_t *hdata, const Datahash *input, const char *name, float yMax, vec_points_t &vec)
static void overlayPoints (hdata_t *hdata, vec_points_t &vec)
static void calculateYScale (hdata_t *hdata)
static void generateFlat (hdata_t *hdata, const Datahash *algo)
static void iterateFractal (hdata_t *hdata, int dx, float dy)
static void generateFractal (hdata_t *hdata, const Datahash *algo)
static void getTransform (float X, float Z, xform_2d_t &T)
static void addSplit (hdata_t *hdata, const xform_2d_t &T, float dy) throw ()
static void generateSplit (hdata_t *hdata, const Datahash *algo)
static smart_ptr< hdata_t > createHeightfield (Datahash *input)
static smart_ptr< hdata_t > createHeightfield (const char *inputFile)
static int writePgmPixel (void *context, int x, int z)
static void writeHeightfield (const hdata_t *hdata, const char *outputName)
int main (int argc, const char *argv[])

Variables

static const int s_minGrid = 2
static const char * s_hfieldVersion = "0.1"
static const int s_yIntExtent = 255

Typedef Documentation

typedef std::vector<point3d_t> vec_points_t
typedef point2d_t<float> point_t
typedef rect2d_t<float> rect_t

Function Documentation

static float randX ( float  max  )  throw () [static]
static float randMid ( float  min,
float  max 
) throw () [static]
static void parsePoints ( hdata_t *  hdata,
const Datahash input,
const char *  name,
float  yMax,
vec_points_t vec 
) [static]
static void overlayPoints ( hdata_t *  hdata,
vec_points_t vec 
) [static]
static void calculateYScale ( hdata_t *  hdata  )  [static]
static void generateFlat ( hdata_t *  hdata,
const Datahash algo 
) [static]
static void iterateFractal ( hdata_t *  hdata,
int  dx,
float  dy 
) [static]
static void generateFractal ( hdata_t *  hdata,
const Datahash algo 
) [static]
static void getTransform ( float  X,
float  Z,
xform_2d_t T 
) [static]
static void addSplit ( hdata_t *  hdata,
const xform_2d_t T,
float  dy 
) throw () [static]
static void generateSplit ( hdata_t *  hdata,
const Datahash algo 
) [static]
static smart_ptr<hdata_t> createHeightfield ( Datahash input  )  [static]
static smart_ptr<hdata_t> createHeightfield ( const char *  inputFile  )  [static]
static int writePgmPixel ( void *  context,
int  x,
int  z 
) [static]
static void writeHeightfield ( const hdata_t *  hdata,
const char *  outputName 
) [static]
int main ( int  argc,
const char *  argv[] 
)

Variable Documentation

const int s_minGrid = 2 [static]
const char* s_hfieldVersion = "0.1" [static]
const int s_yIntExtent = 255 [static]