This file is indexed.

/usr/include/tulip/Glyph.h is in libtulip-dev 4.8.0dfsg-2build2.

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
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*
 *
 * 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 GLYPH_H
#define GLYPH_H

#ifndef DOXYGEN_NOTFOR_DEVEL

#include <tulip/Plugin.h>
#include <tulip/Size.h>
#include <tulip/Coord.h>
#include <tulip/BoundingBox.h>
#include <tulip/PluginContext.h>

namespace tlp {

static const std::string GLYPH_CATEGORY = "Node shape";

class Graph;
struct node;
class GlGraphInputData;

class GlyphContext : public PluginContext {
public:
  GlGraphInputData *glGraphInputData;
  ///
  GlyphContext(Graph ** =NULL, GlGraphInputData *glGraphInputData=NULL, int =5, int =5):
    glGraphInputData(glGraphInputData) {
  }
  ///
  ~GlyphContext() {
  }
};
//==========================================================
class TLP_GL_SCOPE Glyph : public tlp::Plugin {
public:
  std::string category() const {
    return GLYPH_CATEGORY;
  }
  std::string icon() const {
    return ":/tulip/gui/icons/32/plugin_glyph.png";
  }

  Glyph(const tlp::PluginContext* context);
  virtual ~Glyph();

  virtual std::string getGroup() const {
    return "";
  }

  virtual void getIncludeBoundingBox(BoundingBox &boundingBox,node) {
    boundingBox[0] = Coord(-0.5,-0.5,-0.5);
    boundingBox[1] = Coord(0.5,0.5,0.5);
  }

  virtual void getTextBoundingBox(BoundingBox &boundingBox,node n) {
    getIncludeBoundingBox(boundingBox,n);
  }

  virtual void draw(node,float)=0;
  /*
   * return a point where an edge coming from "from" can be attached
   * by default, the point will be on the surface of the largest sphere contained
   * inside the unit cube (before scaling).
   */
  virtual Coord getAnchor(const Coord &nodeCenter, const Coord &from,
                          const Size &scale, const double zRotation) const;

  /**
   * Return if the Glyph render its label (return true) of if GlNode have to render label (return false)
   */
  virtual bool renderLabel() {
    return false;
  }

  GlGraphInputData *glGraphInputData;

protected:
  /*
   * called by public method getAnchor to actually compute the anchor point
   * vector is coordinate of the point to anchor to, relative to nodecenter
   * glyph size is (1,1,1)
   * this is the method to redefine for each glyph where the default 'getAnchor' method
   * is inapropriated
   * Returned value is a vector to be applied to 'nodeCenter' in the public method
   */
  virtual Coord getAnchor(const Coord &vector) const;
};

}

#define GLYPHINFORMATION(NAME, AUTHOR, DATE, INFO, RELEASE, ID) \
PLUGININFORMATION(NAME, AUTHOR, DATE, INFO, RELEASE, "")\
int id() const { return ID; }

#define GLYPHINFORMATIONS(NAME, AUTHOR, DATE, INFO, RELEASE, ID) \
PLUGININFORMATION(NAME, AUTHOR, DATE, INFO, RELEASE, "")\
int id() const { return ID; }

#endif // DOXYGEN_NOTFOR_DEVEL

#endif //GLYPH_H
///@endcond