Public Member Functions

DrawLineProc Class Reference

Search for all occurrences

Detailed Description

This class provides a simplified way to draw a connected series of lines to the GraphicsWindow passed to the class constructor.

See also:
Class PolyLineProc, Class GraphicsWindow

#include <object.h>

Inheritance diagram for DrawLineProc:
Inheritance graph
[legend]

List of all members.

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)

Constructor & Destructor Documentation

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; }

Member Function Documentation

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.

Parameters:
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.

Parameters:
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]

Reimplemented from PolyLineProc.

{gw->setColor(LINE_COLOR,c);}
void Marker ( Point3 p,
MarkerType  type 
) [inline, virtual]

Reimplemented from PolyLineProc.

{gw->marker(p,type);}

DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc
DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc DrawLineProc