#include <wrkcoord.h>
Public Member Functions | |
WorkCoord () | |
WorkCoord (INT32 x, INT32 y) | |
WorkCoord (XLONG x, XLONG y) | |
Constructor that can initialise elements. | |
OilCoord | ToOil (const WorkCoord &scrollOffset) |
Converts a WorkCoord to an OilCoord. | |
void | ToOil (const WorkCoord &scrollOffset, OilCoord *result) |
Converts a WorkCoord to an OilCoord. | |
WorkCoord & | operator= (const Coord &) |
Safe casting between types using operator overloading. | |
WorkCoord | Pixelise (double pixwidthx, double pixwidthy) |
Public Attributes | |
XLONG | x |
XLONG | y |
Friends | |
WorkCoord | operator- (const WorkCoord &) |
Negates a WorkCoord. |
Definition at line 125 of file wrkcoord.h.
|
Definition at line 131 of file wrkcoord.h.
|
|
Definition at line 168 of file wrkcoord.h.
|
|
Constructor that can initialise elements.
Definition at line 162 of file wrkcoord.h.
|
|
Safe casting between types using operator overloading.
Definition at line 189 of file wrkcoord.h.
|
|
Definition at line 141 of file wrkcoord.h. 00141 {return WorkCoord( 00142 (INT64)((floor(0.5 + (double)x / pixwidthx)) * pixwidthx), 00143 (INT64)((floor(0.5 + (double)x / pixwidthy)) * pixwidthy) 00144 );}
|
|
Converts a WorkCoord to an OilCoord.
Definition at line 139 of file wrkcoord.cpp. 00140 { 00141 result->x = INT32(x - scrollOffset.x); 00142 result->y = INT32(y - scrollOffset.y); 00143 }
|
|
Converts a WorkCoord to an OilCoord.
Definition at line 118 of file wrkcoord.cpp. 00119 { 00120 OilCoord result( INT32(x - scrollOffset.x), INT32(y - scrollOffset.y) ); 00121 00122 return result; 00123 }
|
|
Negates a WorkCoord.
Definition at line 210 of file wrkcoord.h. 00211 { 00212 WorkCoord result; 00213 00214 result.x = -input.x; 00215 result.y = -input.y; 00216 return result; 00217 }
|
|
Definition at line 128 of file wrkcoord.h. |
|
Definition at line 129 of file wrkcoord.h. |