LinePicker Class Reference

#include <line.h>

Inheritance diagram for LinePicker:

ImagePicker List of all members.

Public Member Functions

 LinePicker (ImageValue *I)
virtual Valuevalue ()
virtual void nextPoint (PointValue point, bool right)

Private Attributes

LineValue line
bool first

Detailed Description

Definition at line 35 of file line.h.


Constructor & Destructor Documentation

LinePicker::LinePicker ImageValue I  )  [inline]
 

Definition at line 40 of file line.h.

00040 : ImagePicker(I), first(true) {};


Member Function Documentation

void LinePicker::nextPoint PointValue  point,
bool  right
[virtual]
 

Implements ImagePicker.

Definition at line 34 of file line.cpp.

References LineValue::a, LineValue::b, first, and line.

00035 {
00036   if (first)
00037     {
00038       line.a=p;
00039       first = false;
00040     }
00041   else
00042     {
00043       line.b=p;
00044       accept();
00045     }
00046 }

virtual Value* LinePicker::value  )  [inline, virtual]
 

Implements ImagePicker.

Definition at line 41 of file line.h.

References line.

Referenced by Runtime::line().

00041 {return new LineValue(line);};


Member Data Documentation

bool LinePicker::first [private]
 

Definition at line 38 of file line.h.

Referenced by nextPoint().

LineValue LinePicker::line [private]
 

Definition at line 37 of file line.h.

Referenced by nextPoint(), and value().


The documentation for this class was generated from the following files:
Generated on Mon Jun 5 22:08:43 2006 for iis by  doxygen 1.4.6