/usr/include/tulip/GlLines.h is in libtulip-dev 4.6.0dfsg-2+b5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | /*
*
* This file is part of Tulip (www.tulip-software.org)
*
* Authors: David Auber and the Tulip development Team
* from LaBRI, University of Bordeaux
*
* Tulip is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* Tulip is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
*/
///@cond DOXYGEN_HIDDEN
#ifndef _TLP_GLLINES
#define _TLP_GLLINES
#ifndef DOXYGEN_NOTFOR_DEVEL
#include <vector>
#if defined(_MSC_VER)
#include <Windows.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
#include <tulip/Coord.h>
#include <tulip/Color.h>
#include <tulip/tulipconf.h>
namespace tlp {
struct TLP_GL_SCOPE GlLines {
//Curves types: linear, bezier, spline order 3, spline order 4
enum InterpolationMethod {LINEAR=0, BEZIER, SPLINE3, SPLINE4};
enum StippleType {TLP_PLAIN=0, TLP_DOT, TLP_DASHED, TLP_ALTERNATE};
static void glDrawPoint(const Coord &p);
static void glDrawLine(const Coord &startPoint,const Coord &endPoint,const double width,const unsigned int stippleType,
const Color &startColor,const Color &endColor,const bool arrow=false,const double arrowWidth=1,
const double arrowHeight=1);
static void glDrawCurve(const Coord &startPoint,const std::vector<Coord> &bends,const Coord &endPoint,const double width,
const unsigned int stippleType,const Color &startColor,const Color &endColor,const bool arrow=false,
const double arrowWidth=1,const double arrowHeight=1);
static void glDrawBezierCurve(const Coord &startPoint,const std::vector<Coord> &bends,const Coord &endPoint,unsigned int steps,
const double width,const unsigned int stippleType,const Color &startColor,const Color &endColor,
const bool arrow=false,const double arrowWidth=1,const double arrowHeight=1);
static void glDrawSplineCurve(const Coord &startPoint,const std::vector<Coord> &bends,const Coord &endPoint,unsigned int steps,
const double width,const unsigned int stippleType,const Color &startColor,const Color &endColor,
const bool arrow=false,const double arrowWidth=1,const double arrowHeight=1);
static void glDrawSpline2Curve(const Coord &startPoint,const std::vector<Coord> &bends,const Coord &endPoint,unsigned int steps,
const double width,const unsigned int stippleType,const Color &startColor,const Color &endColor,
const bool arrow=false,const double arrowWidth=1,const double arrowHeight=1);
private:
static void glDisableLineStipple(unsigned int stippleType);
static void glEnableLineStipple(unsigned int stippleType);
static GLfloat *buildCurvePoints(const Coord &startPoint,const std::vector<Coord> &bends,const Coord &endPoint);
static GLfloat *buildCurvePoints(const Coord &p0,const Coord &p1,const Coord &p2,const Coord &p3);
};
}
#endif //DOXYGEN_NOTFOR_DEVEL
#endif
///@endcond
|