#include <box.h>
Inheritance diagram for BoxValue:
Public Member Functions | |
virtual QString | toString () |
virtual bool | equals_same_type (Value *other) |
BoxValue () | |
BoxValue (Token data) | |
virtual Data | getSaveDescription (QString prefix) |
Public Attributes | |
PointValue | tl |
PointValue | br |
PointValue | tr |
PointValue | bl |
Definition at line 7 of file box.h.
|
Definition at line 16 of file box.h.
|
|
Definition at line 19 of file box.h. 00019 : 00020 tl((Token)data["tl"]), 00021 br((Token)data["br"]), 00022 tr((Token)data["tr"]), 00023 bl((Token)data["bl"]) 00024 { 00025 }
|
|
Implements Value. Definition at line 15 of file box.cpp. References bl, br, Value::equals(), tl, and tr. 00016 { 00017 BoxValue *o = (BoxValue*)other; 00018 return tl.equals(o->tl) && 00019 tr.equals(o->tr) && 00020 bl.equals(o->bl) && 00021 br.equals(o->br); 00022 }
|
|
Implements Value. Definition at line 26 of file box.h. References bl, br, PointValue::getSaveDescription(), tl, and tr. 00027 { 00028 Token r; 00029 r["type"]=Symbol("box"); 00030 r["tl"]=tl.getSaveDescription(prefix); 00031 r["tr"]=tr.getSaveDescription(prefix); 00032 r["bl"]=bl.getSaveDescription(prefix); 00033 r["br"]=br.getSaveDescription(prefix); 00034 return r; 00035 };
|
|
Implements Value. Definition at line 6 of file box.cpp. References bl, br, tl, PointValue::toString(), and tr. 00007 { 00008 return QString("(")+ 00009 tl.toString()+QString(", ")+ 00010 tr.toString()+QString(", ")+ 00011 br.toString()+QString(", ")+ 00012 bl.toString()+QString(")"); 00013 }
|
|
Definition at line 13 of file box.h. Referenced by Runtime::crop(), equals_same_type(), getSaveDescription(), BoxPicker::nextPoint(), and toString(). |
|
Definition at line 11 of file box.h. Referenced by Runtime::crop(), equals_same_type(), getSaveDescription(), BoxPicker::nextPoint(), and toString(). |
|
Definition at line 10 of file box.h. Referenced by Runtime::crop(), equals_same_type(), getSaveDescription(), BoxPicker::nextPoint(), and toString(). |
|
Definition at line 12 of file box.h. Referenced by Runtime::crop(), equals_same_type(), getSaveDescription(), BoxPicker::nextPoint(), and toString(). |