Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | import type { Types } from '@cornerstonejs/core';
import { Annotation } from './AnnotationTypes';
/**
* Polyline winding direction
*
* It is defined as -1 and 1 to make it easier to change its direction multiplying
* by -1 whenever polyline.reverse() is called instead of using IF/ELSE
*/
export enum ContourWindingDirection {
CounterClockwise = -1,
Unknown = 0,
Clockwise = 1,
}
export type ContourAnnotationData = {
data: {
contour: {
polyline: Types.Point3[];
closed: boolean;
windingDirection?: ContourWindingDirection;
};
};
onInterpolationComplete?: () => void;
};
export type ContourAnnotation = Annotation & ContourAnnotationData;
|