Gl Graph

Gl Graph Source of map3d.h


#ifndef MAP3D_H
#define	MAP3D_H
#include "mapabstract.h"
#include "glshader.h"
class Map3D : public MapAbstract {
public:
    Map3D();
    Map3D(std::string * filename, std::string * format, int maxline,std::unordered_map<std::string, std::string> * args);
 
    void onClick(Vec3f &point,Vec3f &xvect,Vec3f &yvect,Vec3f &zvect);
    void onButtonUp() ;
    void onButtonDown();
    void draw();
protected:
    void init();
    void setMinMax();
    void processVertexColor(Vec3f &vecin,Vec3f &vecout);
    void onFileClose();
private:
    GlShader shader;
    float squaresize;
    void drawMap();
};
 
#endif	/* MAP3D_H */