Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00018 #ifndef __DRAW_LANES_H__
00019 #define __DRAW_LANES_H__
00020 
00021 #include <vector>
00022 #include <math.h>
00023 #include <errno.h>
00024 #include <stdint.h>
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 struct RGB {
00039   int r;
00040   int g;
00041   int b;
00042 };
00043 
00044 #define DEFAULT_RATIO 3.0f
00045 
00046 class DrawLanes {
00047 public:
00048   DrawLanes(int x,int y, float multi=DEFAULT_RATIO);
00049   ~DrawLanes();
00050   
00051   void clear();
00052   
00053   void savePGM(const char *filename);
00054   void saveBMP(const char *filename);
00055 
00056   void addPoly(float x1, float x2, float x3, float x4,
00057                float y1, float y2,float y3, float y4,
00058                bool is_stop, bool is_exit);
00059 
00060   
00061 
00062   void addWay(float w1lat, float w1long);
00063   void addRobot(float w1lat, float w1long);
00064   void addTrace(float w1lat, float w1long, float w2lat, float w2long);
00065 
00066 private:
00067   float MULT;
00068 
00069   RGB* image;
00070   int imageWidth;
00071   int imageHeight;
00072 
00073   void line(float x0, float y0, float x1, float y1,RGB colour);
00074 };
00075 
00076 #endif
 
art_map
Author(s): David Li, Patrick Beeson, Bartley Gillen, Tarun Nimmagadda,
          Mickey Ristroph, Michael Quinlan, Jack O'Quin
autogenerated on Fri Jan 3 2014 11:08:34