Tulip  4.7.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
GlSceneVisitor.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
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 Tulip_GLSCENEVISITOR_H
22 #define Tulip_GLSCENEVISITOR_H
23 
24 #include <tulip/tulipconf.h>
25 
26 namespace tlp {
27 
28 class GlSimpleEntity;
29 class GlNode;
30 class GlEdge;
31 class GlLayer;
32 
33 class TLP_GL_SCOPE GlSceneVisitor {
34 
35 public:
36 
37  GlSceneVisitor():threadSafe(false) {}
38  virtual ~GlSceneVisitor() {}
39 
40  virtual void visit(GlSimpleEntity *) {}
41  virtual void visit(GlNode *) {}
42  virtual void visit(GlEdge *) {}
43  virtual void visit(GlLayer *) {}
44  virtual void reserveMemoryForNodes(unsigned int) {}
45  virtual void reserveMemoryForEdges(unsigned int) {}
46  bool isThreadSafe() {
47  return threadSafe;
48  }
49 
50 protected :
51 
52  bool threadSafe;
53 
54 };
55 
56 }
57 
58 #endif // Tulip_GLSCENEVISITOR_H
59 ///@endcond