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

A 2D glyph. More...

List of all members.

Public Member Functions

 Cross (GlyphContext *gc=NULL)
 Cross (EdgeExtremityGlyphContext *gc)
virtual ~Cross ()
virtual void getIncludeBoundingBox (BoundingBox &boundingBox, node)
virtual void draw (node n, float lod)
virtual void draw (edge e, node n, const Color &glyphColor, const Color &borderColor, float lod)
virtual void draw (const Color &fillColor, const Color &borderColor, float borderWidth, const std::string &textureName, float lod)
virtual Coord getAnchor (const Coord &vector) const

Protected Member Functions

void initCross ()

Static Protected Attributes

static GlComplexPolygon * cross = 0

Detailed Description

A 2D glyph.

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