#include <Area.hpp>
Public Methods | |
JArea () | |
JArea (const JArea &a) | |
JArea (const JArea &a, const double scale) | |
JArea (const double Left, const double Right, const double Bottom, const double Top) | |
JArea (const JVector2D &BottomLeft, const JVector2D &TopRight) | |
virtual | ~JArea () |
BOOL | operator== (const JArea &a) const |
BOOL | operator!= (const JArea &a) const |
JArea & | operator= (const JArea &a) |
double | JArea () const |
double | Left () const |
double | Left (const double l) |
double | Right () const |
double | Right (const double r) |
double | Top () const |
double | Top (const double t) |
double | Bottom () const |
double | Bottom (const double b) |
double | X () const |
double | XScale (const double Scale) const |
double | Y () const |
double | YScale (const double Scale) const |
void | SetAll (const double Left, const double Right, const double Bottom, const double Top) |
void | SetOrg (const JVector2D &v) |
void | SetLowerRight (const JVector2D &v) |
JVector2D | vecLL () const |
JVector2D | vecLR () const |
JVector2D | vecUL () const |
JVector2D | vecUR () const |
JArea () | |
JArea (const JArea &a) | |
JArea (const JArea &a, const double scale) | |
JArea (const double Left, const double Right, const double Bottom, const double Top) | |
JArea (const JVector2D &BottomLeft, const JVector2D &TopRight) | |
virtual | ~JArea () |
BOOL | operator== (const JArea &a) const |
BOOL | operator!= (const JArea &a) const |
JArea & | operator= (const JArea &a) |
double | JArea () const |
double | Left () const |
double | Left (const double l) |
double | Right () const |
double | Right (const double r) |
double | Top () const |
double | Top (const double t) |
double | Bottom () const |
double | Bottom (const double b) |
double | X () const |
double | XScale (const double Scale) const |
double | Y () const |
double | YScale (const double Scale) const |
void | SetAll (const double Left, const double Right, const double Bottom, const double Top) |
void | SetOrg (const JVector2D &v) |
void | SetLowerRight (const JVector2D &v) |
JVector2D | vecLL () const |
JVector2D | vecLR () const |
JVector2D | vecUL () const |
JVector2D | vecUR () const |
Private Methods | |
void | AdjustCoordinates () |
void | AdjustCoordinates () |
Private Attributes | |
double | Left |
double | Right |
double | Bottom |
double | Top |
|
|
|
|
|
|
|
Definition at line 16 of file Area.cpp. 00019 : Bottom(bottom), Left(left), Right(right), Top(top) 00020 { 00021 AdjustCoordinates(); 00022 } |
|
|
|
Definition at line 14 of file Area.hpp. 00014 { } |
|
Definition at line 40 of file Area.cpp. 00040 { 00041 return ((Right - Left) * (Top - Bottom)); 00042 } |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 14 of file Area.hpp. 00014 { } |
|
|
|
|
|
Definition at line 152 of file Area.cpp. Referenced by JArea(), and SetAll().
00152 { 00153 double temp; 00154 if (Bottom > Top) { 00155 temp = Top; 00156 Top = Bottom; 00157 Bottom = temp; 00158 } 00159 00160 if (Left > Right) { 00161 temp = Left; 00162 Left = Right; 00163 Right = temp; 00164 } 00165 } |
|
|
|
|
|
|
|
Referenced by SetLowerRight(), and operator=().
|
|
|
|
|
|
|
|
Referenced by SetOrg(), and operator=().
|
|
|
|
|
|
|
|
Referenced by SetLowerRight(), and operator=().
|
|
|
|
Definition at line 76 of file Area.cpp. 00077 { 00078 Bottom = bottom; 00079 Left = left; 00080 Right = right; 00081 Top = top; 00082 00083 AdjustCoordinates(); 00084 } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by SetOrg(), and operator=().
|
|
|
|
Definition at line 44 of file Area.cpp. 00044 { 00045 return (Right - Left); 00046 } |
|
|
|
Definition at line 52 of file Area.cpp. 00052 { 00053 return (Right - Left) * Scale; 00054 } |
|
|
|
Definition at line 48 of file Area.cpp. 00048 { 00049 return (Top - Bottom); 00050 } |
|
|
|
Definition at line 56 of file Area.cpp. 00056 { 00057 return (Top - Bottom) * Scale; 00058 } |
|
|
|
Definition at line 36 of file Area.cpp. 00036 { 00037 return !Compare( a ); 00038 } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 90 of file Area.cpp. 00090 { 00091 return JVector2D( Right, Bottom ); 00092 } |
|
|
|
Definition at line 94 of file Area.cpp. 00094 { 00095 return JVector2D( Left, Top ); 00096 } |
|
|
|
Definition at line 98 of file Area.cpp. 00098 { 00099 return JVector2D( Right, Top ); 00100 } |
|
|
|
|
|
|
|
VERIFY THIS, SOUNDS WEIRD !
|