description of the Arc entity properties
The Arc entity is a leaf of the graphics entities hierarchy. This entity defines the parameters for ellipses and part of ellipses and the filled ones.
This field contains the handle of the parent. The parent of the arc entity should be of the type
This property contains a vector with the
childrenof the handle. However,
archandles currently do not have any
This property is a positive real specifying the line width in pixels. The displayed width is actually determined by rounding the supplied width to the nearest integer. The only exception is vectorial export where the whole
thicknessvalue is considered.
line_styleproperty value should be an integer in [1 8]. 1 stands for solid, the other value stands for a selection of dashes (see getlinestyle).
This property allows to display or not the line representing the arc. The value must be
fill_modeproperty value is
"on", the arc is filled with the
This field contains the default
foregroundproperty value used to draw the outside of the arc. It should be a color index (relative to the current colormap).
This field contains the color used to fill the arc. It should be a color index (relative to the current colormap).
This property is to return the coordinates of the upper-left point, the width and the height of the inclosing rectangle as well as the boundary angles of the sector. It is the matrix in user coordinates
a2are the sector boundary angles in degree.
Warning: in Scilab versions up to 4.1.2
a2were given in degree/64.
This field contains the
visibleproperty value for the entity . It should be
"on"the arc is drawn, If
"off"the arc is not displayed on the screen.
This field controls the kind of discretization used to render the arc. Its value must be either
"nurbs"is selected then the arc is rendered using nurbs curves and surfaces. This results in the display of a perfect ellipse part whatever the view point is. If
"lines"is selected then the arc is approximated with a constant number of lines. This reduce drawing time but some sharp edges may appear upon zooming. The use of
"lines"value is discouraged and should only be used if a loss in framerate is noticed when using
This field contains the
clip_stateproperty value for the arc. Clip_state value should be :
"off"this means that the arc is not clipped
"clipgrf"this means that the arc is clipped outside the Axes box.
"on"this means that the arc is clipped outside the arc given by property clip_box.
This field is to determinate the
clip_boxproperty. By Default its value should be an empty matrix if clip_state is "off". Other cases the vector
[x,y,w,h](upper-left point width height) defines the portions of the arc to display, however
clip_stateproperty value will be changed.
This field can be use to store any scilab variable in the arc data structure, and to retrieve it.
a=get("current_axes");//get the handle of the newly created axes a.data_bounds=[-2,-2;2,2]; xarc(-1.5,1.5,3,3,0,360*64) arc=get("hdl"); //get handle on current entity (here the arc entity) arc.fill_mode="on"; arc.foreground=5; arc.data(:,[3 6])=[2 270*64]; xfarc(-.5,1,.4,.6,0,360*64); arc.visible="off";
- set — set properties of some graphic objects or uimenus or uicontrol interactive components
- get — Gets the handle of a graphical or User Interface object, or the property's value of objects.
- delete — delete a graphic entity and its children.
- xarc — draw a part of an ellipse
- xarcs — draw parts of a set of ellipses
- xfarc — Fill a part of an ellipse
- xfarcs — Fill parts of a set of ellipses
- graphics_entities — description of the graphics entities data structures
|5.4.0||line_style value 0 is obsolete, use 1 instead (both are equivalent for SOLID). Using value 0 will produce an error in Scilab 5.4.1.|
|Report an issue|
|<< geometric_shapes||geometric_shapes||rectangle properties >>|