Up to ScubaGuide

Back to ScubaReference

Scripting

Commands

Note that many commands take IDs, such as layerID, collectionID, viewID, toolID, frameID, etc. These IDs are generated when the objects they refer to are created. As input, they must refer to valid objects. If they don't you'll receive an error. All IDs are integers.

AddSegmentationToSegVolReport structure

AddSegVolReportIntensityVolume volID

BeginValueRangeFillInView viewID sourceVolID roiID destVolID

CaptureFrameToFile frameID fileName

ClearSegVolReport

ConvertWindowToViewRAS viewID windowX windowY

CopyViewLayersToAllViewsInFrame frameID viewID

DeleteCollectionROI collectionID roiID

DeleteDataCollection collectionID

DeleteLayer layerID

DoOneValueRangeFillInView viewID beginValueRange endValueRange fillValue

DontUseROIInSegVolReport

EndValueRangeFillInView viewID

ExportMarkersToControlPoints collectionID fileName

Flood2DMRIVolume layerID x y z toolID viewID type

Get2DMRILayerBrightness layerID

Get2DMRILayerColorLUT layerID

Get2DMRILayerContrast layerID

Get2DMRILayerColorMapMethod layerID

Get2DMRILayerDrawMIP layerID

Get2DMRILayerDrawZeroClear layerID

Get2DMRILayerEditableROI layerID

Get2DMRILayerHeatScaleMax layerID

Get2DMRILayerHeatScaleMid layerID

Get2DMRILayerHeatScaleMin layerID

Get2DMRILayerLevel layerID

Get2DMRILayerMaxValue layerID

Get2DMRILayerMaxVisibleValue layerID

Get2DMRILayerMinValue layerID

Get2DMRILayerMinVisibleValue layerID

Get2DMRILayerROIOpacity layerID

Get2DMRILayerSampleMethod layerID

Get2DMRILayerVolumeCollection layerID

Get2DMRILayerWindow layerID

Get2DMRIRASCoordsFromIndex layerID x y z

Get2DMRISLayerLineColor layerID

Get2DMRISLayerLineWidth layerID

Get2DMRISLayerSurfaceCollection layerID

Get2DMRISLayerVertexColor layerID

Get2DMRISNearestVertexIndex layerID x y z

Get2DMRISRASCoordsFromVertexIndex layerID vertexIndex

GetCollectionRASBounds collectionID

GetCollectionLabel collectionID

GetCollectionType collectionID

GetColorLUTEntryLabel lutID entry

GetColorLUTEntryRGB lutID entry

GetColorLUTFileName lutID

GetColorLUTIDList

GetColorLUTLabel lutID

GetColorLUTNumberOfEntries lutID

GetColumnOfViewInFrame frameID viewID

CycleCurrentViewInFrame frameID

GetDataCollectionIDList

GetFirstUnusedDrawLevelInView viewID

GetLayerIDList

GetLayerInViewAtLevel viewID level

GetLayerLabel layerID

GetLayerMainDataCollection layerID

GetLayerOpacity layerID

GetLayerReportInfo layerID

GetLayerType layerID

GetLevelReportInfoInView viewID level

GetLevelVisibilityInView viewID level

GetMainFrameID

GetNumberOfColsAtRowInFrame frameID row

GetNumberOfRowsInFrame frameID

GetNumberOfViewMarkers

GetRASCoordsFromVolumeSurfaceRAS collectionID x y z

GetROIIDList

GetROIIDListForCollection collectionID

GetRowOfViewInFrame frameID viewID

GetSelectedViewID frameID

GetSubjectDir

GetSubjectName

GetSurfaceCollectionFileName collectionID

GetSurfaceDataToSurfaceTransformVolume collectionID

GetSurfaceUseRealRAS collectionID

GetToolBrush3D toolID

GetToolBrushRadius toolID

GetToolBrushShape toolID

GetToolEdgePathEdgeBias toolID

GetToolEdgePathStraightBias toolID

GetToolEraseVoxelValue toolID

GetToolFlood3D toolID

GetToolFloodFuzziness toolID

GetToolFloodFuzzinessType toolID

GetToolFloodMaxDistance toolID

GetToolFloodSourceCollection toolID

GetToolFloodStopAtPaths toolID

GetToolFloodStopAtROIs toolID

GetToolIDForFrame frameID

GetToolMode toolID

GetToolNewVoxelValue toolID

GetToolOnlyBrushZero toolID

GetToolOnlyFloodZero toolID

GetToolTargetLayer toolID

GetTransformIDList

GetTransformLabel transformID

GetTransformRegistrationDest transformID

GetTransformRegistrationSource transformID

GetTransformValues transformID

GetUseVolumeDataToIndexTransform collectionID

GetViewFlipLeftRightYZ viewID

GetViewIDAtFrameLocation frameID windowX windowY

GetViewIDFromFrameColRow frameID col row

GetViewInPlane viewID

GetViewLockOnCursor viewID

GetViewLinkedStatus viewID

GetViewRASCenter viewID

GetViewRASCursor

GetViewThroughPlaneIncrement viewID throughPlane

GetViewTransform viewID

GetViewZoomLevel viewID

GetVolumeAutosaveOn collectionID

GetVolumeAverageValueInROI collectionID roiID

GetVolumeCollectionFileName collectionID

GetVolumeHistogramInView viewID volID roiID numBins

GetVolumeStandardDeviationInROI collectionID roiID

GetVolumeSurfaceRASCoordsFromRAS collectionID x y z

ImportMarkersFromControlPoints collectionID fileName

InvertTransform transformID

IsSurfaceUsingDataToSurfaceTransformFromVolume collectionID

IsTransformRegistration transformID

LoadVolume fileName createLayer frameIDToAdd

LoadVolumeFromFileName collectionID

LoadSurface fileName createLayer frameIDToAdd

LoadSurfaceFromFileName collectionID

LoadSurfacePatch collectionID fileName

LoadTransform fileName

LoadTransformFromLTAFile transformID LTAFileName

MakeDataCollection collectionType

Volume

A 3D volume for display in a 2DMRI layer.

Surface

A 3D surface for display in a 2DMRIS layer.

MakeLayer layerType

2DMRI

A layer for drawing a volume

2DMRIS

A layer for showing a surface intersected on a plane

MakeLayer layerType

2DMRI

A layer for drawing a volume

2DMRIS

A layer for showing a surface intersected on a plane

MakeNewColorLUT

MakeNewTransform

MakeSegVolIntensityReport fnReport

MakeSegVolReport fnReport

MakeVolumeUsingTemplate collectionID templateCollectionID

NewCollectionROI collectionID

NewVolume templateID createLayer frameIDToAdd

NewVolumeROIFromLabel collectionID fileName

PrintAllCommands

ReadPathFile fileName

RedrawFrame frameID

RemoveAllLayersFromView viewID

RemoveLayerFromViewAtLevel viewID level

SaveSceneScript fileName

SaveVolume collectionID

SaveVolumeWithFileName collectionID fileName

SelectCollectionROI collectionID roiID

Set2DMRILayerBrightness layerID brightness

Set2DMRILayerColorLUT layerID lutID

Set2DMRILayerColorMapMethod layerID method

Set2DMRILayerContrast layerID contrast

Set2DMRILayerDrawMIP layerID drawMIP

Set2DMRILayerDrawZeroClear layerID drawClear

Set2DMRILayerEditableROI layerID editable

Set2DMRILayerHeatScaleMax layerID value

Set2DMRILayerHeatScaleMid layerID value

Set2DMRILayerHeatScaleMin layerID value

Set2DMRILayerLevel layerID level

Set2DMRILayerMaxVisibleValue layerID value

Set2DMRILayerMinVisibleValue layerID value

Set2DMRILayerROIOpacity layerID opacity

Set2DMRILayerSampleMethod layerID method

Set2DMRILayerVolumeCollection layerID collectionID

Set2DMRISLayerLineColor layerID red green blue

Set2DMRISLayerLineWidth layerID width

Set2DMRISLayerSurfaceCollection layerID collectionID

Set2DMRISLayerVertexColor layerID red green blue

Set2DMRILayerWindow layerID window

SetCollectionLabel collectionID label

SetColorLUTFileName lutID fileName

SetColorLUTLabel lutID label

SetCursorFromEditDatFile

SetCursorFromSurfaceVertexIndex layerID vertexNumber

SetCursorFromVolumeIndexCoords collectionID x y z

SetDataTransform collectionID transformID

SetFrameViewConfiguration frameID configuration

SetLayerInViewAtLevel viewID layerID level

SetLayerLabel layerID label

SetLayerOpacity layerID opacity

SetLayerReportInfo layerID report

SetLevelReportInfoInView viewID level reportInfo

SetLevelVisibilityInView viewID level visibility

SetNumberOfViewMarkers numMarkers

SetROIForSegVolReport volID roiID

SetSegVolReportLUT lutID

SetSegVolReportSegmentation segID

SetSelectedViewID frameID viewID

SetSurfaceCollectionFileName collectionID fileName

SetSurfaceDataToSurfaceTransformFromVolume collectionID volumeID

SetSurfaceDataToSurfaceTransformToDefault collectionID

SetToolBrush3D toolID 3D

SetToolBrushRadius toolID radius

SetToolBrushShape toolID shape

SetToolEdgePathEdgeBias toolID bias

SetToolEdgePathStraightBias toolID bias

SetToolEraseVoxelValue toolID value

SetToolFlood3D toolID 3D

SetToolFloodFuzziness toolID fuzziness

SetToolFloodFuzzinessType toolID type

SetToolFloodMaxDistance toolID distance

SetToolFloodSourceCollection toolID collectionID

SetToolFloodStopAtPaths toolID stop

SetToolFloodStopAtROIs toolID stop

SetToolMode toolID mode

navigation

The navigation tool

plane

The plane tool

marker

The marker tool

voxelEditing

The voxel editing tool

voxelFilling

The voxel filling tool

roiEditing

The ROI editing tool

roiFilling

The ROI filling tool

straightPath

The straight path tool

edgePath

The edge path tool

SetToolNewVoxelValue toolID value

SetToolOnlyBrushZero toolID onlyZero

SetToolOnlyFloodZero toolID onlyZero

SetToolTargetLayer toolID layerID

SetTransformLabel transformID label

SetTransformValues transformID listOfValues

SetUseVolumeDataToIndexTransform collectionID use

SetViewFlipLeftRightYZ viewID flip

SetViewInPlane viewID inPlane

SetViewLinkedStatus viewID linked

SetViewLockOnCursor viewID lock

SetViewRASCenter viewID x y z

SetViewRASCursor x y z

SetViewStateToLayerBounds viewID layerID

SetViewThroughPlaneIncrement viewID throughPlane increment

SetViewTransform viewID transformID

SetViewZoomLevel viewID zoomLevel

SetVolumeAutosaveOn collectionID on

SetVolumeCollectionFileName collectionID fileName

TreatTransformAsNative transformID

TreatTransformAsRegistration transformID sourceVolumeID destVolumeID

UpdateFrame frameID

WriteCursorToEditDatFile

WritePathFile fileName

WriteVolumeROIsToSegmentation collectionID fileName

WriteVolumeROIToLabel collectionID roiID fileName

Index

Loading Data

NewVolume LoadVolume LoadSurface LoadTransform

Frames

GetMainFrameID UpdateFrame RedrawFrame SetFrameViewConfiguration GetViewIDFromFrameColRow GetSelectedViewID SetSelectedViewID GetNumberOfRowsInFrame GetNumberOfColsAtRowInFrame GetViewIDAtFrameLocation GetColumnOfViewInFrame GetRowOfViewInFrame CopyViewLayersToAllViewsInFrame GetToolIDForFrame CycleCurrentViewInFrame CaptureFrameToFile

Views

SaveSceneScript ConvertWindowToViewRAS

View State

SetViewInPlane GetViewInPlane SetViewZoomLevel GetViewZoomLevel SetViewRASCenter GetViewRASCenter SetViewStateToLayerBounds SetViewLinkedStatus GetViewLinkedStatus SetViewLockOnCursor GetViewLockOnCursor SetViewTransform GetViewTransform SetViewFlipLeftRightYZ GetViewFlipLeftRightYZ SetViewThroughPlaneIncrement GetViewThroughPlaneIncrement

Draw Levels

SetLayerInViewAtLevel GetLayerInViewAtLevel RemoveAllLayersFromView RemoveLayerFromViewAtLevel SetLevelVisibilityInView GetLevelVisibilityInView SetLevelReportInfoInView GetLevelReportInfoInView GetFirstUnusedDrawLevelInView

Cursor

SetViewRASCursor GetViewRASCursor SetCursorFromSurfaceVertexIndex SetCursorFromVolumeIndexCoords SetCursorFromEditDatFile WriteCursorToEditDatFile

Markers

SetNumberOfViewMarkers GetNumberOfViewMarkers ExportMarkersToControlPoints ImportMarkersFromControlPoints

Paths

WritePathFile ReadPathFile

Layers

GetLayerIDList MakeLayer DeleteLayer SetLayerLabel GetLayerLabel GetLayerType GetLayerOpacity SetLayerOpacity GetLayerReportInfo SetLayerReportInfo GetLayerMainDataCollection

2DMRI Layer

Set2DMRILayerVolumeCollection Get2DMRILayerVolumeCollection Set2DMRILayerColorMapMethod Get2DMRILayerColorMapMethod Set2DMRILayerSampleMethod Get2DMRILayerSampleMethod Set2DMRILayerBrightness Get2DMRILayerBrightness Set2DMRILayerContrast Get2DMRILayerContrast Set2DMRILayerMinLevel Get2DMRILayerMinLevel Set2DMRILayerMinWindow Get2DMRILayerMinWindow Set2DMRILayerColorLUT Get2DMRILayerColorLUT Set2DMRILayerDrawZeroClear Get2DMRILayerDrawZeroClear Set2DMRILayerDrawMIP Get2DMRILayerDrawMIP Set2DMRILayerMinVisibleValue Get2DMRILayerMinVisibleValue Set2DMRILayerMaxVisibleValue Get2DMRILayerMaxVisibleValue Get2DMRILayerMinValue Get2DMRILayerMaxValue Get2DMRILayerHeatScaleMin Set2DMRILayerHeatScaleMin Get2DMRILayerHeatScaleMid Set2DMRILayerHeatScaleMid Get2DMRILayerHeatScaleMax Set2DMRILayerHeatScaleMax Set2DMRILayerROIOpacity Get2DMRILayerROIOpacity Set2DMRILayerEditableROI Get2DMRILayerEditableROI Get2DMRIRASCoordsFromIndex Flood2DMRIVolume

2DMRIS Layer

Set2DMRISLayerSurfaceCollection Get2DMRISLayerSurfaceCollection Set2DMRISLayerLineColor Get2DMRISLayerLineColor Set2DMRISLayerVertexColor Get2DMRISLayerVertexColor Set2DMRISLayerLineWidth Get2DMRISLayerLineWidth Get2DMRISRASCoordsFromVertexIndex Get2DMRISNearestVertexIndex

ROIs

GetROIIDList GetROIIDListForCollection NewVolumeROIFromLabel DeleteCollectionROI NewCollectionROI SelectCollectionROI WriteVolumeROIsToSegmentation WriteVolumeROIToLabel GetVolumeAverageValueInROI GetVolumeStandardDeviationInROI

Color LUTs

GetColorLUTIDList MakeNewColorLUT SetColorLUTLabel GetColorLUTLabel SetColorLUTFileName GetColorLUTFileName GetColorLUTNumberOfEntries GetColorLUTEntryLabel GetColorLUTEntryRGB IsColorLUTEntryValid

Transforms

GetTransformIDList MakeNewTransform SetTransformLabel GetTransformLabel SetTransformValues GetTransformValues LoadTransformFromLTAFile InvertTransform TreatTransformAsRegistration TreatTransformAsNative IsTransformRegistration GetTransformRegistrationSource GetTransformRegistrationDest

Data Collections

GetDataCollectionIDList MakeDataCollection DeleteDataCollection GetCollectionRASBounds

Volumes

SetUseVolumeDataToIndexTransform GetUseVolumeDataToIndexTransform SetVolumeAutosaveOn GetVolumeAutosaveOn GetRASCoordsFromVolumeSurfaceRAS GetVolumeSurfaceRASCoordsFromRAS GetVolumeAverageValueInROI GetVolumeStandardDeviationInROI

Segmentation Volume Report

ClearSegVolReport SetSegVolReportSegmentation AddSegVolReportIntensityVolume SetROIForSegVolReport DontUseROIInSegVolReport SetSegVolReportLUT AddSegmentationToSegVolReport MakeSegVolReport MakeSegVolIntensityReport

Volume Histogram

GetVolumeHistogramInView BeginValueRangeFillInView DoOneValueRangeFillInView EndValueRangeFillInView

Surfaces

SetSurfaceCollectionFileName LoadSurfaceFromFileName GetSurfaceCollectionFileName SetSurfaceDataToSurfaceTransformFromVolume SetSurfaceDataToSurfaceTransformToDefault IsSurfaceUsingDataToSurfaceTransformFromVolume GetSurfaceDataToSurfaceTransformVolume LoadSurfacePatch GetSurfaceUseRealRAS

Tools

SetToolMode GetToolMode SetToolTargetLayer GetToolTargetLayer SetToolNewVoxelValue GetToolNewVoxelValue SetToolEraseVoxelValue GetToolEraseVoxelValue SetToolOnlyBrushZero GetToolOnlyBrushZero SetToolBrushRadius GetToolBrushRadius SetToolBrushShape GetToolBrushShape SetToolBrush3D GetToolBrush3D SetToolFloodStopAtPaths GetToolFloodStopAtPaths SetToolFloodStopAtROIs GetToolFloodStopAtROIs SetToolFloodFuzziness GetToolFloodFuzziness SetToolFloodMaxDistance GetToolFloodMaxDistance SetToolFlood3D GetToolFlood3D SetToolFloodSourceCollection SetToolFloodFuzzinessType GetToolFloodFuzzinessType GetToolFloodSourceCollection SetToolOnlyFloodZero GetToolOnlyFloodZero SetToolEdgePathStraightBias GetToolEdgePathStraightBias SetToolEdgePathEdgeBias GetToolEdgePathEdgeBias

Miscellaneous

GetSubjectName GetSubjectDir PrintAllCommands

ScubaGuide/ScubaReference/ScubaScripting (last edited 2008-04-29 11:45:10 by localhost)