Tulip Plugins
Public Member Functions | Protected Member Functions | Static Protected Attributes
Square Class Reference

A 2D glyph. More...

List of all members.

Public Member Functions

 Square (GlyphContext *gc=NULL)
 Square (EdgeExtremityGlyphContext *gc)
virtual ~Square ()
virtual void draw (node n, float lod)
virtual Coord getAnchor (const Coord &vector) const
virtual void draw (edge e, node n, const Color &glyphColor, const Color &borderColor, float lod)

Protected Member Functions

void drawGlyph (const Color &glyphColor, const string &texture, const string &texturePath, double borderWidth, const Color &borderColor, float lod)

Static Protected Attributes

static GlRect * rect = 0

Detailed Description

A 2D glyph.

This glyph draws a textured square using the "viewTexture" node property value. If this property has no value, the square is then colored using the "viewColor" node property value.