-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorials more #39
Merged
Merged
Tutorials more #39
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2f7c893
finish the stack tutorial
sedghi f062165
add voliume tutorial
sedghi 0bcb475
add images to tutorials
sedghi 71a145f
add manipulation tools docs
sedghi daef3c3
add segmentation tutorial
sedghi 0edc3be
finish examples page
sedghi 501936e
fix petCT crosshairs by adding initial camera sync
sedghi b7f3c0e
fix mobile
sedghi 00c77fc
fix api page footer margin
sedghi c56d5d5
update api doc
sedghi cde1541
add namespaces for enums and constants
sedghi 838128f
fix various exports and docs for core
sedghi 520cb8c
fix exports for tools
sedghi a3b072f
initial effort for changing colorLut to ColorLUT
sedghi 0e69403
update api
sedghi a4d70b1
fix the navbar highlight color
sedghi 3646d6b
edit overview
sedghi 8481226
edit scope
sedghi 89a9756
edit related libraries
sedghi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
|
||
```ts | ||
|
||
import { default as default_2 } from 'packages/core/dist/esm/enums/RequestType'; | ||
import type { mat4 } from 'gl-matrix'; | ||
import type { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData'; | ||
import type { vtkVolume } from '@kitware/vtk.js/Rendering/Core/Volume'; | ||
|
@@ -16,6 +15,14 @@ type ActorEntry = { | |
slabThickness?: number; | ||
}; | ||
|
||
// @public | ||
enum BlendModes { | ||
AVERAGE_INTENSITY_BLEND = BlendMode.AVERAGE_INTENSITY_BLEND, | ||
COMPOSITE = BlendMode.COMPOSITE, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of our enums are all caps, some are not |
||
MAXIMUM_INTENSITY_BLEND = BlendMode.MAXIMUM_INTENSITY_BLEND, | ||
MINIMUM_INTENSITY_BLEND = BlendMode.MINIMUM_INTENSITY_BLEND, | ||
} | ||
|
||
// @public | ||
type CameraModifiedEvent = CustomEvent_2<CameraModifiedEventDetail>; | ||
|
||
|
@@ -210,7 +217,7 @@ type CPUFallbackRenderingTools = { | |
) => unknown; | ||
}; | ||
colormapId?: string; | ||
colorLut?: CPUFallbackLookupTable; | ||
colorLUT?: CPUFallbackLookupTable; | ||
renderCanvasData?: { | ||
data: Uint8ClampedArray; | ||
}; | ||
|
@@ -332,6 +339,33 @@ type ElementEnabledEventDetail = { | |
renderingEngineId: string; | ||
}; | ||
|
||
// @public | ||
enum Events { | ||
CACHE_SIZE_EXCEEDED = 'CACHE_SIZE_EXCEEDED', | ||
CAMERA_MODIFIED = 'CORNERSTONE_CAMERA_MODIFIED', | ||
|
||
ELEMENT_DISABLED = 'CORNERSTONE_ELEMENT_DISABLED', | ||
ELEMENT_ENABLED = 'CORNERSTONE_ELEMENT_ENABLED', | ||
IMAGE_CACHE_IMAGE_ADDED = 'CORNERSTONE_IMAGE_CACHE_IMAGE_ADDED', | ||
IMAGE_CACHE_IMAGE_REMOVED = 'CORNERSTONE_IMAGE_CACHE_IMAGE_REMOVED', | ||
IMAGE_LOAD_ERROR = 'IMAGE_LOAD_ERROR', | ||
IMAGE_LOAD_FAILED = 'CORNERSTONE_IMAGE_LOAD_FAILED', | ||
IMAGE_LOAD_PROGRESS = 'CORNERSTONE_IMAGE_LOAD_PROGRESS', | ||
IMAGE_LOADED = 'CORNERSTONE_IMAGE_LOADED', | ||
IMAGE_RENDERED = 'CORNERSTONE_IMAGE_RENDERED', | ||
IMAGE_SPACING_CALIBRATED = 'CORNERSTONE_IMAGE_SPACING_CALIBRATED', | ||
IMAGE_VOLUME_MODIFIED = 'CORNERSTONE_IMAGE_VOLUME_MODIFIED', | ||
STACK_NEW_IMAGE = 'CORNERSTONE_STACK_NEW_IMAGE', | ||
VOI_MODIFIED = 'CORNERSTONE_VOI_MODIFIED', | ||
VOLUME_CACHE_VOLUME_ADDED = 'CORNERSTONE_VOLUME_CACHE_VOLUME_ADDED', | ||
VOLUME_CACHE_VOLUME_REMOVED = 'CORNERSTONE_VOLUME_CACHE_VOLUME_REMOVED', | ||
VOLUME_LOADED = 'CORNERSTONE_VOLUME_LOADED', | ||
VOLUME_LOADED_FAILED = 'CORNERSTONE_VOLUME_LOADED_FAILED', | ||
// IMAGE_CACHE_FULL = 'CORNERSTONE_IMAGE_CACHE_FULL', | ||
// PRE_RENDER = 'CORNERSTONE_PRE_RENDER', | ||
// ELEMENT_RESIZED = 'CORNERSTONE_ELEMENT_RESIZED', | ||
} | ||
|
||
declare namespace EventTypes { | ||
export { | ||
CameraModifiedEventDetail, | ||
|
@@ -655,6 +689,14 @@ type ImageVolumeModifiedEventDetail = { | |
FrameOfReferenceUID: string; | ||
}; | ||
|
||
// @public | ||
enum InterpolationType { | ||
// (undocumented) | ||
FAST_LINEAR, | ||
LINEAR, | ||
NEAREST, | ||
} | ||
|
||
// @public | ||
interface IRegisterImageLoader { | ||
// (undocumented) | ||
|
@@ -944,6 +986,13 @@ type PublicViewportInput = { | |
defaultOptions?: ViewportInputOptions; | ||
}; | ||
|
||
// @public | ||
enum RequestType { | ||
Interaction = 'interaction', | ||
Prefetch = 'prefetch', | ||
Thumbnail = 'thumbnail', | ||
} | ||
|
||
// @public (undocumented) | ||
type Scaling = { | ||
PET?: PTScaling; | ||
|
@@ -1014,7 +1063,7 @@ export class StreamingImageVolume extends ImageVolume { | |
}; | ||
}; | ||
priority: number; | ||
requestType: default_2; | ||
requestType: Enums.RequestType; | ||
additionalDetails: { | ||
volumeId: string; | ||
}; | ||
|
@@ -1040,6 +1089,13 @@ type ViewportInputOptions = { | |
suppressEvents?: boolean; | ||
}; | ||
|
||
// @public | ||
enum ViewportType { | ||
ORTHOGRAPHIC = 'orthographic', | ||
PERSPECTIVE = 'perspective', | ||
STACK = 'stack', | ||
} | ||
|
||
// @public (undocumented) | ||
type VOI = { | ||
windowWidth: number; | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the enums duplicated now?