Navigationswürfel

From FreeCAD Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of the page Navigation Cube and the translation is 52% complete.

Einleitung

Der Navigationswürfel stellt visuelle Informationen zur Kameraposition in der aktiven 3D-Ansicht zur Verfügung und kann zu ihrer Einstellung verwendet werden. Standardmäßig ist es sichtbar und befindet sich in der oberen rechten Ecke der Ansicht.

Der Navigationswürfel besteht aus mehreren Teilen:

Alle Elemente, außer den Achsindikatoren, können angeklickt werden.

Anwendung

Hauptwürfel

Der Hauptwürfel besitzt 26 Flächen: 6 Hauptflächen, 12 rechteckige Kantenflächen (eingeführt mit Version 0.20), und 8 Eckflächen. Ein Klick auf eine dieser Flächen ändert die Kameraausrichtung so, dass ihre Blickrichtung senkrecht zu der ausgewählten Fläche verläuft.

Richtungspfeile

Es gibt sechs Richtungspfeile: vier dreieckige Pfeilspitzen und zwei gebogene Pfeile. Klickt man auf einen der Dreieckigen Pfeile, wird die 3D-Ansicht um eine Linie senkrecht zur Pfeilrichtung gedreht. Klickt man auf einen gebogenen Pfeil, wird die 3D-Ansicht um die Normale der Ansicht gedreht.

Schaltfläche Ansicht umkehren

Klickt man auf die runde Schaltfläche in der rechten oberen Ecke des Navigationswürfels, wird die 3D-Ansicht um 180° um die vertikale Achse der Ansicht gedreht.

Miniwürfel-Menü

Ein Klick auf den kleinen Würfel in der rechten unteren Ecke des Navigationswürfels öffnet ein Menü mit folgenden Optionen:

  • Orthogonale Ansicht: schaltet auf die orthogonale Ansicht um.
  • Perspektivische Ansicht: schaltet auf die Perspektivansicht um.
  • Isometrisch: schaltet auf die isometrisch Ansicht um.
  • Einpassen: skaliert und schwenkt die Kamera so, dass alle sichtbaren Objekte die Ansicht ausfüllen.
  • Beweglicher Navigationswürfel: Wenn diese Checkbox (introduced in version 0.21) aktiviert ist, kann der komplette Navigationswürfel bewegt werden, indem der Hauptwürfel an beliebiger Stelle mit der linken Maustaste angeklickt und mit gedrückt gehaltener Taste gezogen wird. Dies ist dazu gedacht, den Würfel temporär aus dem Weg zu ziehen. Die erweiterten Parameter OffsetX und OffsetY können verwendet werden, um den Würfel dauerhaft zu versetzen, siehe unten.

Anpassung

Einstellungen

Der Navigationswürfel wird durch einige Einstellungen gesteuert: Bearbeiten → Einstellungen... → Anzeige → Navigation → Navigationswürfel eingeführt mit Version 0.19. Siehe Voreinstellungseditor.

Erweiterte Parameter

Einige erweiterte Parameter des Navigationswürfels können nicht im Voreinstellungseditor angepasst werden. Diese Parameter können von Hand im Parametereditor angepasst werden.

Farben von Hand festlegen:

  1. Start the Parameter editor.
  2. In the panel on the left browse to BaseApp → Preferences → NaviCube.
  3. Right-click the panel on the right and select New unsigned item from the context menu.
  4. Enter the name of one of these colors:
    • BaseColor: the base color of all elements, the default is 3806916544 (hex: e2e8efc0). This color can be also set in the Preferences Editor. introduced in version 0.21
    • EmphaseColor: the color of the texts and lines, the default depends on the BaseColor. It is either black: 255 (hex: 000000ff), or white: 4294967295 (hex: ffffffff). introduced in version 0.21
    • HiliteColor: the color used to highlight the faces and buttons, the default is 2867003391 (hex: aae2ffff).
  5. The color value must be entered as a 32-bit unsigned integer. Translated to the hexadecimal format this integer has the form RRGGBBAA. Where AA stands for the alpha channel (a measure for the transparency), and the other three digit pairs stand for red, green and blue. To convert a hexadecimal value to an unsigned integer you can use the Python console, enter for example int("323232ff", 16).
  6. Optionally set more parameters.
  7. Press the Close button.

The table below lists the other advanced Navigation Cube parameters that can be set in a similar manner. Use the information from the Type column to create a correct new item in step 3.

Name Description Type Default
BorderWidth The width of the edges of the cube and the borders around the buttons in pixels. Float 1.1
ChamferSize The size of the edges and corners as a factor of the cube size. Values should be in the 0.05 - 0.18 range.

introduced in version 0.21

Float 0.12
FontStretch The font width as a percentage of the default width. Use 0 or 100 for the default font width. Integer 0
FontWeight The font weight. Higher values make the font more bold. The effect may depend on the font. Use 0 for the default font weight. Integer 0
FontZoom The size of the labels:
  • FontZoom = 1.0: Make the labels as big as possible individually.
  • 0.0 < FontZoom < 1.0: Idem but limit the maximum font size.
  • FontZoom = 0.0: Idem but use the same font size for all.
  • FontZoom < 0.0: Use the same font size for all, but scaled down.

introduced in version 0.21

Float 0.3
OffsetX The offset of the cube in the X direction relative to its corner position in pixels. Integer 0
OffsetY The offset of the cube in the Y direction relative to its corner position in pixels. Integer 0
ShowCS Toggles the display of the coordinate system (the X, Y and Z axis indicators). Boolean true
TextBottom The text on the bottom face of the cube. The default value should be translated. String BOTTOM
TextFront The text on the front face of the cube. Idem. String FRONT
TextLeft The text on the left face of the cube. Idem. String LEFT
TextRear The text on the rear face of the cube. Idem. String REAR
TextRight The text on the right face of the cube. Idem. String RIGHT
TextTop The text on the top face of the cube. Idem String TOP