Tulip  4.2.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
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 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 Tulip_GLCOMPLEXEENTITY_H
22 #define Tulip_GLCOMPLEXEENTITY_H
23 
24 #include <vector>
25 
26 #include <tulip/BoundingBox.h>
27 
28 #include <tulip/GlEntity.h>
29 
30 namespace tlp {
31 
32 struct OcclusionTest;
33 class TextRenderer;
34 class GlGraphInputData;
35 class Camera;
36 
37 /** \brief Virtual class used by GlNode, GlMetaNode and GlEdge
38  *
39  * This class is a virtual class used by GlNode, GlMetaNode and GlEdge
40  * Define draw function for entities who need GlGraphInputData variable
41  * Define drawLabel function
42  */
43 class TLP_GL_SCOPE GlComplexeEntity : public GlEntity {
44 
45 public:
46 
47  /**
48  * return the bounding box of this entity
49  */
50  virtual BoundingBox getBoundingBox(const GlGraphInputData* data) = 0;
51 
52  /**
53  * Draw this entity with GlGraphInputData and Camera
54  */
55  virtual void draw(float lod,const GlGraphInputData* data,Camera* camera) = 0;
56 
57  /**
58  * Draw label of this entity
59  */
60  virtual void drawLabel(OcclusionTest* test,const GlGraphInputData* data) = 0;
61 };
62 
63 }
64 
65 #endif // Tulip_GLCOMPLEXEENTITY_H
66 ///@endcond