MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / usePointsNodeActions

Function usePointsNodeActions

src/nodes/actions/pointsActions.ts:19–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19export function usePointsNodeActions(): PointsNodeActions {
20 return useMemo(
21 () => ({
22 setVisible: (v) => usePointCloudStore.getState().setShowPointCloud(v),
23 setSplatsVisible: (v) => usePointCloudStore.getState().setShowSplats(v),
24 setOpacity: (o) => usePointCloudStore.getState().setPointOpacity(o),
25 setSize: (s) => usePointCloudStore.getState().setPointSize(s),
26 setColorMode: (m) => usePointCloudStore.getState().setColorMode(m),
27 setMinTrackLength: (l) => usePointCloudStore.getState().setMinTrackLength(l),
28 setMaxReprojectionError: (e) =>
29 usePointCloudStore.getState().setMaxReprojectionError(e ?? Infinity),
30 setThinning: (n) => usePointCloudStore.getState().setThinning(n),
31 setSelectedPointId: (id) => usePointCloudStore.getState().setSelectedPointId(id),
32 toggleVisible: () => usePointCloudStore.getState().togglePointCloud(),
33 toggleSplats: () => usePointCloudStore.getState().toggleSplats(),
34 }),
35 []
36 );
37}

Callers 4

TrackballControlsFunction · 0.90
nodes.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected