Tulip  5.0.0
Large graphs analysis and drawing
GlComplexeEntity.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_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  /**
45  * return the bounding box of this entity
46  */
47  virtual BoundingBox getBoundingBox(const GlGraphInputData* data) = 0;
48 
49  /**
50  * Draw this entity with GlGraphInputData and Camera
51  */
52  virtual void draw(float lod,const GlGraphInputData* data,Camera* camera) = 0;
53 
54  /**
55  * Draw label of this entity
56  */
57  virtual void drawLabel(OcclusionTest* test,const GlGraphInputData* data) = 0;
58 };
59 
60 }
61 
62 #endif // Tulip_GLCOMPLEXEENTITY_H
63 ///@endcond