Tulip  4.0.0
Better Visualization Through Research
 All Classes Files Functions Variables Enumerations Enumerator Properties Groups Pages
GLInteractor.h
1 /*
2  *
3  * This file is part of Tulip (www.tulip-software.org)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 #ifndef GLINTERACTOR_H
22 #define GLINTERACTOR_H
23 
24 #include <tulip/InteractorComposite.h>
25 
26 namespace tlp {
27 
28 class GlMainWidget;
29 
30 class TLP_QT_SCOPE GLInteractorComponent: public tlp::InteractorComponent {
31  Q_OBJECT
32 public slots:
33  virtual bool draw(tlp::GlMainWidget*) {
34  return false;
35  }
36  virtual bool compute(tlp::GlMainWidget*) {
37  return false;
38  }
39 };
40 
41 class TLP_QT_SCOPE GLInteractorComposite: public tlp::InteractorComposite {
42  Q_OBJECT
43 
44 public:
45  GLInteractorComposite(const QIcon& icon, const QString& text="");
46 
47 public slots:
48  virtual void compute(tlp::GlMainWidget*);
49  virtual void draw(tlp::GlMainWidget*);
50 };
51 
52 }
53 
54 #endif // GLINTERACTOR_H
55 ///@endcond