Tulip Plugins
Public Member Functions | Protected Member Functions
Ring Class Reference

A 2D glyph. More...

List of all members.

Public Member Functions

 Ring (GlyphContext *gc=NULL)
 Ring (EdgeExtremityGlyphContext *gc)
virtual ~Ring ()
virtual void getIncludeBoundingBox (BoundingBox &boundingBox, node)
virtual string getName ()
virtual void draw (node n, float lod)
virtual void draw (edge e, node n, const Color &glyphColor, const Color &borderColor, float lod)

Protected Member Functions

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

Detailed Description

A 2D glyph.

This glyph draws a textured disc with a circular hole using the "viewTexture" node property value. If this property has no value, the ring is then colored using the "viewColor" node property value.


Member Function Documentation

void Ring::drawGlyph ( const Color &  glyohColor,
const string &  texture,
const string &  texturePath,
double  borderWidth,
const Color &  borderColor,
float  lod 
) [inline, protected]
virtual string Ring::getName ( ) [inline, virtual]