Tulip 5.7.1
Large graphs analysis and drawing
Loading...
Searching...
No Matches
EdgeExtremityGlyphManager.h
1/*
2 *
3 * This file is part of Tulip (https://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 EDGEEXTREMITYGLYPHMANAGER_H_
22#define EDGEEXTREMITYGLYPHMANAGER_H_
23
24#include <string>
25
26#include <tulip/tulipconf.h>
27#include <tulip/MutableContainer.h>
28
29namespace tlp {
30class GlGraphInputData;
31class EdgeExtremityGlyph;
32class Graph;
33
34class TLP_GL_SCOPE EdgeExtremityGlyphManager {
35
36public:
37 /**
38 * Return the name of glyph with given id
39 */
40 static std::string glyphName(int id);
41 /**
42 * Return the id if glyph with given name
43 */
44 static int glyphId(const std::string &name);
45 /**
46 * Load glyphs plugins
47 */
48 static void loadGlyphPlugins();
49
50 /**
51 * Create the glyph list and store it in glyphs parameter
52 */
53 static void initGlyphList(Graph **graph, GlGraphInputData *glGraphInputData,
54 MutableContainer<EdgeExtremityGlyph *> &glyphs);
55 /**
56 * Clear the glyph list
57 */
58 static void clearGlyphList(Graph **graph, GlGraphInputData *glGraphInputData,
59 MutableContainer<EdgeExtremityGlyph *> &glyphs);
60};
61} // namespace tlp
62#endif /* EDGEEXTREMITYGLYPHMANAGER_H_ */
63///@endcond