Classes | Defines | Functions | Variables
paddleInteractionTest.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <GL/glut.h>
#include <AR/gsub.h>
#include <AR/param.h>
#include <AR/matrix.h>
#include <AR/ar.h>
#include <AR/video.h>
#include <AR/arMulti.h>
#include "paddle.h"
Include dependency graph for backup/examples/paddleInteraction/paddleInteractionTest.c:

Go to the source code of this file.

Classes

struct  targetInfo

Defines

#define NOT_TOUCHED   -1
#define TARGET_NUM   5
#define TOUCHED   1

Functions

static int checkCollision (float Pos1[], float Pos2[], float range)
static void cleanup (void)
static void draw (targetInfo myTarget, double BaseTrans[3][4])
int draw_paddle (ARPaddleInfo *paddleInfo)
int drawGroundGrid (double trans[3][4], int divisions, float x, float y, float height)
static void findPaddlePosition (float curPaddlePos[], double card_trans[3][4], double base_trans[3][4])
static void init (void)
static void keyEvent (unsigned char key, int x, int y)
int main (int argc, char **argv)
static void mainLoop (void)

Variables

GLfloat ambi [] = {0.1, 0.1, 0.1, 0.1}
ARMultiMarkerInfoTconfig
char * config_name = "Data/multi/marker.dat"
int count = 0
ARParam cparam
char * cparam_name = "Data/camera_para.dat"
GLfloat light_position [] = {100.0,-200.0,200.0,0.0}
GLfloat lightZeroColor [] = {0.9, 0.9, 0.9, 0.1}
int marker_flag [AR_SQUARE_MAX]
targetInfo myTarget [TARGET_NUM]
char * paddle_name = "Data/paddle_data"
ARPaddleInfopaddleInfo
int thresh = 100
char * vconf = ""
int xsize
int ysize

Define Documentation

#define NOT_TOUCHED   -1
#define TARGET_NUM   5
#define TOUCHED   1

Function Documentation

static int checkCollision ( float  Pos1[],
float  Pos2[],
float  range 
) [static]
static void cleanup ( void  ) [static]
static void draw ( targetInfo  myTarget,
double  BaseTrans[3][4] 
) [static]
int draw_paddle ( ARPaddleInfo paddleInfo)
int drawGroundGrid ( double  trans[3][4],
int  divisions,
float  x,
float  y,
float  height 
)
static void findPaddlePosition ( float  curPaddlePos[],
double  card_trans[3][4],
double  base_trans[3][4] 
) [static]
static void init ( void  ) [static]
static void keyEvent ( unsigned char  key,
int  x,
int  y 
) [static]
int main ( int  argc,
char **  argv 
)
static void mainLoop ( void  ) [static]

Variable Documentation

GLfloat ambi[] = {0.1, 0.1, 0.1, 0.1}
char* config_name = "Data/multi/marker.dat"
int count = 0
char* cparam_name = "Data/camera_para.dat"
GLfloat light_position[] = {100.0,-200.0,200.0,0.0}
GLfloat lightZeroColor[] = {0.9, 0.9, 0.9, 0.1}
char* paddle_name = "Data/paddle_data"
int thresh = 100
char* vconf = ""
int xsize
int ysize
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


ar_recog
Author(s): Graylin Trevor Jay and Christopher Crick
autogenerated on Fri Jan 25 2013 12:15:01