This class provides a simplified way to draw a connected series of lines to the GraphicsWindow passed to the class constructor.
#include <object.h>
Public Member Functions |
|
DrawLineProc () | |
Constructor. |
|
DrawLineProc (GraphicsWindow *g) | |
Constructor. |
|
int | proc (Point3 *p, int n) |
Implemented by the System. |
|
void | SetLineColor (float r, float g, float b) |
Implemented by the System. |
|
void | SetLineColor (Point3 c) |
void | Marker (Point3 *p, MarkerType type) |
DrawLineProc | ( | ) | [inline] |
Constructor.
The graphics window pointer is set to NULL.
{ gw = NULL; }
DrawLineProc | ( | GraphicsWindow * | g | ) | [inline] |
Constructor.
The graphics window pointer is set to g.
{ gw = g; }
int proc | ( | Point3 * | p, |
int | n | ||
) | [inline, virtual] |
Implemented by the System.
Draws a connected series of lines between the points to the GraphicsWindow passed to the class constructor.
p | Array of vertices of the polyline. |
n | Number of vertices in the polyline. |
Implements PolyLineProc.
{ gw->polyline(n, p, NULL, NULL, 0, NULL); return 0; }
void SetLineColor | ( | float | r, |
float | g, | ||
float | b | ||
) | [inline, virtual] |
Implemented by the System.
Sets the color used to draw the lines.
r | Red component in the range 0.0 to 1.0 |
g | Green component in the range 0.0 to 1.0 |
b | Blue component in the range 0.0 to 1.0 |
Reimplemented from PolyLineProc.
{gw->setColor(LINE_COLOR,r,g,b);}
void SetLineColor | ( | Point3 | c | ) | [inline, virtual] |
void Marker | ( | Point3 * | p, |
MarkerType | type | ||
) | [inline, virtual] |