Biomechanical Joint Model
 Author: Anderson Maciel

sample_marching_cubes.cpp File Reference

#include <OpenGLMyLib/glmodel3D.h>
#include <OpenGLMyLib/glModImplicit.h>
#include <stdlib.h>
#include <GL/glut.h>

Include dependency graph for sample_marching_cubes.cpp:

Go to the source code of this file.

Namespaces

namespace  MyOGL
namespace  VL

Functions

void OpenGLInit (int argc, char **argv)
void MyDisplay (void)
void MyMouse (int button, int state, int x, int y)
void MyReshape (GLsizei w, GLsizei h)
void MyMotion (int x, int y)
void MyKeyb (unsigned char key, int x, int y)
void MySpecKeyb (int key, int x, int y)
double CalculateAngle (double size, double distance)
void InitLight ()
void CoordFrames (double sc_global, double sc_local)

Variables

double Near = 5.0
double Far = 50.0
double Distance = 25.0
double Fovy = M_PI/2
double Size_persp = 2*Distance*tan(Fovy/2)


Function Documentation

double CalculateAngle double  size,
double  distance
 

Definition at line 33 of file sample_marching_cubes.cpp.

References M_PI.

void CoordFrames double  sc_global,
double  sc_local
 

Definition at line 147 of file sample_marching_cubes.cpp.

void InitLight  ) 
 

Definition at line 41 of file sample_marching_cubes.cpp.

References Size_persp.

void MyDisplay void   ) 
 

Definition at line 229 of file sample_marching_cubes.cpp.

void MyKeyb unsigned char  key,
int  x,
int  y
 

Definition at line 360 of file sample_marching_cubes.cpp.

void MyMotion int  x,
int  y
 

Definition at line 329 of file sample_marching_cubes.cpp.

References glutPostRedisplay().

Here is the call graph for this function:

void MyMouse int  button,
int  state,
int  x,
int  y
 

Definition at line 287 of file sample_marching_cubes.cpp.

References GLUT_ACTIVE_ALT, GLUT_ACTIVE_CTRL, GLUT_ACTIVE_SHIFT, GLUT_DOWN, GLUT_LEFT_BUTTON, GLUT_RIGHT_BUTTON, glutGetModifiers(), and glutPostRedisplay().

Here is the call graph for this function:

void MyReshape GLsizei  w,
GLsizei  h
 

Definition at line 280 of file sample_marching_cubes.cpp.

References Distance, Far, Fovy, and Near.

void MySpecKeyb int  key,
int  x,
int  y
 

void OpenGLInit int  argc,
char **  argv
 

Definition at line 98 of file sample_marching_cubes.cpp.

References PrintHelp().

Here is the call graph for this function:


Variable Documentation

double Distance = 25.0
 

Definition at line 29 of file sample_marching_cubes.cpp.

Referenced by MyReshape().

double Far = 50.0
 

Definition at line 28 of file sample_marching_cubes.cpp.

Referenced by MyReshape().

double Fovy = M_PI/2
 

Definition at line 30 of file sample_marching_cubes.cpp.

Referenced by MyReshape().

double Near = 5.0
 

Definition at line 27 of file sample_marching_cubes.cpp.

Referenced by MyReshape().

double Size_persp = 2*Distance*tan(Fovy/2)
 

Definition at line 31 of file sample_marching_cubes.cpp.

Referenced by InitLight().


Generated on Thu Dec 1 10:14:13 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5