* feat: initial RT support * make the segmentation service work with representation data * feat: make segmentation service work with representations * fix rtss vis * fix: rt hydration * fix the rendering of rt names * fix imports * refactor: Modify status and click handling for hydration of RTStructures Modify status and click handling for hydration of RTStructures by renaming `onPillClick` to `onStatusClick` in `OHIFCornerstoneRTViewport.tsx` and `_getStatusComponent.tsx` files. Also, update initial segmentation configurations in `PanelSegmentation.tsx` and simplify configuration changes and values for segmentation service in `SegmentationService.ts`. Finally, remove console debug in `CornerstoneViewportService.ts`. * wip for highlighting contours * refactor rt displayset code * review code update * update cornerstone dependencies * refactor: Update license year, version number, and minor code cleanup This commit updates the license year in several files, updates the version number in package.json, and contains minor code cleanup in two files. * add bulkdataURI retrieve for RT * fix package version * apply review comments * apply review comments * apply review comments * feat(panels): refactor and streamline segmentation configuration and inputs Rewrote state hooks and streamlined the configuration input for `PanelSegmentation` to be more verbose and reusable. Included several new input types, including the `InputRange` component which now shows a fixed floating value based on the step provided. The `SegmentationConfig` component now works with dynamic values controlled by `initialConfig`. These changes should improve function usability and make the code more maintainable going forward. * fix various bugs * fix contour delete by upgrade cs3d version * feat(viewport, inputNumber, segmentationConfig, orthanc): Implement minimum and maximum values for input number components, and useBulkDataURI for Orthanc configuration. Compare measurement view planes with absolute viewport view planes in Cornerstone viewport. * update yarn lock
62 lines
1.9 KiB
TypeScript
62 lines
1.9 KiB
TypeScript
import { id } from './id';
|
|
import React from 'react';
|
|
import { Types } from '@ohif/core';
|
|
import getSopClassHandlerModule from './getSopClassHandlerModule';
|
|
|
|
const Component = React.lazy(() => {
|
|
return import(
|
|
/* webpackPrefetch: true */ './viewports/OHIFCornerstoneRTViewport'
|
|
);
|
|
});
|
|
|
|
const OHIFCornerstoneRTViewport = props => {
|
|
return (
|
|
<React.Suspense fallback={<div>Loading...</div>}>
|
|
<Component {...props} />
|
|
</React.Suspense>
|
|
);
|
|
};
|
|
|
|
/**
|
|
* You can remove any of the following modules if you don't need them.
|
|
*/
|
|
const extension: Types.Extensions.Extension = {
|
|
/**
|
|
* Only required property. Should be a unique value across all extensions.
|
|
* You ID can be anything you want, but it should be unique.
|
|
*/
|
|
id,
|
|
|
|
/**
|
|
* PanelModule should provide a list of panels that will be available in OHIF
|
|
* for Modes to consume and render. Each panel is defined by a {name,
|
|
* iconName, iconLabel, label, component} object. Example of a panel module
|
|
* is the StudyBrowserPanel that is provided by the default extension in OHIF.
|
|
*/
|
|
getViewportModule({
|
|
servicesManager,
|
|
extensionManager,
|
|
}: Types.Extensions.ExtensionParams) {
|
|
const ExtendedOHIFCornerstoneRTViewport = props => {
|
|
return (
|
|
<OHIFCornerstoneRTViewport
|
|
servicesManager={servicesManager}
|
|
extensionManager={extensionManager}
|
|
{...props}
|
|
/>
|
|
);
|
|
};
|
|
|
|
return [{ name: 'dicom-rt', component: ExtendedOHIFCornerstoneRTViewport }];
|
|
},
|
|
/**
|
|
* SopClassHandlerModule should provide a list of sop class handlers that will be
|
|
* available in OHIF for Modes to consume and use to create displaySets from Series.
|
|
* Each sop class handler is defined by a { name, sopClassUids, getDisplaySetsFromSeries}.
|
|
* Examples include the default sop class handler provided by the default extension
|
|
*/
|
|
getSopClassHandlerModule,
|
|
};
|
|
|
|
export default extension;
|