Tulip  5.3.0
Large graphs analysis and drawing
GlComplexeEntity.h
1 /*
2  *
3  * This file is part of Tulip (http://tulip.labri.fr)
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_GLCOMPLEXEENTITY_H
22 #define Tulip_GLCOMPLEXEENTITY_H
23 
24 #include <tulip/BoundingBox.h>
25 #include <tulip/GlEntity.h>
26 
27 namespace tlp {
28 
29 struct OcclusionTest;
30 class TextRenderer;
31 class GlGraphInputData;
32 class Camera;
33 
34 /** \brief Virtual class used by GlNode, GlMetaNode and GlEdge
35  *
36  * This class is a virtual class used by GlNode, GlMetaNode and GlEdge
37  * Define draw function for entities who need GlGraphInputData variable
38  * Define drawLabel function
39  */
40 class TLP_GL_SCOPE GlComplexeEntity : public GlEntity {
41 
42 public:
43  /**
44  * return the bounding box of this entity
45  */
46  virtual BoundingBox getBoundingBox(const GlGraphInputData *data) = 0;
47 
48  /**
49  * Draw this entity with GlGraphInputData and Camera
50  */
51  virtual void draw(float lod, const GlGraphInputData *data, Camera *camera) = 0;
52 
53  /**
54  * Draw label of this entity
55  */
56  virtual void drawLabel(OcclusionTest *test, const GlGraphInputData *data) = 0;
57 };
58 } // namespace tlp
59 
60 #endif // Tulip_GLCOMPLEXEENTITY_H
61 ///@endcond