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

A 2D glyph. More...

List of all members.

Public Member Functions

 Diamond (GlyphContext *gc=NULL)
 Diamond (EdgeExtremityGlyphContext *gc)
virtual ~Diamond ()
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

Static Protected Attributes

static GlRegularPolygon * diamond = 0

Detailed Description

A 2D glyph.

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