BoxValue Class Reference

#include <box.h>

Inheritance diagram for BoxValue:

Value List of all members.

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

Detailed Description

Definition at line 7 of file box.h.


Constructor & Destructor Documentation

BoxValue::BoxValue  )  [inline]
 

Definition at line 16 of file box.h.

00017     {
00018     }

BoxValue::BoxValue Token  data  )  [inline]
 

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      }


Member Function Documentation

bool BoxValue::equals_same_type Value other  )  [virtual]
 

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 }

virtual Data BoxValue::getSaveDescription QString  prefix  )  [inline, virtual]
 

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

QString BoxValue::toString  )  [virtual]
 

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 }


Member Data Documentation

PointValue BoxValue::bl
 

Definition at line 13 of file box.h.

Referenced by Runtime::crop(), equals_same_type(), getSaveDescription(), BoxPicker::nextPoint(), and toString().

PointValue BoxValue::br
 

Definition at line 11 of file box.h.

Referenced by Runtime::crop(), equals_same_type(), getSaveDescription(), BoxPicker::nextPoint(), and toString().

PointValue BoxValue::tl
 

Definition at line 10 of file box.h.

Referenced by Runtime::crop(), equals_same_type(), getSaveDescription(), BoxPicker::nextPoint(), and toString().

PointValue BoxValue::tr
 

Definition at line 12 of file box.h.

Referenced by Runtime::crop(), equals_same_type(), getSaveDescription(), BoxPicker::nextPoint(), and toString().


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