00001 00002 // figures.h // 00003 // ----------- // 00004 // begin : Sep 08 2003 // 00005 // copyright : (C) 2003 by cbaudry (CEA/DSM/SPP) // 00006 // email : cedric.baudry@tremplin-utc.fr // 00008 00010 // // 00011 // This program is free software; you can redistribute it and/or modify // 00012 // it under the terms of the GNU General Public License as published by // 00013 // the Free Software Foundation, version 2 of the License // 00014 // // 00016 00017 #pragma once 00018 00019 00020 #include "algebra3.h" 00021 #include <GL/gl.h> 00022 #include "macros.h" 00023 00024 class QColor; 00025 00036 class Figures 00037 { 00038 00039 00040 public: 00041 00042 QColor *axisColor; 00043 QColor *axisLabelColor; 00044 QColor *bgColor; 00045 00046 Figures(); 00047 00048 void billboardCheatSphericalBegin(void); //fast trick for billboarding 00049 void drawAxis (float length); 00050 void drawArrow (float length); 00051 void drawCuboid (vec3 p1, vec3 p2); 00052 void drawTraces (void); 00053 void drawGrid (double length, double pitch); 00054 bool testInclusion (vec3 p, vec3 pmin, vec3 pmax); 00055 void drawBox(GLfloat size, GLenum type); 00056 }; 00057
1.2.18