main.cpp File Reference

Defines

#define GLUT_SPACE   32

Functions

static void display_callback ()
static void reshape_callback (int width, int height)
static void keyboard_callback (unsigned char key, int x, int y)
static void idle_callback (int value)
static void motion_callback (int x, int y)
static void mouse_callback (int button, int action, int x, int y)
void draw_orientation ()
void draw_pointer ()
void draw_fps ()
void draw_extra ()
void draw_sphere (const MC_v3d &center, const double &radius)
int setup_opengl (int argc, char **argv)
int draw_scene ()
int load_model ()
double get_rand ()
int evolve ()
int main (int argc, char *argv[])

Variables

MC_navigator_tool navigator
int counter = 0
bool is_draw_grid = false
cpe_mesh::mesh sphere
cpe_mesh::mesh mesh_0
cpe_mesh::mesh mesh_tp
std::map< int, std::list< int > > ring
std::vector< double > normal
std::vector< double > color

Define Documentation

#define GLUT_SPACE   32

Function Documentation

static void display_callback (  )  [static]
void draw_extra (  ) 

Referenced by draw_scene().

void draw_fps (  ) 

References mesh_conv::MC_navigator_tool::current_fps, and mesh_conv::MC_string_converter::to_string().

Referenced by display_callback().

Here is the call graph for this function:

void draw_orientation (  ) 

References mesh_conv::MC_matrix::pointer(), and mesh_conv::MC_navigator_tool::trackball_cam1.

Referenced by display_callback().

Here is the call graph for this function:

void draw_pointer (  ) 
int draw_scene (  ) 
void draw_sphere ( const MC_v3d center,
const double &  radius 
)

References cpe_mesh::mesh::get_connectivity(), cpe_mesh::mesh::get_vertex(), and cpe_mesh::mesh::triangle_number().

Here is the call graph for this function:

int evolve (  ) 

Referenced by idle_callback().

double get_rand (  ) 
static void idle_callback ( int  value  )  [static]

References evolve().

Referenced by setup_opengl().

Here is the call graph for this function:

static void keyboard_callback ( unsigned char  key,
int  x,
int  y 
) [static]
int load_model (  ) 

References color, normal, cpe_mesh::mesh::normal_vertex(), and cpe_mesh::mesh::scale_unity().

Referenced by main().

Here is the call graph for this function:

int main ( int  argc,
char *  argv[] 
)
static void motion_callback ( int  x,
int  y 
) [static]
static void mouse_callback ( int  button,
int  action,
int  x,
int  y 
) [static]
static void reshape_callback ( int  width,
int  height 
) [static]
int setup_opengl ( int  argc,
char **  argv 
)

Variable Documentation

std::vector<double> color

Referenced by draw_scene(), and load_model().

int counter = 0
bool is_draw_grid = false

Referenced by draw_scene(), and keyboard_callback().

std::vector<double> normal

Referenced by draw_scene(), and load_model().

std::map<int,std::list<int> > ring

Generated on Wed Nov 11 17:13:45 2009 by  doxygen 1.6.1