Skip to content

Commit 361ca81

Browse files
Image mapper class and example rendering. (#110)
* WIP * WIP * Make new fork of View2D and gut it so that the transition to imageMapper is as simple as possible. * Functional hanging of one image for now. * Basic display. * Move segmentations to another layer so that we can interact with the source data and just use it as an overlay. * Radiologics/imagemapper * Working seg rendering. * clean up 4up Co-authored-by: Kate Alpert <[email protected]>
1 parent d025262 commit 361ca81

File tree

9 files changed

+918
-13
lines changed

9 files changed

+918
-13
lines changed

.vscode/settings.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@
2626
],
2727
"prettier.disableLanguages": [],
2828
"prettier.endOfLine": "lf",
29-
"workbench.colorCustomizations": {}
29+
"workbench.colorCustomizations": {},
30+
"editor.codeActionsOnSave": {
31+
"source.fixAll.eslint": true
32+
}
3033
}

examples/App.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import VTKMPRPaintingExample from './VTKMPRPaintingExample.js';
77
import VTKCornerstonePaintingSyncExample from './VTKCornerstonePaintingSyncExample.js';
88
import VTKLoadImageDataExample from './VTKLoadImageDataExample.js';
99
import VTKCrosshairsExample from './VTKCrosshairsExample.js';
10+
import VTK4UpExample from './VTK4UpExample.js';
1011
import VTKMPRRotateExample from './VTKMPRRotateExample.js';
1112
import VTKVolumeRenderingExample from './VTKVolumeRenderingExample.js';
1213

@@ -51,8 +52,7 @@ function Index() {
5152
{
5253
title: 'Volume Rendering',
5354
url: '/volume-rendering',
54-
text:
55-
'Demonstrates how to perform volume rendering for a CT volume.',
55+
text: 'Demonstrates how to perform volume rendering for a CT volume.',
5656
},
5757
{
5858
title: 'Image Segmentation via Paint Widget',
@@ -72,6 +72,11 @@ function Index() {
7272
text:
7373
'Demonstrates how to set up the Crosshairs interactor style and SVG Widget',
7474
},
75+
{
76+
title: 'MPR 4UP Example',
77+
url: '/4up',
78+
text: 'Demonstrates a 4UP view',
79+
},
7580
{
7681
title: 'MPR Rotate Example',
7782
url: '/rotate',
@@ -85,7 +90,7 @@ function Index() {
8590
},
8691
];
8792

88-
const exampleComponents = examples.map(e => {
93+
const exampleComponents = examples.map((e) => {
8994
return <ExampleEntry key={e.title} {...e} />;
9095
});
9196

@@ -143,8 +148,10 @@ function AppRouter() {
143148
const synced = () =>
144149
Example({ children: <VTKCornerstonePaintingSyncExample /> });
145150
const crosshairs = () => Example({ children: <VTKCrosshairsExample /> });
151+
const fourUp = () => Example({ children: <VTK4UpExample /> });
146152
const rotateMPR = () => Example({ children: <VTKMPRRotateExample /> });
147-
const volumeRendering = () => Example({ children: <VTKVolumeRenderingExample /> });
153+
const volumeRendering = () =>
154+
Example({ children: <VTKVolumeRenderingExample /> });
148155

149156
return (
150157
<Router>
@@ -155,6 +162,7 @@ function AppRouter() {
155162
<Route exact path="/painting" render={painting} />
156163
<Route exact path="/cornerstone-sync-painting" render={synced} />
157164
<Route exact path="/crosshairs" render={crosshairs} />
165+
<Route exact path="/4up" render={fourUp} />
158166
<Route exact path="/rotate" render={rotateMPR} />
159167
<Route exact path="/volume-rendering" render={volumeRendering} />
160168
<Route exact path="/cornerstone-load-image-data" render={loadImage} />

0 commit comments

Comments
 (0)