Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

test_area.cpp 2.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*!
 * \brief Test of the container drawing
 */



#include "test_area.hpp"


using namespace std;

12 13 14 15 16 17 18 19 20 21
class Interface_ : public Interface{
public:
    void error(string s) const{
        cerr << s << endl;
    }

    void warning(string s) const{
        cerr << s << endl;
    }
    
Olivier Lagrasse's avatar
Olivier Lagrasse committed
22 23 24 25 26 27 28
    void information(string s) const{
        cerr << s << endl;
    }
    
    const std::string get_filename() const{
        return string("Filename");
    }
29 30 31
    
};

32 33

int main(int argc, char** argv){
34
   glutInit(&argc, argv);
35 36 37

    QApplication app(argc, argv);

38 39 40
    Interface_ i;
    Message::set_interface_instance(&i);
   
41 42
    //  Interface_graphic* g = new Interface_graphic();
    QWidget t;
43 44
    t.setGeometry(0, 0, 800, 600);
   
45 46
    Render_area r(&t);
    r.setGeometry(0, 0, 800, 600);
47 48 49
    //    r.show();
    t.show();
    
50

51 52 53 54 55
    r.start_draw();
    {
        
        r.start_draw_containers();
        {
Olivier Lagrasse's avatar
Olivier Lagrasse committed
56
            /*  r.draw_container(0, 0, 30, 20);
Olivier Lagrasse's avatar
Olivier Lagrasse committed
57
              r.draw_container(0, 22, 10, 20);
Olivier Lagrasse's avatar
Olivier Lagrasse committed
58
              r.draw_container(0, 43, 15, 20);*/
59 60 61 62 63 64 65 66 67
              //  r.draw_container(1, 60, 60, 20);
               r.draw_container_text(0, 10,"Container 2");
              r.draw_container_text(0, 32,"Container 1");
        }
        r.end_draw_containers();
        
        r.start_draw_states();
        {
       
Olivier Lagrasse's avatar
Olivier Lagrasse committed
68
            /*            r.draw_state(0, 4, 0, 20, 0.6, 0.7, 0.8);
69 70 71 72 73 74 75
              r.draw_state(4.5, 7.98, 0, 20, 0.6, 0.7, 0.8);
              r.draw_arrow(10, 10, 0, 3);
              r.draw_arrow(10, -10, -15, -3);
              r.draw_arrow(-150, 150, -10, 30);
              r.draw_event(14, 4, 2);
              r.draw_event(10, 4, 1);
              r.draw_event(18, 4, 3);
Olivier Lagrasse's avatar
Olivier Lagrasse committed
76
              r.draw_event(10, 4, 10);*/
77 78 79

        }
        r.end_draw_states();
Olivier Lagrasse's avatar
Olivier Lagrasse committed
80 81 82

        r.start_draw_counter();
        {
Olivier Lagrasse's avatar
Olivier Lagrasse committed
83 84 85
            r.draw_counter(0.0f, 1);
            r.draw_counter(5, 1.2);
            r.draw_counter(7, 2);
Olivier Lagrasse's avatar
Olivier Lagrasse committed
86
            r.draw_counter(19.345, 3);
Olivier Lagrasse's avatar
Olivier Lagrasse committed
87 88
            r.draw_counter(24.45, 2);
            r.draw_counter(32, 6);
Olivier Lagrasse's avatar
Olivier Lagrasse committed
89 90
        }
        r.end_draw_counter();
91 92 93 94 95 96 97 98
        
     
    }
    r.end_draw();

   ;

    r.build();
99 100 101 102

    return app.exec();
}