Navigation Cube/zh-cn: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 30: Line 30:
The main cube has 26 faces: 6 main faces, 12 rectangular edge faces ({{Version|0.20}}), and 8 corner faces. Clicking any of them will reorient the camera so that its direction is perpendicular to the selected face.
The main cube has 26 faces: 6 main faces, 12 rectangular edge faces ({{Version|0.20}}), and 8 corner faces. Clicking any of them will reorient the camera so that its direction is perpendicular to the selected face.


<span id="Directional_arrows"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== 指向箭头 ==
== 指向箭头 ==
Line 42: Line 43:
Clicking the round button in the top right corner of the Navigation Cube will rotate the [[3D_view|3D view]] 180 degrees around the vertical axis of the view.
Clicking the round button in the top right corner of the Navigation Cube will rotate the [[3D_view|3D view]] 180 degrees around the vertical axis of the view.


<span id="Mini-cube_menu"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== 微型立方菜单 ==
== 微型立方菜单 ==
Line 63: Line 65:
The Navigation Cube is controlled by several preferences: {{MenuCommand|Edit → Preferences... → Display → Navigation → Navigation cube}}. See [[Preferences_Editor#Navigation|Preferences Editor]].
The Navigation Cube is controlled by several preferences: {{MenuCommand|Edit → Preferences... → Display → Navigation → Navigation cube}}. See [[Preferences_Editor#Navigation|Preferences Editor]].


=== Advanced options ===
=== Advanced parameters ===


Some advanced Navigation Cube parameters cannot be changed in the [[Preferences_Editor#Navigation|Preferences Editor]]. These parameters can be set manually in the [[Std_DlgParameter|Parameter editor]] or via the [[Interface_Customization#CubeMenu|CubeMenu external workbench]]. Changes will become visible when a new 3D view is created (with [[Std_New|Std New]], [[Std_Open|Std Open]] or [[Std_ViewCreate|Std ViewCreate]]).
The [[Interface_Customization#CubeMenu|CubeMenu]] external workbench provides easier access to several more advanced customization options.

To manually set colors:

# Start the [[Image:Std_DlgParameter.svg|16px]] [[Std_DlgParameter|Parameter editor]].
# In the panel on the left browse to {{MenuCommand|BaseApp → Preferences → NaviCube}}.
# Right-click the panel on the right and select {{MenuCommand|New unsigned item}} from the context menu.
# Enter the name of one of these colors:
#* {{MenuCommand|BorderColor}}: the lines separating the cube faces, default is {{Value|4281479730}} (hex: {{Value|ff323232}}).
#* {{MenuCommand|ButtonColor}}: all elements around the cube, default is {{Value|2162354671}} (hex: {{Value|80e2e9ef}}).
#* {{MenuCommand|FrontColor}}: all cube faces, default is {{Value|3236096495}} (hex: {{Value|c0e2e9ef}}).
#* {{MenuCommand|HiliteColor}}: the cube or arrow face that is currently highlighted, default is {{Value|4289389311}} (hex: {{Value|ffaae2ff}}).
#* {{MenuCommand|TextColor}}: the text on the cube faces, default is {{Value|4278190080}} (hex: {{Value|ff000000}}).
# The color value must be entered as a 32-bit unsigned integer. Translated to the hexadecimal format this integer has the form {{Value|AARRGGBB}}. Where {{Value|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|Python console]], enter for example {{Incode|int("ff323232", 16)}}, or an online service such as [https://cryptii.com/pipes/integer-encoder this one].
# Optionally set more colors.
# Press the {{Button|Close}} button.

To manually set the border width:

# Start the [[Image:Std_DlgParameter.svg|16px]] [[Std_DlgParameter|Parameter editor]].
# In the panel on the left browse to {{MenuCommand|BaseApp → Preferences → NaviCube}}.
# Right-click the panel on the right and select {{MenuCommand|New float item}} from the context menu.
# Enter the name {{MenuCommand|BorderWidth}}, {{Value|default is 1.1}}.
# Enter the width.
# Press the {{Button|Close}} button.





Revision as of 15:58, 19 February 2023

Introduction

导航立方控制,或称导航立方是一种用于重新定位的图形用户界面。在默认情况下,它位于3D显示界面的右上角。如果您在标准的3D视图下查看,会发现它长相如下:

导航立方由以下几部分组成:

  • 指向箭头
  • 主导航立方
  • 微型立方菜单

All parts, except the axis indicators, can be clicked.

Usage

Main cube

The main cube has 26 faces: 6 main faces, 12 rectangular edge faces (introduced in version 0.20), and 8 corner faces. Clicking any of them will reorient the camera so that its direction is perpendicular to the selected face.

指向箭头

导航立方有6个指向箭头:4个三角箭头,位列上、下、左、右;以及2个弯曲箭头,分列上箭头的两侧。

Reverse view button

Clicking the round button in the top right corner of the Navigation Cube will rotate the 3D view 180 degrees around the vertical axis of the view.

微型立方菜单

在导航立方的右下方有一个小立方体。点击此立方体将弹出一个菜单,借此来改变视图类型(正交视图(orthographic),透视视图(perspective),等角视图(isometric))或执行“缩放至适当视图(zoom to fit)”。

Customization

Move the Navigation Cube

移动导航立方

通过在主导上按住鼠标左键并进行拖拽,即可将整个导航立方控制结构移动到另一个地方。撰写本文时(v0.18版),直到鼠标指针越过主导的边界时,此结构才会开始移动。

Preferences

The Navigation Cube is controlled by several preferences: Edit → Preferences... → Display → Navigation → Navigation cube. See Preferences Editor.

Advanced parameters

Some advanced Navigation Cube parameters cannot be changed in the Preferences Editor. These parameters can be set manually in the Parameter editor or via the CubeMenu external workbench. Changes will become visible when a new 3D view is created (with Std New, Std Open or Std ViewCreate).

To manually set colors:

  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:
    • BorderColor: the lines separating the cube faces, default is 4281479730 (hex: ff323232).
    • ButtonColor: all elements around the cube, default is 2162354671 (hex: 80e2e9ef).
    • FrontColor: all cube faces, default is 3236096495 (hex: c0e2e9ef).
    • HiliteColor: the cube or arrow face that is currently highlighted, default is 4289389311 (hex: ffaae2ff).
    • TextColor: the text on the cube faces, default is 4278190080 (hex: ff000000).
  5. The color value must be entered as a 32-bit unsigned integer. Translated to the hexadecimal format this integer has the form AARRGGBB. 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("ff323232", 16), or an online service such as this one.
  6. Optionally set more colors.
  7. Press the Close button.

To manually set the border width:

  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 float item from the context menu.
  4. Enter the name BorderWidth, default is 1.1.
  5. Enter the width.
  6. Press the Close button.