#include <OParallelogram.hpp>
Inheritance diagram for OParallelogram::
Public Methods | |
OGraphic * | clone () const |
OGraphic * | create () const |
OParallelogram () | |
OParallelogram (OPoint &, OPoint &, OPoint &, OPoint &) | |
OParallelogram (OLine &, OLine &) | |
~OParallelogram () | |
bool | check () |
OPoint | getMiddle () |
void | gomo (ostream &) |
void | gomi (istream &) |
void | xmlo (ostream &) |
void | svgo (ostream &) |
bool | isValid () |
void | clear () |
void | setPoints (OPoint &, OPoint &, OPoint &, OPoint &) |
void | setPoint1 (OPoint &) |
void | setPoint2 (OPoint &) |
void | setPoint3 (OPoint &) |
void | setPoint4 (OPoint &) |
OLine | getPoint1 () |
OLine | getPoint2 () |
OLine | getPoint3 () |
OLine | getPoint4 () |
Protected Attributes | |
OPoint | p1 |
OPoint | p2 |
OPoint | p3 |
OPoint | p4 |
|
Constructor |
|
Constructor The parallelogram object must constructed like a bounding box: p1 p2 p4 p3 |
|
Constructor The parallelogram object must constructed like a bounding box: begin1 end1 end2 begin2 |
|
Destructor |
|
Check if parallelogram is a correct model test OLine::isConnected, OLine::isOposite, OLine::intersect |
|
Clear the p1;p2;p3;p4 lines |
|
Clone the line object Reimplemented from OGraphic. |
|
Create a new line object Reimplemented from OGraphic. |
|
Get middle point |
|
|
|
|
|
|
|
|
|
GOM input Reimplemented from OGraphic. |
|
GOM output Reimplemented from OGraphic. |
|
Is valid p1, p2, p3, and p4 no null |
|
Set first point |
|
|
|
|
|
|
|
Set the points |
|
SVG output Reimplemented from OGraphic. |
|
XML output Reimplemented from OGraphic. |
|
|
|
|
|
|
|
|