5.2. Vetores

The Paths tool allows to create complex selections called Bézier Curves, a bit like the Free Selection tool but with all the adaptability of vectorial curves. You can edit your curve, you can paint with your curve, or even save, import, and export the curve. You can also use paths to create geometrical figures. Paths have their own dialog box: Dialog.

5.2.1. Ativando a ferramenta

There are different possibilities to activate the tool:

  • From the main menu: ToolsPaths.

  • By clicking the tool icon in the Toolbox.

  • By pressing the B keyboard shortcut.

5.2.2. Teclas Modificadoras (por padrão)

[Nota] Nota

Mensagens de ajuda aparecerão na parte inferior da janela de imagem com informações sobre todas essas teclas.

Shift

Esta tecla tem diversas funções dependendo do seu contexto. Consulte as opções para obter mais detalhes.

Ctrl ; Alt

Existem três modos disponíveis para se trabalhar com a ferramenta de vetores: Criação,Edição e Mover. A tecla Ctrl alterna entre Criação e Edição. Já as teclas Alt (ou Ctrl+Alt) alternam o modo entre Criação e Mover.

5.2.3. Opções

Figura 14.134. Opções da ferramenta de Vetor

Opções da ferramenta de “Vetor”

Normally, tool options are displayed in a window attached under the Toolbox as soon as you activate a tool. If they are not, you can access them from the main menu through WindowsDockable WindowsTool Options which opens the option window of the selected tool.

Modo de Criação

Por padrão, essa ferramenta já estará no modo Criação. Você pode desenhar o vetor ao dar cliques sucessivos. Você pode mover os pontos de controle clicando sobre os mesmos e arrastando. Entre os pontos de controle existem segmentos.

Os números indicam os passos para desenhar uma linha reta de dois segmentos.

Segmentos curvos são facilmente construídos ao arrastar um segmento ou clicar e arrastar em novo nó. As setas azuis mostram a curva. Duas pequenas alças quadradas ficarão disponíveis para que você possa alterar a curva.

[Dica] Dica

To quickly close the curve, press Ctrl key and click on the initial control point. In previous versions, clicking inside a closed path converted it into Selection. Now, you can use the Create selection from path button or the Path to Selection button in the Path Dialog.

[Dica] Dica

Quando você tem duas alças, elas vão se mover simetricamente por padrão. Solte o botão do mouse para movê-las individualmente. A tecla Shift faz com que as âncoras funcionem simetricamente novamente.

Several functions are available in Design mode:

Inserting a new node: When you press Ctrl and hover the mouse pointer over the existing path, the mouse pointer changes to the '+' sign. Clicking will create a new path node in the hovered point of the path.

Moving one or several nodes: On a node, the mouse pointer becomes a 4-arrows cross. You can click and drag it. You can select several nodes by Shift and click and move them by click and drag. Pressing Ctrl+Alt allows to move all the path, as a selection.

Modifying handles: You have to Edit a node first. A handle appears. Drag it to bend the curve. Pressing Shift toggles to symmetric handles.

Modify segment: When the mouse pointer moves over a segment, it turns to a 4-arrows cross. Click and drag it to bend the segment. As soon as you move it, handles appear at both ends of the segment. Pressing the Shift key toggles to symmetric handles.

Adding a new subpath: When you press Shift and hover the mouse pointer outside the existing path, the mouse pointer starts displaying a square. Clicking will start a subpath that isn't connected to other curves, but is considered a part of the path.

Modo de Edição

Edit performs functions which are not available in Design mode. With this mode, you can work only on the existing path. When the mouse pointer is not on the path, the pointer changes to a small crossed circle and you can not do any path editing.

Criar um segmento entre dois nós: Clique em um dos nós na ponta do vetor para ativá-lo. O cursor mostrará um símbolo de união. Clique em outro nó para ligar ambos os nós. Isso é muito útil quando você precisa ligar componentes que não estão fechados.

Remove a segment from a path: While pressing Shift+Ctrl key combination, point to a segment. The mouse pointer turns to a "-" sign. Click to delete the segment.

Add a node to a path: point to a segment. Pointer turns to "+"". Click where you want to place the new control point.

Remove a node: While pressing Shift+Ctrl key combination, point to a node. Pointer turns to "-"". Click to delete the node.

Adicionar uma alça à um nó: Coloque o cursor do mouse sobre um nó. O cursor mostrará um sinal de uma pequena mão. Arraste o nó para que apareça uma âncora. Pressione a tecla Shift para mudar para âncoras simétricas.

Remove a handle from a node: While pressing Shift+Ctrl key combination, point to a handle. The pointer doesn't turn to the expected "-"" and remains a hand. Click to delete the handle.

[Cuidado] Cuidado

There is no warning before removing a node, segment or a handle.

Modo mover

O modo Mover permite mover um ou todos os componentes de um vetor. Simplesmente clique no vetor e arraste-o.

If you have several components, only the selected one is moved. If you click and drag outside the path, all components are moved. Pressing the Shift key toggles between moving all components and selected components only.

Poligonal

Com essa opção ativada, os segmentos serão apenas retos. As alças não estarão disponíveis e os segmentos não vão se dobrar quando você for movê-los.

Seleção a partir do vetor

This button allows creation of a selection that is based on the path in its present state. This selection is marked with the usual "marching ants". Note that the path is still present: the current tool is still the path tool and you can modify this path without modifying the selection that has become independent. If you change tools, the path becomes invisible, but it persists in the Paths dialog and you can re-activate it.

Se o vetor não estiver fechado, o GIMP irá fechá-lo com uma linha reta ligando as duas extremidades.

As the help pop-up tells, pressing Shift when clicking on the button will add the new selection to an already existing one. Pressing Ctrl will subtract the selection from the pre-existing selection, and the Shift+Ctrl key combination will intersect the two selections.

Fill path

This lets you fill an enclosed path with a solid color or pattern.

Contornar vetor

See Seção 3.21, “Stroke Paths” and Seção 5, “ Vetores.

See the Path concept.