Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

OParallelogram Class Reference

#include <OParallelogram.hpp>

Inheritance diagram for OParallelogram::

OGraphic List of all members.

Public Methods

OGraphicclone () const
OGraphiccreate () 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

Detailed Description

OParallelogram object


Constructor & Destructor Documentation

OParallelogram::OParallelogram  
 

Constructor

OParallelogram::OParallelogram OPoint   p1,
OPoint   p2,
OPoint   p3,
OPoint   p4
 

Constructor The parallelogram object must constructed like a bounding box: p1 p2 p4 p3

OParallelogram::OParallelogram OLine   l1,
OLine   l2
 

Constructor The parallelogram object must constructed like a bounding box: begin1 end1 end2 begin2

OParallelogram::~OParallelogram  
 

Destructor


Member Function Documentation

bool OParallelogram::check  
 

Check if parallelogram is a correct model test OLine::isConnected, OLine::isOposite, OLine::intersect

void OParallelogram::clear   [inline]
 

Clear the p1;p2;p3;p4 lines

OGraphic * OParallelogram::clone   const [inline, virtual]
 

Clone the line object

Reimplemented from OGraphic.

OGraphic * OParallelogram::create   const [inline, virtual]
 

Create a new line object

Reimplemented from OGraphic.

OPoint OParallelogram::getMiddle  
 

Get middle point

OLine OParallelogram::getPoint1   [inline]
 

OLine OParallelogram::getPoint2   [inline]
 

OLine OParallelogram::getPoint3   [inline]
 

OLine OParallelogram::getPoint4   [inline]
 

void OParallelogram::gomi istream &    is [virtual]
 

GOM input

Reimplemented from OGraphic.

void OParallelogram::gomo ostream &    os [virtual]
 

GOM output

Reimplemented from OGraphic.

bool OParallelogram::isValid   [inline]
 

Is valid p1, p2, p3, and p4 no null

void OParallelogram::setPoint1 OPoint   p1 [inline]
 

Set first point

void OParallelogram::setPoint2 OPoint   [inline]
 

void OParallelogram::setPoint3 OPoint   [inline]
 

void OParallelogram::setPoint4 OPoint   [inline]
 

void OParallelogram::setPoints OPoint   p1,
OPoint   p2,
OPoint   p3,
OPoint   p4
[inline]
 

Set the points

void OParallelogram::svgo ostream &    os [virtual]
 

SVG output

Reimplemented from OGraphic.

void OParallelogram::xmlo ostream &    os [virtual]
 

XML output

Reimplemented from OGraphic.


Member Data Documentation

OPoint OParallelogram::p1 [protected]
 

OPoint OParallelogram::p2 [protected]
 

OPoint OParallelogram::p3 [protected]
 

OPoint OParallelogram::p4 [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jul 30 19:21:03 2004 for GOMLib by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001