#include <image.h>
Public Member Functions | |
DirectPoint () | |
DirectPoint (int a, int b) | |
DirectPoint (Token data) | |
Data | getSaveDescription () |
void | copyFrom (const PointValue &other) |
operator PointValue () | |
DirectPoint & | operator+= (const DirectPoint &other) |
DirectPoint | operator- (const DirectPoint &other) const |
bool | operator== (const DirectPoint &other) const |
Public Attributes | |
int | x |
int | y |
Definition at line 15 of file image.h.
|
Initalizes the point with value (0, 0) Definition at line 24 of file image.h.
|
|
Initializes the coordinate Definition at line 33 of file image.h.
|
|
Initializing from a token Definition at line 42 of file image.h.
|
|
Copys the data from a pointvalue thereby truncating (rouding down) all data behind the comma Definition at line 65 of file image.h. References PointValue::x, x, PointValue::y, and y. Referenced by ImageValue::ocsToDcs().
|
|
Returns the saved description of this direct point Definition at line 52 of file image.h. Referenced by ImageValue::getSaveDescription(). 00053 { 00054 Token r; 00055 r["type"]=Symbol("directpoint"); 00056 r["x"]=Signed4(x); 00057 r["y"]=Signed4(y); 00058 return r; 00059 };
|
|
automatic convertion to point values is possible because no data will be lost Definition at line 75 of file image.h. References x, PointValue::x, y, and PointValue::y. 00076 { 00077 PointValue result; 00078 result.x = x; 00079 result.y = y; 00080 return result; 00081 }
|
|
Translates the coordinate Definition at line 86 of file image.h.
|
|
subtracts the points Definition at line 96 of file image.h. 00097 { 00098 DirectPoint result; 00099 result.x = x - other.x; 00100 result.y = y - other.y; 00101 return result; 00102 }
|
|
Compares the values of the two points Definition at line 107 of file image.h.
|
|
Definition at line 18 of file image.h. Referenced by ImageValue::addFrom(), copyFrom(), Runtime::crop(), DirectPoint(), dist(), ImageValue::drawAxes(), getSaveDescription(), ImageValue::ImageValue(), ImageValue::left(), ImageValue::loadImage(), ImageValue::ocsToDcs(), operator PointValue(), operator+=(), operator-(), operator==(), ImageValue::outside(), ImageValue::right(), and Runtime::straighten(). |
|
Definition at line 19 of file image.h. Referenced by ImageValue::addFrom(), ImageValue::bottom(), copyFrom(), Runtime::crop(), DirectPoint(), dist(), getSaveDescription(), ImageValue::ImageValue(), ImageValue::loadImage(), ImageValue::ocsToDcs(), operator PointValue(), operator+=(), operator-(), operator==(), ImageValue::outside(), Runtime::straighten(), and ImageValue::top(). |