Gl Graph

Gl Graph Source of glaxes.h


#ifndef GL_AXES_H
#define GL_AXES_H
 
#include "glcamera.h"
class DrawableSet;// forward declaration
 
 
class GlAxes {
private:
    float minx;
    float maxx;
    float miny;
    float maxy;
    float minz;
    float maxz;
 
 
    float distx;
    float stepDistanceX;
    float minxAligned;
 
    float disty;
    float stepDistanceY;
    float minyAligned;
 
    float distz;
    float stepDistanceZ;
    float minzAligned;
 
    void drawX(float YPixelSize);
    void drawY(float XPixelSize);
    void drawZ(float XPixelSize);
 
    void drawXValue();
    void drawYValue();
    void drawZValue();
 
 
    Vec3f e1;
    Vec3f e2;
    Vec3f e3;
 
public:
 
    GlAxes() {
        e1 = Vec3f(1, 0, 0);
        e2 = Vec3f(0, 1, 0);
        e3 = Vec3f(0, 0, 1);
 
    };
    void set(DrawableSet * set);
    void draw(GlCamera * camera);
};
#endif