69 static void drawBorderRect(
float left,
float top,
float right,
float bottom);
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
GL extended drawing routines, used by SoView2DExtensions, e.g. SoView2DSphere.
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,...
static ml::Vector2 vecCosSin(int i, int n=50)
TODO: documentation.
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...
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
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 ar...
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 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 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 coor...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.