oaRect Class Reference

Inheritance diagram for oaRect:

oaShape oaPinFig oaConnFig oaFig oaBlockObject oaDesignObject oaObject


Public Methods

void setBBox (const oaBox &bBox)
oaPolygonconvertToPolygon ()

Static Public Methods

oaRect * create (oaBlock *block, oaLayerNum layerNum, oaPurposeNum purposeNum, const oaBox &bBox)

Detailed Description

The oaRect class implements a rectangle shape.


Member Function Documentation

oaPolygon * oaRect::convertToPolygon  
 

This function converts this rectangle into a polygon. The new polygon is returned as the same pointer as this rectangle.

oaRect * oaRect::create oaBlock *    block,
oaLayerNum    layerNum,
oaPurposeNum    purposeNum,
const oaBox &    bBox
[static]
 

This function creates a rectangle with the specified attributes. The specified bBox is checked to verify it does not have zero area and it is not inverted.

Parameters:
block The block in which to create the rectangle
layerNum The number of the layer on which to create the rectangle
purposeNum The number of the layer purpose to use to create the rectangle
bBox The bounding box that sets this rectangle
Exceptions:
oacRectBBoxInvalid 

void oaRect::setBBox const oaBox &    bBox
 

This function sets the bounding box of this rectangle to the specified value. The new bBox is checked to verify it does not have zero area and is not inverted.

Parameters:
bBox The oaBox that is set to this oaRect object
Exceptions:
oacRectBBoxInvalid 


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

Return to top of page