#include <AntTweakBar.h>
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <stdio.h>
#include <vcg/simplex/vertex/base.h>
#include <vcg/simplex/face/base.h>
#include <vcg/complex/complex.h>
#include <vcg/complex/algorithms/update/bounding.h>
#include <vcg/complex/algorithms/update/normal.h>
#include <vcg/complex/algorithms/create/platonic.h>
#include <wrap/io_trimesh/import.h>
#include <wrap/gl/trimesh.h>
#include <wrap/gui/trackball.h>
Go to the source code of this file.
Classes | |
class | CFace |
class | CMesh |
class | CVertex |
compositing wanted proprieties More... | |
struct | MyUsedTypes |
Enumerations | |
enum | DrawMode { SMOOTH = 0, PERPOINTS, WIRE, FLATWIRE, HIDDEN, FLAT } |
we choosed a subset of the avaible drawing modes More... | |
Functions | |
void TW_CALL | CopyCDStringToClient (char **destPtr, const char *src) |
void | Display () |
static vcg::Trackball::Button | GLUT2VCG (int glut_button, int) |
Takes a GLUT MouseButton and returns the equivalent Trackball::Button. | |
void | initMesh () |
void | keyPressEvent (unsigned char k, int x, int y) |
void | keyReleaseEvent (unsigned char k, int x, int y) |
void TW_CALL | loadDodecahedron (void *) |
void TW_CALL | loadMesh (void *) |
void TW_CALL | loadTetrahedron (void *) |
int | main (int argc, char *argv[]) |
void | mouseMoveEvent (int x, int y) |
void | mousePressEvent (int bt, int state, int x, int y) |
void | Reshape (int _width, int _height) |
void | Terminate () |
void | wheelEvent (int wheel, int direction, int x, int y) |
Variables | |
DrawMode | drawmode |
the current drawmode | |
char * | filename = NULL |
filename of the mesh to load | |
vcg::GlTrimesh< CMesh > | glWrap |
the active mesh opengl wrapper | |
int | height |
CMesh | mesh |
the active mesh instance | |
vcg::Trackball | track |
the active manipulator | |
int | width |
window size |
enum DrawMode |
we choosed a subset of the avaible drawing modes
Definition at line 79 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void TW_CALL CopyCDStringToClient | ( | char ** | destPtr, |
const char * | src | ||
) |
Definition at line 253 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void Display | ( | ) |
Definition at line 109 of file apps/sample/trimesh_ant_freeglut/main.cpp.
static vcg::Trackball::Button GLUT2VCG | ( | int | glut_button, |
int | |||
) | [static] |
Takes a GLUT MouseButton and returns the equivalent Trackball::Button.
Definition at line 85 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void initMesh | ( | ) |
Definition at line 175 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void keyPressEvent | ( | unsigned char | k, |
int | x, | ||
int | y | ||
) |
Definition at line 218 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void keyReleaseEvent | ( | unsigned char | k, |
int | x, | ||
int | y | ||
) |
Definition at line 208 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void TW_CALL loadDodecahedron | ( | void * | ) |
Definition at line 203 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void TW_CALL loadMesh | ( | void * | ) |
Definition at line 187 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void TW_CALL loadTetrahedron | ( | void * | ) |
Definition at line 198 of file apps/sample/trimesh_ant_freeglut/main.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 270 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void mouseMoveEvent | ( | int | x, |
int | y | ||
) |
Definition at line 241 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void mousePressEvent | ( | int | bt, |
int | state, | ||
int | x, | ||
int | y | ||
) |
Definition at line 231 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void Reshape | ( | int | _width, |
int | _height | ||
) |
Definition at line 168 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void Terminate | ( | ) |
Definition at line 173 of file apps/sample/trimesh_ant_freeglut/main.cpp.
void wheelEvent | ( | int | wheel, |
int | direction, | ||
int | x, | ||
int | y | ||
) |
Definition at line 248 of file apps/sample/trimesh_ant_freeglut/main.cpp.
the current drawmode
Definition at line 82 of file apps/sample/trimesh_ant_freeglut/main.cpp.
filename of the mesh to load
Definition at line 68 of file apps/sample/trimesh_ant_freeglut/main.cpp.
the active mesh opengl wrapper
Definition at line 71 of file apps/sample/trimesh_ant_freeglut/main.cpp.
int height |
Definition at line 76 of file apps/sample/trimesh_ant_freeglut/main.cpp.
the active mesh instance
Definition at line 65 of file apps/sample/trimesh_ant_freeglut/main.cpp.
the active manipulator
Definition at line 73 of file apps/sample/trimesh_ant_freeglut/main.cpp.
int width |
window size
Definition at line 76 of file apps/sample/trimesh_ant_freeglut/main.cpp.