GL extended drawing routines, used by SoView2DExtensions, e.g. SoView2DSphere.
More...
|
static void | drawCircle (ml::Vector2 c, double r, int n=50, bool fill=false) |
| draws circle subdivided into n segments, using LINE_LOOP c and r are given in device coordinates
|
|
static void | drawEllipse (ml::Vector2 c, ml::Vector2 r1, ml::Vector2 r2, int n=50, bool fill=false) |
| draws ellipse with two half axes r1 and r2, subdivided into n segments, using LINE_LOOP cx, cy, and r are given in device coordinates
|
|
static void | drawEllipseBand (ml::Vector2 c, ml::Vector2 r1, ml::Vector2 r2, double b1, double b2, int n=50, bool fill=false) |
| draws ellipse Band with two half axes r1 and r2, band is perpendicular to short axis and takes two arguments b1 and b2 (-1 <= b <= 1) as relative limits on short axis subdivided into n segments, using TRIANGLE_STRIP cx, cy, r and b are given in device coordinates
|
|
static void | drawHalfEllipse (ml::Vector2 c, ml::Vector2 r1, ml::Vector2 r2, double b1, double b2, int n=50, bool fill=false, bool stippled=false) |
| Draws a part of a ellipse.
|
|
static void | drawRing (ml::Vector2 c, double r1, double r2, int n=50) |
| draws ring or disk subdivided into n segments, using TRIANGLE_STRIP c, r1, and r2 are given in device coordinates, r1 may be zero
|
|
static void | drawCross (ml::Vector2 c, double r) |
| draws cross centered at (cx,cy) with half width r, using LINES cx, cy, and r are given in device coordinates
|
|
static void | drawBorderRect (float left, float top, float right, float bottom) |
| draws border rectangle using glRect to prevent missing corners previously set glLineWidth is used
|
|
GL extended drawing routines, used by SoView2DExtensions, e.g. SoView2DSphere.
a static class for extended 2D drawing with GL
Definition at line 23 of file View2DDraw.h.