#include <line.h>
Inheritance diagram for LineValue:
Public Member Functions | |
virtual QString | toString () |
double | dx () |
double | dy () |
LineValue () | |
LineValue (Token data) | |
virtual Data | getSaveDescription (QString prefix) |
Public Attributes | |
PointValue | a |
PointValue | b |
Protected Member Functions | |
virtual bool | equals_same_type (Value *other) |
Definition at line 7 of file line.h.
|
Definition at line 15 of file line.h.
|
|
Definition at line 18 of file line.h.
|
|
Definition at line 13 of file line.h. References a, b, and PointValue::x.
|
|
Definition at line 14 of file line.h. References a, b, and PointValue::y.
|
|
Implements Value. Definition at line 11 of file line.cpp. References a, b, and Value::equals(). 00012 { 00013 LineValue * o = (LineValue*)other; 00014 return a.equals(o->a) && b.equals(o->b); 00015 }
|
|
Implements Value. Definition at line 23 of file line.h. References a, b, and PointValue::getSaveDescription(). 00024 { 00025 Token r; 00026 r["type"]=Symbol("line"); 00027 r["a"]=a.getSaveDescription(prefix); 00028 r["b"]=b.getSaveDescription(prefix); 00029 return r; 00030 };
|
|
Implements Value. Definition at line 4 of file line.cpp. References a, b, and PointValue::toString(). 00005 { 00006 return QString("(")+a.toString()+ 00007 QString(", ")+b.toString()+ 00008 QString(")"); 00009 }
|
|
Definition at line 10 of file line.h. Referenced by dx(), dy(), equals_same_type(), getSaveDescription(), LinePicker::nextPoint(), Runtime::straighten(), and toString(). |
|
Definition at line 11 of file line.h. Referenced by dx(), dy(), equals_same_type(), getSaveDescription(), LinePicker::nextPoint(), Runtime::straighten(), and toString(). |