2.3. Diálogo de vetores

Por favor, veja Seção 5, “ Vetores se você não souber o que é um vetor.

Figura 15.12. O diálogo de Vetores

O diálogo de “Vetores”

O diálogo de Vetores é usado para gerenciar vetores, permitindo que você crie novos vetores, remova-os, salve-os, converta-os para seleções, transforme seleções em vetores e assim por diante.

2.3.1. Ativando o diálogo

O diálogo de Buffers é um diálogo de encaixe;veja a seção Seção 2.3, “Caixas de diálogo e de encaixe” para mais informações sobre como gerenciá-lo.

Você pode acessa-lo:

  • From the main menu, as WindowsDockable DialogsPaths.

  • from the Tab menu in any dockable dialog by clicking on and selecting Add TabPaths.

In the Windows menu, there is a list of detached windows which exists only if at least one dialog remains open. In this case, you can raise the Paths dialog from the main menu: WindowsPaths.

2.3.2. Usando o diálogo de vetores

Each path belongs to one image: paths are components of images just like layers. The Paths dialog shows you a list of all paths belonging to the currently active image: switching images causes the dialog to show a different list of paths. In multi-window mode, you can show the name of the active image at the top of the dock by choosing Show Image Selection from the Tab menu.

If you are familiar with the Layers dialog, you have a head start, because the Paths dialog is in several ways similar.

At the top, there are two Lock icons:

Lock Path

A path icon tells us whether editing the current path is locked (disabled) or not. Clicking the icon toggles between enabled and disabled.

[Nota] Nota

Until GIMP 2.10.32 this was called Lock Path Strokes. That name was considered ambiguous, because the term strokes is also used for stroking lines along a path, which this option does not change.

Lock Path Position

A cross with arrows icon tells us whether the current path position is locked (disabled) or not. When the path position is locked, the path can't be moved. Clicking the icon toggles between enabled and disabled.

The Paths dialog itself shows a list of all paths that exist in the image, with four items for each path:

Visibilidade do vetor

Um íconde de olho aberto se o vetor for visível, ou um espaço em branco se não for. Visível, no caso, significa que o vetor é exibido na tela de pintura na forma de uma linha. Isso não colore pixels na imagem, nem será visível se a imagem for exportada para qualquer tipo de arquivo que não for um XCF: o contorno do vetor é exibido somente dentro do GIMP, como se fosse uma guia, ou o tracejado de uma seleção. Clicar no símbolo de olho liga e desliga a visibilidade de um vetor.

Vincular vetores

Um símbolo de corrente é mostrado a direita do espaço para o símbolo de olho, se o vetor estiver vinculado para transformações. Se não, essa área fica em branco. Vinculado para transformação significa que ele faz parte do conjunto de itens (vetores, camadas, etc...) que será afetado em conjunto por qualquer aplicação de uma ferramenta de transformação (Redimensionar, rotacionar, etc...) ou de movimento. Clicar no espaço reservado para a corrente vincula ou desvincula o vetor respectivo aos outros itens marcados com a corrente.

Pré-visualização da imagem

Um pequeno ícone exibindo o traçado de um vetor. Se você clicar nesse ícone e arrastá-lo para uma imagem, isso criará uma cópia desse vetor naquela imagem.

Nome do vetor

O nome do vetor, que deve ser único na imagem. Clicar duas vezes no nome permite que você o edite (pressione enter após editar). Se o nome que você criou já existe, um número será adicionado ( por exemplo #1), para garantir que o nome continue único.

Se a lista não for vazia, sempre haverá um vetor que será o vetor ativo. Ele será o alvo de qualquer operação feita através do menu do diálogo ou os botões na parte de baixo. O vetor ativo é exibido em destaque na lista. Clicar em qualquer outro vetor, vai fazer dele o novo vetor ativo.

Clicar com o botão da direita na lista faz aparecer o Menu de vetores. Você também pode acessar o menu de vetores a partir do menu de Guias do diálogo.

2.3.3. Botões

Todos os botões na parte de baixo do diálogo de vetores tem uma correspondência com operações no menu de vetores, mas alguns deles tem opções extras que são ativadas quando se segura teclas modificadoras pressionadas ao clicar no botão.

Novo vetor

See New Path. Holding down Shift makes a new (empty) path with the last used values, without opening the New Path dialog.

Subir vetor

See Raise Path. Holding down Shift moves the path to the top of the list.

Abaixar vetor

See Lower Path. Holding down Shift moves the path to the bottom of the list.

Duplicate Paths

See Duplicate Paths.

Paths to Selection

Converts paths into a selection; see Paths to Selection for a full explanation. You can use modifier keys to set the way the new selection interacts with the existing selection:

Modificadores Ação
Nenhuma Substitui a seleção existente
Shift Adiciona à seleção
Ctrl Subtrai da seleção atual
Shift+Ctrl Faz intersecção com a seleção existente.
Seleção para vetor

Holding down Shift brings up the Advanced Options dialog, which probably is only useful to GIMP developers.

Paint along the paths

See Stroke Paths. Holding down Shift strokes the path based on the last used values without opening the Stroke Paths dialog.

Remover vetor

Delete Path deletes the currently selected path.

2.3.4. O menu de contexto de Vetores

Figura 15.13. O menu de contexto de Vetores

O menu de contexto de “Vetores”

O menu de vetores pode ser acessado clicando-se com o botão direito no diálogo de Vetores, ou escolhendo-se a entrada de cima (Menu de vetores) do menu de guias do diálogo de vetores. Esse menu dá acesso a maioria das operações que envolve vetores.

Edit Path

Edit Path is an alternative way to activate the Paths tool, used for creating and manipulating paths. It can also be activated from the Toolbox, or by using the keyboard shortcut B.

Editar atributos de vetor

A opção Editar atributos de vetor faz aparecer um pequeno diálogo que permite que você altere o nome de um vetor. Também é possível fazer isso com um clique-duplo direto sobre o nome do vetor na lista do diálogo de Vetores.

Color Tag

Color Tag brings up a sub menu, similar to the one in the Layers Dialog, that allows you to select a color tag for the selected path.

Novo vetor

Novo vetor cria um novo vetor, adiciona-o a lista do diálogo de vetores e torna o mesmo o vetor ativo da imagem. A opção faz aparecer um diálogo que permite que você dê um nome ao novo vetor. O novo vetor é criado sem nenhum ponto de controle, de forma que você deve usar a ferramenta de Vetores para criar alguns pontos nele antes que você possa usar o vetor para qualquer outra coisa.

Subir vetor

Subir vetor move o vetor uma posição para cima na lista do diálogo de Vetores. Essa posição na lista, ao contrário do que acontece na lista de camadas, não tem nenhum significado funcional: é apenas uma conveniência para lhe ajudar a manter as coisas organizadas, em imagens com vários vetores.

Abaixar vetor

Abaixar vetor move o vetor uma posição para baixo na lista. Também apenas como uma forma de manter os vetores organizados.

Duplicar vetor

Duplicate Path creates a copy of the active path, assigns it a unique name, adds it to the list in the Paths dialog, and makes it the active path for the image. The copy will be visible only if the original path was visible.

Remover vetor

Remover vetor remove o vetor selecionado.

Combinar vetores visíveis

A opção Combinar vetores visíveis torna todos os vetores que estão visíveis na imagem (isto é, todos os que tem o ícone de olho aberto), e os transforma em componentes de um único vetor. Isso pode ser conveniente se você deseja contornar a todos com as mesmas opções, etc.

Paths to Selection; Add Paths to Selection; Subtract Paths from Selection; Intersect Paths with Selection

These commands all convert the active paths into a selection, and then combine it with the existing selection in the specified ways. (Paths to Selection discards the existing selection and replaces it with one formed from the path.) If necessary, any unclosed components of the path are closed by connecting the last anchor point to the first anchor point with a straight line. The marching ants for the resulting selection should closely follow the path, but don't expect the correspondence to be perfect.

Seleção para vetor

Esta operação pode ser acessada de várias formas diferentes:

  • From the main menu, as SelectTo Path

  • Do menu do diálogo de Vetores, como Seleção para vetor.

  • From the Selection to Path button at the bottom of the Paths dialog.

Seleção para vetor cria um novo vetor a partir da seleção existente na imagem. Na maioria dos casos, o vetor resultante irá acompanhar de perto as formigas marchantes da seleção, mas a correspondência em geral é imperfeita.

Converting a two-dimensional selection mask into a one-dimensional path involves some rather tricky algorithms: you can alter the way it is done using the Advanced Options, which are accessed by holding down the Shift key while pressing the Selection to Path button at the bottom of the Paths dialog. This brings up the Advanced Options dialog, which allows you to set 20 different options and variables, all with cryptic names. The Advanced Options are really intended for developers only, and help with them goes beyond the scope of this documentation. Generally speaking, Selection to Path will do what you expect it to, and you don't need to worry about how it is done (unless you want to).

Fill Paths

Esta operação pode ser acessada de várias formas diferentes:

  • From the main menu, as EditFill Paths…

  • From the Paths dialog menu, as Fill Paths….

  • From the Fill Path button in the Tool Options for the Paths tool.

Fill Path fills all areas delimited by the path with the current foreground color or currently selected pattern. See the section about Fill Path for more information.

Stroke Paths…

Esta operação pode ser acessada de várias formas diferentes:

  • From the main menu, as EditStroke Paths…

  • From the Paths dialog menu, as Stroke Paths….

  • From the Paint along the path button at the bottom of the Paths dialog.

  • From the Stroke Path button in the Tool Options for the Paths tool.

Stroke Path renders the active path on the active layer of the image, permitting a wide variety of line styles and stroking options. See the sections about Stroke Path and Stroking for more information.

Copy Paths

Copy Paths copies the active path to the Paths Clipboard, enabling you to paste it into a different image.

[Dica] Dica

Você também pode copiar e colar um arquivo arrastando o seu ícone da lista no diálogo de Vetor até uma outra janela de imagem.

[Nota] Nota

When you copy a path to an image, it is not visible. You have to make it visible in the Paths dialog.

Colar vetor

Paste Path creates a new path from the contents of the Path Clipboard, adds it to the list in the Paths dialog, and makes it the active path for the image. If no path has previously been copied into the clipboard, the menu entry will be disabled.

Export Paths

Export Paths… allows you to save a path to a file: it pops up a file save dialog that allows you to specify the file name and location. You can later add this path to any GIMP image using the Import Path command. The format used for saving paths is SVG: this means that vector-graphics programs such as Sodipodi or Inkscape will also be able to import the paths you save. See the Paths section for more information on SVG files and how they relate to GIMP paths.

Importar vetor

Import Path… creates a new path from an SVG file: it pops up a file chooser dialog that allows you to navigate to the file. See the Paths section for information on SVG files and how they relate to GIMP paths.