ar.h
Go to the documentation of this file.
00001 /* ========================================================================
00002 * PROJECT: ARToolKitPlus
00003 * ========================================================================
00004 * This work is based on the original ARToolKit developed by
00005 *   Hirokazu Kato
00006 *   Mark Billinghurst
00007 *   HITLab, University of Washington, Seattle
00008 * http://www.hitl.washington.edu/artoolkit/
00009 *
00010 * Copyright of the derived and new portions of this work
00011 *     (C) 2006 Graz University of Technology
00012 *
00013 * This framework is free software; you can redistribute it and/or modify
00014 * it under the terms of the GNU General Public License as published by
00015 * the Free Software Foundation; either version 2 of the License, or
00016 * (at your option) any later version.
00017 *
00018 * This framework is distributed in the hope that it will be useful,
00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021 * GNU General Public License for more details.
00022 *
00023 * You should have received a copy of the GNU General Public License
00024 * along with this framework; if not, write to the Free Software
00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026 *
00027 * For further information please contact 
00028 *   Dieter Schmalstieg
00029 *   <schmalstieg@icg.tu-graz.ac.at>
00030 *   Graz University of Technology, 
00031 *   Institut for Computer Graphics and Vision,
00032 *   Inffeldgasse 16a, 8010 Graz, Austria.
00033 * ========================================================================
00034 ** @author   Daniel Wagner
00035 *
00036 * $Id: ar.h 162 2006-04-19 21:28:10Z grabner $
00037 * @file
00038 * ======================================================================== */
00039 
00040 
00041 #ifndef __ARTOOLKITAR_HEADERFILE__
00042 #define __ARTOOLKITAR_HEADERFILE__
00043 
00044 
00045 #include <stdio.h>
00046 #ifndef __APPLE__
00047 #include <malloc.h>
00048 #else
00049 #include <stdlib.h>
00050 #endif
00051 
00052 #include <ARToolKitPlus/config.h>
00053 #include <ARToolKitPlus/param.h>
00054 
00055 #define arMalloc(V,T,S)  \
00056 { if( ((V) = (T *)malloc( sizeof(T) * (S) )) == 0 ) \
00057 {printf("malloc error!!\n"); exit(1);} }
00058 
00059 
00060 namespace ARToolKitPlus {
00061 
00062 
00063 typedef char              ARInt8;
00064 typedef short             ARInt16;
00065 typedef int               ARInt32;
00066 typedef unsigned char     ARUint8;
00067 typedef unsigned short    ARUint16;
00068 typedef unsigned int      ARUint32;
00069 
00070 
00071 typedef struct {
00072     int     area;
00073     int     id;
00074     int     dir;
00075     ARFloat  cf;
00076     ARFloat  pos[2];
00077     ARFloat  line[4][3];
00078     ARFloat  vertex[4][2];
00079 } ARMarkerInfo;
00080 
00081 
00082 typedef struct {
00083     int     area;
00084     ARFloat  pos[2];
00085     int     coord_num;
00086     int     x_coord[AR_CHAIN_MAX];
00087     int     y_coord[AR_CHAIN_MAX];
00088     int     vertex[5];
00089 } ARMarkerInfo2;
00090 
00091 
00092 typedef struct {
00093     ARMarkerInfo  marker;
00094     int     count;
00095 } arPrevInfo;
00096 
00097 
00098 }  // namespace ARToolKitPlus
00099 
00100 
00101 #endif  //__ARTOOLKITAR_HEADERFILE__


tuw_artoolkitplus
Author(s): Markus Bader
autogenerated on Sun May 29 2016 02:50:12