
#include <cmath>#include <GL/glut.h>#include <GL/gl.h>#include <GL/glu.h>#include <cstdio>#include <cstring>#include <cstdlib>#include <iostream>#include <pthread.h>#include <unistd.h>#include "Image/Pixels.H"#include "Image/ColorOps.H"#include "Image/Image.H"#include "Image/MathOps.H"#include "Image/Transforms.H"#include "Image/FilterOps.H"#include "BeoSub/BeoSubCanny.H"#include "BeoSub/ColorTracker.H"#include "CannyModel.H"#include "BeoSub/BeoSubSim.H"
Go to the source code of this file.
Classes | |
| struct | simTexture |
Typedefs | |
| typedef struct simTexture | Texture |
Functions | |
| nub::soft_ref< BeoSubSim > | SimSub (new BeoSubSim(submgr)) |
| void | initWindow () |
| LINFO ("CREATING MANAGER") | |
| nub::soft_ref< ColorTracker > | ct (new ColorTracker(manager)) |
| Image< PixRGB< byte > > | simulateCamera (const byte *data, const int w, const int h) |
| void | glShadowProjection (float *l, float *n, float *e) |
| int | ImageLoad (char *filename, Texture *image) |
| void | LoadGLTextures (char *filename, int i) |
| void | initWindow2 (void) |
| void | changeSize2 (int w1, int h1) |
| void | changeSize (int w1, int h1) |
| void | drawSnowMan () |
| void | drawRecRotate (GLfloat de, GLfloat x, GLfloat y, GLfloat z, GLfloat w, GLfloat d, GLfloat h) |
| void | setOrthographicProjection () |
| void | resetPerspectiveProjection () |
| void | renderBitmapString (float x, float y, void *font, char *string) |
| void | initScene () |
| void | orientMe (Angle theta) |
| void | moveMeFlat (float i) |
| void | moveMeFlatSmall (float i) |
| void | moveMeVer (float i) |
| void | tiltMe (Angle theta) |
| void | strafe (float val) |
| void | storeImage (const char *s, Image< PixRGB< byte > > im) |
| void | draw (bool shadow) |
| void | renderScene2 (int currentWindow) |
| void | renderScene () |
| void | renderScenesw1 () |
| void | renderScenesw2 () |
| void | renderScenesw3 () |
| void | advanceByTime (int steps, bool direction) |
| void | renderSceneAll () |
| void | processNormalKeys (unsigned char key, int x, int y) |
| void | mouseButton (int button, int state, int x, int y) |
| void | pressKey (int key, int x, int y) |
| void | releaseKey (int key, int x, int y) |
| int | main (int argc, char **argv) |
Variables | |
| bool | start = true |
| ModelManager | submgr ("BeoSubSim Tester") |
| Angle | heading (0.0) |
| Angle | deltaHeading (0.0) |
| float | ratio |
| float | dtemp |
| Angle | pitch (0.0) |
| Angle | deltaPitch (0.0) |
| Angle | roll (0.0) |
| float | deltaStrafeX = 0 |
| float | leftThrustValue = 0 |
| float | rightThrustValue = 0 |
| bool | setForward = false |
| float | x = -30.0f |
| float | y = 20.0f |
| float | z = 10.0f |
| float | targetZ = z |
| float | targetX = x |
| float | subX = 2.0f |
| float | subY = 3.5f |
| float | subZ = 2.0f |
| float | lx = 0.0f |
| float | ly = 0.0f |
| float | lz = -0.1f |
| float | ty = 0.0f |
| float | l [] = {0.0,80.0,0.0} |
| float | n [] = {0.0,-1.0,0.0} |
| float | e [] = {0.0,-60.0,0.0} |
| float | shadowColor [] = {0.0,0.0,0.0} |
| GLfloat | fogColor [4] = {0.35,0.5,0.5,1.0} |
| int | sw = 320 |
| int | sh = 240 |
| int | deltaMove = 0 |
| int | h = 740 |
| int | w = 325 |
| int | border = 5 |
| int | deltaDepth = 0 |
| int | counter = 0 |
| int | actionCount = 0 |
| void * | font = GLUT_BITMAP_8_BY_13 |
| int | bitmapHeight = 13 |
| int | imgCounter = 0 |
| GLfloat | TCx = 45.0f |
| GLfloat | TCz = -20.0f |
| GLfloat | TAx = -15.0f |
| GLfloat | TAy = 4.0f |
| GLfloat | TAz = 0.5f |
| int | frame |
| Will turn false on interrupt signal. | |
| int | frametime |
| int | outframe |
| int | outtime |
| int | timebase = 0 |
| int | atime |
| int | atimebase = 0 |
| int | decode = 0 |
| char | s [30] |
| int | mainWindow |
| int | subWindow1 |
| int | subWindow2 |
| int | subWindow3 |
| int | subWindow4 |
| int | subWindow5 |
| int | subWindow6 |
| bool | set3 = false |
| bool | fogAct = true |
| bool | isSphere = true |
| byte * | image1 = new byte[sw*sh*3] |
| byte * | image2 = new byte[sw*sh*3] |
| byte * | image3 = new byte[sw*sh*3] |
| ModelManager | manager ("BeoSubCanny Tester") |
| rutz::shared_ptr< ShapeModel > | shape |
| double * | darray = (double*)calloc(4, sizeof(double)) |
| Image< PixRGB< byte > > | ima1 |
| Image< PixRGB< byte > > | ima2 |
| Image< PixRGB< byte > > | ima3 |
| int | t [50] |
[put description here]
Definition in file test-BeoSubSimulator.C.
| int frame |
Will turn false on interrupt signal.
Definition at line 64 of file test-BeoSubSimulator.C.
1.6.3