MeVisLabToolboxReference
|
a static class for extended 2D drawing with GL More...
#include <View2DDraw.h>
Static Public Member Functions | |
static void | drawCircle (ml::vec2 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::vec2 c, ml::vec2 r1, ml::vec2 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::vec2 c, ml::vec2 r1, ml::vec2 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::vec2 c, ml::vec2 r1, ml::vec2 r2, double b1, double b2, int n=50, bool fill=false, bool stippled=false) |
Draws a part of a ellipse. | |
static void | drawRing (ml::vec2 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::vec2 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 Protected Member Functions | |
static ml::vec2 | vecCosSin (int i, int n=50) |
TODO: documentation. |
a static class for extended 2D drawing with GL
Definition at line 24 of file View2DDraw.h.
static void View2DDraw::drawCircle | ( | ml::vec2 | c, |
double | r, | ||
int | n = 50 , |
||
bool | fill = false |
||
) | [static] |
draws circle subdivided into n segments, using LINE_LOOP c and r are given in device coordinates
static void View2DDraw::drawCross | ( | ml::vec2 | c, |
double | r | ||
) | [static] |
draws cross centered at (cx,cy) with half width r, using LINES cx, cy, and r are given in device coordinates
static void View2DDraw::drawEllipse | ( | ml::vec2 | c, |
ml::vec2 | r1, | ||
ml::vec2 | r2, | ||
int | n = 50 , |
||
bool | fill = false |
||
) | [static] |
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 View2DDraw::drawEllipseBand | ( | ml::vec2 | c, |
ml::vec2 | r1, | ||
ml::vec2 | r2, | ||
double | b1, | ||
double | b2, | ||
int | n = 50 , |
||
bool | fill = false |
||
) | [static] |
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 View2DDraw::drawHalfEllipse | ( | ml::vec2 | c, |
ml::vec2 | r1, | ||
ml::vec2 | r2, | ||
double | b1, | ||
double | b2, | ||
int | n = 50 , |
||
bool | fill = false , |
||
bool | stippled = false |
||
) | [static] |
Draws a part of a ellipse.
c | center of the ellipse |
r1 | one of the two half axes of the ellipse |
r2 | one of the two half axes of the ellipse |
b1 | relative limit (between [-1,1]) on short axis to define one end of the part which has to be drawn |
b2 | see b1 |
n | defines in how much segments the ellipse should be devides |
stippled | defines whether the part has to be drawn normally (false) or stippled (true) |
static void View2DDraw::drawRing | ( | ml::vec2 | c, |
double | r1, | ||
double | r2, | ||
int | n = 50 |
||
) | [static] |
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 ml::vec2 View2DDraw::vecCosSin | ( | int | i, |
int | n = 50 |
||
) | [static, protected] |
TODO: documentation.