#include <tracergn.h>
Inheritance diagram for TraceBoundaryPoint:
Private Member Functions | |
void | translate (const TraceBoundaryPoint &that) |
TraceBoundaryPoint (double x1, double y1) | |
TraceBoundaryPoint () | |
TraceBoundaryPoint (const TraceBoundaryPoint &that) | |
TraceBoundaryPoint & | operator= (const TraceBoundaryPoint &that) |
void | operator= (const DocCoord &Other) |
BOOL | operator== (const TraceBoundaryPoint &input) const |
BOOL | operator!= (const TraceBoundaryPoint &input) const |
void | RotateDirection (const TraceBoundaryPoint &rotation) |
urmm.. rotation of trace boundary points to conform to a particular direction | |
void | Init () |
Declares a preference that allows you to clear memory in delete(). | |
void | Init (INT32 x1, INT32 y1) |
double | SquaredLength () |
double | Length () |
double | Dot (const TraceBoundaryPoint &Other) |
TraceBoundaryPoint | SetLength (double NewLen) |
Scales the TraceBoundaryPoint vector to by the specified length. | |
TraceBoundaryPoint | operator- () |
Unary Minus for a TraceBoundaryPoint (Vector). | |
TraceBoundaryPoint | operator * (double Factor) |
TraceBoundaryPoint Multiply function. This will multiply the vector by a constant Factor. The result is returned. | |
TraceBoundaryPoint | operator/ (double Factor) |
TraceBoundaryPoint Multiply function. This will divide the vector by a constant Factor. The result is returned. | |
Private Attributes | |
double | x |
double | y |
Friends | |
class | TraceRegion |
TraceBoundaryPoint | operator+ (const TraceBoundaryPoint &Point1, const TraceBoundaryPoint &Point2) |
Adds two TraceBoundaryPoint vectors together. This function is a Friend of the TraceBoundaryPoint class. | |
TraceBoundaryPoint | operator- (const TraceBoundaryPoint &Point1, const TraceBoundaryPoint &Point2) |
Subtracts the two TraceBoundaryPoint vectors. This function is a Friend of the TraceBoundaryPoint class. |
Definition at line 126 of file tracergn.h.
|
Definition at line 132 of file tracergn.h.
|
|
Definition at line 133 of file tracergn.h.
|
|
Definition at line 134 of file tracergn.h.
|
|
Definition at line 147 of file tracergn.h.
|
|
Definition at line 144 of file tracergn.h.
|
|
Declares a preference that allows you to clear memory in delete().
Reimplemented from SimpleCCObject. Definition at line 143 of file tracergn.h.
|
|
Definition at line 146 of file tracergn.h.
|
|
TraceBoundaryPoint Multiply function. This will multiply the vector by a constant Factor. The result is returned.
Definition at line 207 of file tracergn.h. 00208 { 00209 TraceBoundaryPoint Result; 00210 00211 // Scale the vector by the factor 00212 Result.x = (x*Factor); 00213 Result.y = (y*Factor); 00214 00215 // and return it 00216 return Result; 00217 }
|
|
Definition at line 139 of file tracergn.h.
|
|
Unary Minus for a TraceBoundaryPoint (Vector).
Definition at line 180 of file tracergn.h. 00181 { 00182 TraceBoundaryPoint Result; 00183 00184 // negate the vector 00185 Result.x = -x; 00186 Result.y = -y; 00187 00188 // and return it 00189 return Result; 00190 }
|
|
TraceBoundaryPoint Multiply function. This will divide the vector by a constant Factor. The result is returned.
Definition at line 233 of file tracergn.h. 00234 { 00235 TraceBoundaryPoint Result; 00236 00237 // Scale the vector by the factor 00238 Result.x = (x/Factor); 00239 Result.y = (y/Factor); 00240 00241 // and return it 00242 return Result; 00243 }
|
|
Definition at line 137 of file tracergn.h.
|
|
Definition at line 135 of file tracergn.h.
|
|
Definition at line 138 of file tracergn.h.
|
|
urmm.. rotation of trace boundary points to conform to a particular direction
Definition at line 444 of file tracergn.cpp. 00445 { 00446 00447 00448 TraceBoundaryPoint temp; 00449 temp = *this; 00450 // 00451 // Parallelogram is (r.x, r.y) & (-r.y, r.x) 00452 // 00453 // ( r.x -r.y ) ( t.x ) 00454 // ( r.y r.x ) ( t.y ) 00455 00456 x = (temp.x * ((INT32)(rotation.x)>>8)) - (temp.y * ((INT32)(rotation.y)>>8)); 00457 y = (temp.x * ((INT32)(rotation.y)>>8)) + (temp.y * ((INT32)(rotation.x)>>8)); 00458 }
|
|
Scales the TraceBoundaryPoint vector to by the specified length.
Definition at line 473 of file tracergn.cpp. 00474 { 00475 TraceBoundaryPoint Result(x, y); 00476 00477 double Len = Length(); 00478 if (Len != 0.0) 00479 { 00480 Result.x *= (NewLen / Len); 00481 Result.y *= (NewLen / Len); 00482 } 00483 00484 return Result; 00485 }
|
|
Definition at line 145 of file tracergn.h.
|
|
Definition at line 300 of file tracergn.h.
|
|
Adds two TraceBoundaryPoint vectors together. This function is a Friend of the TraceBoundaryPoint class.
Definition at line 260 of file tracergn.h. 00261 { 00262 TraceBoundaryPoint Result; 00263 00264 // Add the two vector together 00265 Result.x = Point1.x + Point2.x; 00266 Result.y = Point1.y + Point2.y; 00267 00268 // return the result 00269 return Result; 00270 }
|
|
Subtracts the two TraceBoundaryPoint vectors. This function is a Friend of the TraceBoundaryPoint class.
Definition at line 288 of file tracergn.h. 00289 { 00290 TraceBoundaryPoint Result; 00291 00292 // Subtract the two vector from each other 00293 Result.x = Point1.x - Point2.x; 00294 Result.y = Point1.y - Point2.y; 00295 00296 // return the result 00297 return Result; 00298 }
|
|
Definition at line 128 of file tracergn.h. |
|
Definition at line 162 of file tracergn.h. |
|
Definition at line 163 of file tracergn.h. |