oaLine Class Reference

Inheritance diagram for oaLine:

oaShape oaPinFig oaConnFig oaFig oaBlockObject oaDesignObject oaObject


Public Methods

oaUInt4 getNumPoints () const
void getPoints (oaPointArray &points) const
void setPoints (const oaPointArray &points)

Static Public Methods

oaLine * create (oaBlock *block, oaLayerNum layerNum, oaPurposeNum purposeNum, const oaPointArray &points)

Detailed Description

The oaLine class is a subclass of oaShape that implements a line shape. The oaLine class contains a pointArray that represents a line in the design.


Member Function Documentation

oaLine * oaLine::create oaBlock *    block,
oaLayerNum    layerNum,
oaPurposeNum    purposeNum,
const oaPointArray &    points
[static]
 

This function creates a line with the specified attributes. The specified pointArray is checked to verify that there are at least two points.

Parameters:
block The block in which this line is located
layerNum The number of the layer on which this line is located
purposeNum The number of the purpose on which this line is located
points The pointArray used to construct this line
Exceptions:
oacLineTooFewPoints 

oaUInt4 oaLine::getNumPoints   const
 

This function returns the number of nonidentical points in this line.

void oaLine::getPoints oaPointArray &    points const
 

This function fills out points with the points of this line.

void oaLine::setPoints const oaPointArray &    points
 

This function sets the points of this line to the specified pointArray. The new pointArray is checked to verify there are at least two points.

Exceptions:
oacLineTooFewPoints 


The documentation for this class was generated from the following files:

Return to top of page