22 #ifndef EDGEEXTREMITYGLYPH_H_ 
   23 #define EDGEEXTREMITYGLYPH_H_ 
   25 #include <tulip/Size.h> 
   26 #include <tulip/Coord.h> 
   27 #include <tulip/Matrix.h> 
   28 #include <tulip/Plugin.h> 
   34 static const std::string EEGLYPH_CATEGORY = 
"Edge extremity";
 
   36 typedef Matrix<float, 4> MatrixGL;
 
   37 class GlGraphInputData;
 
   39 class TLP_GL_SCOPE EdgeExtremityGlyph: 
public Plugin {
 
   41   virtual std::string category()
 const {
 
   42     return EEGLYPH_CATEGORY;
 
   44   std::string icon()
 const {
 
   45     return ":/tulip/gui/icons/32/plugin_glyph.png";
 
   49   virtual ~EdgeExtremityGlyph();
 
   50   virtual void draw(edge e, node n, 
const Color& glyphColor,
const Color &borderColor, 
float lod) = 0;
 
   51   void get2DTransformationMatrix(
const Coord &src, 
const Coord &dest,
const Size &glyphSize, MatrixGL& transformationMatrix, MatrixGL& scalingMatrix);
 
   52   void get3DTransformationMatrix(
const Coord &src, 
const Coord &dest,
const Size &glyphSize, MatrixGL& transformationMatrix, MatrixGL& scalingMatrix);
 
   54   GlGraphInputData *edgeExtGlGraphInputData;