home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Global Amiga Experience
/
globalamigaexperience.iso
/
graphic
/
cad
/
xcad3000
/
xcdoc
/
drawelp
< prev
next >
Wrap
Text File
|
1995-07-10
|
4KB
|
103 lines
5.5.1 DRAW ELLIPSE
The DRAW ELLIPSE command is used to draw a full or partial ellipse.
COMMAND FORMAT
#DRAW ELLIPSE modifiers :Loc x1 x2 ... xn
Generally each location entered defines the centre at which to draw the
ellipse. Some of the ellipse parameter values can be entered implicitly via
one or more extra locations. For these cases the command format differs
slightly:
#DRAW ELLIPSE modifiers :Loc x1 [x2 x3 x4] :Loc ...
Up to 3 extra locations may have to be entered in addition to the ellipse
centre location. When all of the definition locations for one ellipse have
been entered, a new ellipse is entered by terminating IDENTS with a colon.
MODIFIERS
LAYER Requires a layer number. This will override the current
active layer.
DEPTH Requires a depth number. This will override the current
active depth.
MAJORDIAM This modifier can be followed by a value specifying the
ellipse major diameter, or the value may be omitted. ( See
fig. 5.38 ). If the value is omitted, then an extra location
must be entered to define the ellipse major diameter. The
diameter is derived as twice the horizontal distance between
the extra location and the ellipse centre. ( See fig. 5.39 ).
The ellipse major diameter must always be larger than the
ellipse minor diameter.
MINORDIAM This modifier can be followed by a value specifying the
ellipse minor diameter, or the value may be omitted. If
the value is omitted, then an extra location must be
entered to define the ellipse minor diameter. The diameter
is derived as twice the vertical distance between the extra
location and the ellipse centre.
The ellipse minor diameter must always be smaller than the
ellipse major diameter.
ROTATE This modifier is used to specify the inclination angle of
the ellipse. Like the MAJORDIAM and MINORDIAM modifiers, this
modifier can also be used without a value. If a value is
entered, this is the inclination angle in degrees, default
inclination is at zero degrees. If the value is omitted,
then an extra location must be entered to define the ellipse
inclination angle. The inclination angle is obtained as the
angle between the extra location and the ellipse centre. (
See fig. 5.40 ).
Note: When more than one of the above modifiers are used without a value,
the order of additional locations always follows the order:
Major diameter
Minor diameter
Inclination angle
For example:
#DRAW ELLIPSE MAJORDIAM MINORDIAM 2 ROTATE :Loc x1 x2 x3
will create an ellipse centered at location 'x1'. The ellipse will
have a major diameter that is twice the horizontal distance
between 'x1' and 'x2' and a minor diameter of 2. The inclination
angle will be the angle between the locations 'x1' and 'x3'.
STARTANG Requires the ellipse start angle in degrees. The default
start and end angle are 0 and 360 degrees respectively. This
will generate a full ellipse. The angle is relative to the
ellipse inclination angle. ( See fig. 5.41 ).
ENDANG Requires the ellipse end angle in degrees. The angle is
relative to the ellipse inclination angle.
HARDFONT Indicates that a hardware line-style will be entered.
.STYLE One of the predefined styles, a value between 0 and 15.
.THICKNESS Line thickness, a value between 1 and 5.
SOFTFONT Indicates a software line-style will be entered. For a full
description of the SOFTFONT options, see the documentation
for the command DEFINE SOFTFONT.
ATTRIBUTE Used to enter one or more attributes associated with this
entity. For a full description of the ATTRIBUTE option, see
the documentation for the command ADD ATTRIBUTE.