Class: ReportSceneController
Defined in: report/ReportSceneController.ts:364
Owns the coordinated semantics that make a portable report scene different from an ordinary viewer: one displayed map and one explicit report view target. It never writes the pane-era selected layer or surface fields.
Constructors
Constructor
new ReportSceneController(
viewer,
manifest,
options?
): ReportSceneController;Defined in: report/ReportSceneController.ts:387
Parameters
viewer
manifest
options?
ReportSceneControllerOptions = {}
Returns
ReportSceneController
Properties
options
readonly options: ReportSceneControllerOptions;Defined in: report/ReportSceneController.ts:365
viewer
readonly viewer: NeuroSurfaceViewer;Defined in: report/ReportSceneController.ts:388
manifest
readonly manifest: SurfViewSceneManifest;Defined in: report/ReportSceneController.ts:389
Methods
getState()
getState(): ReportSceneControllerState;Defined in: report/ReportSceneController.ts:461
Returns
getAvailableLayerIds()
getAvailableLayerIds(): readonly string[];Defined in: report/ReportSceneController.ts:491
Returns
readonly string[]
getViewTarget()
getViewTarget():
| AnatomicalViewTargetRef
| null;Defined in: report/ReportSceneController.ts:500
Returns
| AnatomicalViewTargetRef | null
setDisplayedLayer()
setDisplayedLayer(layerId): ControlCommandResult;Defined in: report/ReportSceneController.ts:519
Parameters
layerId
string
Returns
updateReference()
updateReference(layerId, update): ControlCommandResult;Defined in: report/ReportSceneController.ts:558
Update the reference across all report geometries as one command.
Parameters
layerId
string
update
visible?
boolean
opacity?
number
Returns
setAnatomicalView()
setAnatomicalView(
view,
target,
options?
): ControlCommandResult;Defined in: report/ReportSceneController.ts:583
Parameters
view
target
options?
fit?
boolean
hemisphereGap?
number
Returns
setFitInsets()
setFitInsets(insets): void;Defined in: report/ReportSceneController.ts:655
Replace the overlay insets and refit the current framing.
Parameters
insets
Returns
void
getBrainView()
getBrainView(): ReportBrainView | null;Defined in: report/ReportSceneController.ts:661
Current whole-brain view, or null after free rotation or a split-layout view.
Returns
ReportBrainView | null
getLayout()
getLayout(): ReportLayout;Defined in: report/ReportSceneController.ts:665
Returns
setBrainView()
setBrainView(view, options?): ControlCommandResult;Defined in: report/ReportSceneController.ts:670
Pose the report pair as one brain and frame it (anatomical layout only).
Parameters
view
options?
fit?
boolean
hemisphereGap?
number
Returns
fitView()
fitView(): ControlCommandResult;Defined in: report/ReportSceneController.ts:757
Returns
resetView()
resetView(): ControlCommandResult;Defined in: report/ReportSceneController.ts:779
Returns
resizeFit()
resizeFit(): void;Defined in: report/ReportSceneController.ts:813
Returns
void
isDisposed()
isDisposed(): boolean;Defined in: report/ReportSceneController.ts:820
Returns
boolean
dispose()
dispose(): void;Defined in: report/ReportSceneController.ts:824
Returns
void