Tulip  5.3.0
Large graphs analysis and drawing
GlTriangle.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 
20 #ifndef GLTRIANGLE_H
21 #define GLTRIANGLE_H
22 
23 #include <tulip/GlRegularPolygon.h>
24 
25 namespace tlp {
26 
27 /**
28  * @ingroup OpenGL
29  * @brief Class to create a triangle
30  */
31 class TLP_GL_SCOPE GlTriangle : public GlRegularPolygon {
32 public:
33  /**
34  * @brief Constructor
35  */
36  GlTriangle(const Coord &position, const Size &size,
37  const Color &outlineColor = Color(255, 0, 0, 255),
38  const Color &fillColor = Color(0, 0, 255, 255), bool filled = true,
39  bool outlined = true, const std::string &textureName = "", float outlineSize = 1.);
40  /**
41  * @brief Default empty destructor
42  *
43  * @warning Don't use this constructor
44  */
45  ~GlTriangle() override;
46 };
47 } // namespace tlp
48 #endif
Class to create a triangle.
Definition: GlTriangle.h:31
class to create a regular polygon