Skip to content

Commit

Permalink
rm duplicate keys and improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adivardi committed Apr 22, 2024
1 parent 64e29a4 commit 70a5580
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ All rotations are counterclockwise (i.e. a z-rotation of 90°/π is from the pos
| `Z`, `X` | Rotates the Bounding Box around z-Axis |
| `C`, `V` | Rotates the Bounding Box around y-Axis |
| `B`, `N` | Rotates the Bounding Box around x-Axis |
| `I`, `K`, `,` | Increase the Bounding Box length/width/height |
| `O`, `L`, `.` | Decrease the Bounding Box length/width/height |
| `I`/ `O` | Increase/Decrease the Bounding Box length |
| `K`/ `L` | Increase/Decrease the Bounding Box width |
| `,`/ `.` | Increase/Decrease the Bounding Box height |
| Scrolling with the Cursor above a Bounding Box Side ("Side Pulling") | Changes the Dimension of the Bounding Box |
| `R`/`Left`, `F`/`Right` | Previous/Next sample |
| `T`/`Up`, `G`/`Down` | Previous/Next bbox |
Expand Down
21 changes: 15 additions & 6 deletions docs/shortcuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,25 @@ There are a number of shortcuts supported for frequently used actions.
| Shortcut | Description |
| :------------------------------------------------------------------: | ---------------------------------------------------- |
| *Navigation* | |
| Left Mouse Button | Rotates the Point Cloud |
| Right Mouse Button | Translates the Point Cloud |
| Left Mouse Button | Rotates the camera around Point Cloud centroid |
| Right Mouse Button | Translates the camera |
| Mouse Wheel | Zooms into the Point Cloud |
| *Correction* | |
| `W`, `A`, `S`, `D` <br> `Ctrl` + Right Mouse Button | Translates the Bounding Box back, left, front, right |
| `W`, `A`, `S`, `D` | Translates the Bounding Box back, left, front, right |
| `Ctrl` + Right Mouse Button | Translates the Bounding Box in all dimensions |
| `Q`, `E` | Lifts the Bounding Box up, down |
| `X`, `Y` | Rotates the Bounding Box around z-Axis |
| `Z`, `X` | Rotates the Bounding Box around z-Axis |
| `C`, `V` | Rotates the Bounding Box around y-Axis |
| `B`, `N` | Rotates the Bounding Box around x-Axis |
| `I`/ `O` | Increase/Decrease the Bounding Box length |
| `K`/ `L` | Increase/Decrease the Bounding Box width |
| `,`/ `.` | Increase/Decrease the Bounding Box height |
| Scrolling with the Cursor above a Bounding Box Side ("Side Pulling") | Changes the Dimension of the Bounding Box |
| `C` & `V`, `B` & `N` | Rotates the Bounding Box around y-Axis, x-Axis |
| `R`/`Left`, `F`/`Right` | Previous/Next sample |
| `T`/`Up`, `G`/`Down` | Previous/Next bbox |
| `Y`, `H` | Change current bbox class to previous/next in list |
| `1`-`9` | Select any of first 9 bboxes with number keys |
| *General* | |
| `Del` | Deletes Current Bounding Box |
| `R` | Resets Perspective |
| `P`/`Home` | Resets Perspective |
| `Esc` | Cancels Selected Points |
4 changes: 2 additions & 2 deletions labelCloud/control/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ def key_press_event(self, a0: QtGui.QKeyEvent) -> None:
elif a0.key() in [Keys.Key_G, Keys.Key_Down]:
# select previous bbox
self.select_relative_bbox(1)
elif a0.key() in [Keys.Key_Y, Keys.Key_Comma]:
elif a0.key() in Keys.Key_Y:
# change bbox class to previous available class
self.select_relative_class(-1)
elif a0.key() in [Keys.Key_H, Keys.Key_Period]:
elif a0.key() in Keys.Key_H:
# change bbox class to next available class
self.select_relative_class(1)
elif a0.key() in list(range(49, 58)):
Expand Down

0 comments on commit 70a5580

Please sign in to comment.