19.2.10. The Shape Items
QGIS oferă câteva instrumente pentru a desena forme simple sau complexe în cadrul compozițiilor.
Unlike other print layout items, you can not style the frame nor the background color of the shapes bounding frame (set to transparent by default).
The Shape item is a tool that helps to decorate your map with regular shapes like triangle, rectangle, ellipse… You can add a regular shape using the Add Shape tool which gives access to particular tools like Add Rectangle, Add Ellipse and Add Triangle. Once you have selected the appropriate tool, you can draw the item following items creation instructions. Like other layout items, a regular shape can be manipulated the same way as exposed in Interacting with layout items.
Holding down the Shift key while drawing the basic shape with the click and drag method helps you create a perfect square, circle or triangle.
The Main properties group shows and allows you to switch the type of the shape item (Ellipse, Rectangle or Triangle) inside the given frame.
For the rectangle shape, you can set in different units the value of the Corner radius to round of the corners.
While the Add Shape tool provides way to create simple and predefined geometric item, the Add Node Item tool helps you create a custom and more advanced geometric item. For polylines or polygons, you can draw as many lines or sides as you want and vertices of the items can be independently and directly manipulated using the Edit Nodes Item. The item itself can be manipulated as exposed in Interacting with layout items.
Pentru a adăuga o formă articulată:
Perform consecutive left clicks to add nodes of your item. If you hold down the Shift key while drawing a segment, it is constrained to follow an orientation multiple of 45°.
When you’re done, right-click to terminate the shape.
You can customize the appearance of the shape in the Item Properties panel.
For polyline node items, you can also parameterize the Line markers i.e. add:
start and/or end markers with options:
None: draws a simple polyline.
Arrow: adds a regular triangular arrow head that you can customize.
SVG marker: uses an
SVGfile as arrow head of the item.
customize the arrow head:
Arrow stroke color: sets the stroke color of the arrow head.
Arrow fill color: sets the fill color of the arrow head.
Arrow stroke width: sets the stroke width of the arrow head.
Arrow head width: sets the size of the arrow head.
SVG images are automatically rotated with the line. Stroke and fill colors of QGIS predefined SVG images can be changed using the corresponding options. Custom SVG may require some tags following this instruction.
The Add Arrow tool is a shortcut to create an arrow-enabled polyline by default and thus has the same properties and behavior as a polyline node item.
Actually, the arrow item can be used to add a simple arrow, for example, to
show the relation between two different print layout items. However, to create
a north arrow, the image item should be considered
first as it gives access to a set of north arrows in
.SVG format that
you can sync with a map item so that it rotates automatically with it.
Editarea formelor articulate se efectuează cu instrumentul specific de Editare a Formelor Articulate. Selectarea unui nod se efectuează printr-un simplu clic, cu ajutorul acestui instrument (nodul selectat fiind pus în evidență). Un nod selectat poate fi mutat fie prin glisarea lui, fie prin acționarea tastelor cu săgeți. Mai mult, se pot adăuga noduri la o formă existentă: un dublu-clic pe un segment va adăuga un nod în locul în care s-a efectuat clicul. În cele din urmă, nodul selectat poate fi eliminat prin apăsarea tastei Del.