#include <iostream>#include <fstream>#include "glut-demo/glut-demo.h"#include "kdtree/kdtree.h"#include "nstream/nstream.h"#include "perf/perf.h"#include "util/file.h"#include "wave-glut/frustum.h"
Go to the source code of this file.
Functions | |
| static float | getRandom (IN float M) throw () |
| static float | getRandom2 (IN float M) throw () |
| static void | getRandomRect (IN const rect3d_t &base, IN float size, OUT rect3d_t &r) throw () |
| static void | drawRect (IN const rect3d_t &r) throw () |
| static void | displayNode (IN const kdtree::Node *node, IN int level) throw () |
| static void | walkFrontToBack (IN const kdtree::Node *node, IN const frustum_t &frustum, IN const point3d_t &start, IO int &level) throw () |
| int | main (IN int argc, IN const char *argv[]) |
Variables | |
| static const float | s_max = 250.0 |
| static int | s_displayLevel = 0 |
| static int | s_displayWalk = 0 |
| static int | s_maxWalkLevel = 10 |
| static float | s_angle = 0.0 |
| static const float | s_degreesPerRadian = 180.0 / M_PI |
| static const float | s_deltaA = 5.0 / s_degreesPerRadian |
| static float | s_zAngle = 0.0 |
| static const float | s_maxZAngle = 0.5 * M_PI |
| static float getRandom | ( | IN float | M | ) | throw () [static] |
Definition at line 94 of file kd-tree.cpp.
| static float getRandom2 | ( | IN float | M | ) | throw () [static] |
Definition at line 106 of file kd-tree.cpp.
| static void getRandomRect | ( | IN const rect3d_t & | base, | |
| IN float | size, | |||
| OUT rect3d_t & | r | |||
| ) | throw () [static] |
Definition at line 119 of file kd-tree.cpp.
| static void drawRect | ( | IN const rect3d_t & | r | ) | throw () [static] |
Definition at line 139 of file kd-tree.cpp.
| static void displayNode | ( | IN const kdtree::Node * | node, | |
| IN int | level | |||
| ) | throw () [static] |
Definition at line 158 of file kd-tree.cpp.
| static void walkFrontToBack | ( | IN const kdtree::Node * | node, | |
| IN const frustum_t & | frustum, | |||
| IN const point3d_t & | start, | |||
| IO int & | level | |||
| ) | throw () [static] |
Definition at line 198 of file kd-tree.cpp.
| int main | ( | IN int | argc, | |
| IN const char * | argv[] | |||
| ) |
Definition at line 426 of file kd-tree.cpp.
const float s_max = 250.0 [static] |
Definition at line 23 of file kd-tree.cpp.
int s_displayLevel = 0 [static] |
Definition at line 25 of file kd-tree.cpp.
int s_displayWalk = 0 [static] |
Definition at line 27 of file kd-tree.cpp.
int s_maxWalkLevel = 10 [static] |
Definition at line 28 of file kd-tree.cpp.
float s_angle = 0.0 [static] |
Definition at line 30 of file kd-tree.cpp.
const float s_degreesPerRadian = 180.0 / M_PI [static] |
Definition at line 31 of file kd-tree.cpp.
const float s_deltaA = 5.0 / s_degreesPerRadian [static] |
Definition at line 32 of file kd-tree.cpp.
float s_zAngle = 0.0 [static] |
Definition at line 34 of file kd-tree.cpp.
const float s_maxZAngle = 0.5 * M_PI [static] |
Definition at line 35 of file kd-tree.cpp.
1.7.1