-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Proofreading: Add clear button for auxiliary skeletons/meshes…
… & provide merge/split via context menu on voxel (#6459) * add clear button to toolbar when proofreading tool is active to delete meshes and skeletons after proofreading * update changelog * make case of proofreading consistent * Apply suggestions from code review * Allow merge and min-cut when rightclicking on voxel (instead of node) (#6464) * implement splitting and merging in proofreading via context menu on non-node position * parallelize some async operations * also validate unmapped ids when doing node-less split; refactor; don't center active node when reloading skeleton * also expose min-cut in context menu when no node is clicked * also remove trees when cleaning up that were added due to reloads * clean up a bit * update changelog * keep currently active node despite of reloading the agglomerate skeleton after split/cut * improve wording in connectome tab * remove the split-only option from the context menu (when not rightclicking a node) * update changelog * Update frontend/javascripts/oxalis/model/sagas/proofread_saga.ts Co-authored-by: Tom Herold <[email protected]> * remove unnecessary log * fix data loading route when floating positions are used * only show proofreading tool if an agglomerate mapping is selected; don't show merge/min-cut context menu items if proofreading tool is not even shown * fix ts error * pretty Co-authored-by: Tom Herold <[email protected]> Co-authored-by: Tom Herold <[email protected]>
- Loading branch information
1 parent
55d5705
commit c944273
Showing
13 changed files
with
613 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 32 additions & 1 deletion
33
frontend/javascripts/oxalis/model/actions/proofread_actions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,42 @@ | ||
import { Vector3 } from "oxalis/constants"; | ||
|
||
export type ProofreadAtPositionAction = ReturnType<typeof proofreadAtPosition>; | ||
export type ClearProofreadingByProductsAction = ReturnType<typeof clearProofreadingByProducts>; | ||
export type ProofreadMergeAction = ReturnType<typeof proofreadMerge>; | ||
export type MinCutAgglomerateAction = ReturnType<typeof minCutAgglomerateAction>; | ||
export type MinCutAgglomerateWithPositionAction = ReturnType< | ||
typeof minCutAgglomerateWithPositionAction | ||
>; | ||
|
||
export type ProofreadAction = ProofreadAtPositionAction; | ||
export type ProofreadAction = ProofreadAtPositionAction | ClearProofreadingByProductsAction; | ||
|
||
export const proofreadAtPosition = (position: Vector3) => | ||
({ | ||
type: "PROOFREAD_AT_POSITION", | ||
position, | ||
} as const); | ||
|
||
export const clearProofreadingByProducts = () => | ||
({ | ||
type: "CLEAR_PROOFREADING_BY_PRODUCTS", | ||
} as const); | ||
|
||
export const proofreadMerge = (position: Vector3) => | ||
({ | ||
type: "PROOFREAD_MERGE", | ||
position, | ||
} as const); | ||
|
||
export const minCutAgglomerateAction = (sourceNodeId: number, targetNodeId: number) => | ||
({ | ||
type: "MIN_CUT_AGGLOMERATE", | ||
sourceNodeId, | ||
targetNodeId, | ||
} as const); | ||
|
||
export const minCutAgglomerateWithPositionAction = (sourceNodeId: number, position: Vector3) => | ||
({ | ||
type: "MIN_CUT_AGGLOMERATE_WITH_POSITION", | ||
sourceNodeId, | ||
position, | ||
} as const); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.