Points (POIs, Dmax, Loc, etc)

Current POI

Coordinates

PoiList.Current.XCoord;
PoiList.Current.YCoord;
PoiList.Current.ZCoord;

Turn on display

PoiList .Current .Display2d = "On";

Set Diameter

PoiList .Current .Diameter = "2";

Turn on Label

PoiList .Current .Display2d = "Label";

Set View to Current POI

ViewWindowList .Current .SetSliceToCurrentPoi = "Set Slice To Current POI";

Set View to Current POI - 3 view example

//Set 3 Window View
ViewWindowList .#"*" .InactiveIfCtSim = "1";
ViewWindowList .CtSimOrthoTop .Inactive = "0";
ViewWindowList .CtSimOrthoLowerLeft .Inactive = "0";
ViewWindowList .CtSimOrthoLowerRight .Inactive = "0";
IF .CtSimLayout .Is .#"!Orthogonal" .THEN .ViewWindowList .CtSimOrthoTop .MakeCurrent = "Orth
oLayoutIcon";
CtSimLayout = "Orthogonal";
ViewWindowList .#"*" .CineOnOff = "0";

//Turn on POI display
PoiList .Current .Display2d = "On";

//Set all windows to CT setup point (first point in plan, hopefully CT point)
//Start with top window
ViewWindowList .CtSimOrthoTop .MakeCurrent = "";
ViewWindowList .Current .Orientation .MakeTransverse = "Transverse";
ViewWindowList .Current .SetSliceToCurrentPoi = "Set Slice To Current POI";

//Bottom left
ViewWindowList .CtSimOrthoLowerLeft .MakeCurrent = "";
ViewWindowList .Current .Orientation .MakeSagittal = "Sagittal";
ViewWindowList .Current .SetSliceToCurrentPoi = "Set Slice To Current POI";

//Bottom right
ViewWindowList .CtSimOrthoLowerRight .MakeCurrent = "";
ViewWindowList .Current .Orientation .MakeCoronal = "Coronal";
ViewWindowList .Current .SetSliceToCurrentPoi = "Set Slice To Current POI";

Dmax Point

Coordinates

InfoMessage = TrialList.Current.MaxDosePoint.CurrXCoord;
InfoMessage = TrialList.Current.MaxDosePoint.CurrYCoord;
InfoMessage = TrialList.Current.MaxDosePoint.CurrZCoord;

View Dmax point - 3 view example

//Set 3 Window View
ViewWindowList .#"*" .InactiveIfCtSim = "1";
ViewWindowList .CtSimOrthoTop .Inactive = "0";
ViewWindowList .CtSimOrthoLowerLeft .Inactive = "0";
ViewWindowList .CtSimOrthoLowerRight .Inactive = "0";
IF .CtSimLayout .Is .#"!Orthogonal" .THEN .ViewWindowList .CtSimOrthoTop .MakeCurrent = "Orth
oLayoutIcon";
CtSimLayout = "Orthogonal";
ViewWindowList .#"*" .CineOnOff = "0";

//Turn on Dmax point
TrialList .Children .MaxDosePointDisplayOn = 1;

//Set all windows to Dmax (3 window view)
//Start with top window
ViewWindowList .CtSimOrthoTop .MakeCurrent = "";
ViewWindowList .Current .Orientation .MakeTransverse = "Transverse";
ViewWindowList.Current.SlicePosition=TrialList.Current.MaxDosePoint.CurrZCoord;

//Bottom left
ViewWindowList .CtSimOrthoLowerLeft .MakeCurrent = "";
ViewWindowList .Current .Orientation .MakeSagittal = "Sagittal";
ViewWindowList.Current.SlicePosition=TrialList.Current.MaxDosePoint.CurrXCoord;

//Bottom right
ViewWindowList .CtSimOrthoLowerRight .MakeCurrent = "";
ViewWindowList .Current .Orientation .MakeCoronal = "Coronal";
ViewWindowList.Current.SlicePosition=TrialList.Current.MaxDosePoint.CurrYCoord;

Localization Point

Coordinates

//Coordinates
TrialList .Current .LaserLocalizer .LaserCenter .XCoord;
TrialList .Current .LaserLocalizer .LaserCenter .YCoord;
TrialList .Current .LaserLocalizer .LaserCenter .ZCoord;

Copy from POI

// Copy from POI Example
TrialList .Current .LaserLocalizer .LaserCenter .XCoord = PoiList .Current .CurrXCoord;
TrialList .Current .LaserLocalizer .LaserCenter .YCoord = PoiList .Current .CurrYCoord;
TrialList .Current .LaserLocalizer .LaserCenter .ZCoord = PoiList .Current .CurrZCoord;

Create POI at Laser Center

//Create POI at Laser example
ColorList .NextCurrent = PoiList .Last .Color;
CreateNewPOI = "Create POI at Laser Center";
PoiList .Last .Color = ColorList .Current .Name;
PoiList .Last .CurrXCoord = TrialList .Current .LaserLocalizer .LaserCenter .XCoord;
PoiList .Last .CurrYCoord = TrialList .Current .LaserLocalizer .LaserCenter .YCoord;
PoiList .Last .CurrZCoord = TrialList .Current .LaserLocalizer .LaserCenter .ZCoord;

Set Display Color

TrialList .Current .LaserLocalizer .LaserCenter .Color = "lightblue";

Display after localization complete

TrialList .Current .LaserLocalizer .DisplayAlways = 1; //Hide point with =0

View Localization Point

WindowList .CTSim .PanelList .#"#0" .GotoPanel = "FunctionLayoutIcon0";
ViewWindowList .#"*" .CineOnOff = "0";
CtSimSetupLayout .Index = 1;
ControlPanel .Icon .#"2D Scroll Images" .MakeCurrent = 1;
ControlPanel .Icon .#"3D Direct Manipulation" .MakeCurrent = 1
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License