Open Artwork System Interchange Standard: Difference between revisions

Content deleted Content added
Tgrebinski (talk | contribs)
Tgrebinski (talk | contribs)
No edit summary
Line 26:
 
Each line of the OASIS representation below contains (from the left) a record number and a record type followed by a set of values that define that record type. For instance, the first RECTANGLE record below defines the following type of rectangle shape, its size and its absolute ___location:<br />
 
 
* Layer
Line 33 ⟶ 34:
* Lower-left x-coordinate
* Lower-left y-coordinate
 
 
Absent in this RECTANGLE record is an option to describe the locations of repeated instances of the rectangle. Also, this record type allows the description of a square by defining the value for the width only. To enable these descriptions, one must set what is referred to as the bit pattern for the RECTANGLE record. For a RECTANGLE record, the bit pattern (either a 1(enabled) or a 0(disabled)) is:<br />
 
 
SWHXYRDL (Square,Width,Height,X-coordinate,Y-coordinate,Repetition,Datatype,Layer-number).<br />
 
 
For this RECTANGLE record, the bit pattern is set to 0WHXY0DL (Not a square,Width,Height,X-coordinate,Y-coordinate,Not repetitive,Datatype,Layer-number). The first and second RECTANGLE records in cell "Cell_Placed_Shapes_2" (CELL refNum=1)" define repeated instances of a rectangle. The first RECTANGLE record (0WHXYRDL) uses a type 10 repetition (rep=rep10). The second RECTANGLE record (0WHXYR0L) uses a type 11 repetition (rep=Rep11). There are a total of twelve repetition types (Rep0-Rep11). In the second RECTANGLE record bit pattern, the datatype(D) was set to '0' because the same datatype used in the first RECTANGLE record applies to the second RECTANGLE record. Other OASIS-supported geometric shapes having the record types POLYGON, TRAPEZOID, CTRAPEZOID, CIRCLE and PATH are defined by different bit patterns.<br />