Package HAL.Tools.InteractiveModel
Class InteractiveModel
- java.lang.Object
-
- HAL.Gui.UIWindow
-
- HAL.Tools.InteractiveModel.InteractiveModel
-
public class InteractiveModel extends UIWindow
-
-
Constructor Summary
Constructors Constructor Description InteractiveModel(TreatableTumor myModel, int nSteps, int stateSaveFreq, int visX, int visY, int visScale, int timeScaleY, int intensityScaleX, int stepMSmax, boolean redrawOnTreatmentSwitch, boolean quickStart)
-
Method Summary
Modifier and Type Method Description void
CheckValidModel()
void
DrawIntensityLines()
void
DrawTimeline()
int
GetFirstDivergence(int max)
int
GetTick()
void
InvalidateHistory(int tick)
void
JumpStep(int jumpStep)
void
PlanToHistory(int step)
void
RunGui()
starts the gui thread and reveals the gui to the uservoid
RunNextStep()
void
TogglePause()
java.lang.String
ToPercent(double prop)
int
ToScore(double toxProp, double treatProp)
-
Methods inherited from class HAL.Gui.UIWindow
AddCol, AddKeyResponses, Close, GetBool, GetDouble, GetInt, GetString, GreyOut, IsActive, IsClosed, IsKeyDown, IsKeyDown, IsRunning, LabelStrings, SetColor, SetLables, SetParam, SetParamChangeAction, SetParamValues, SetValsAndLabels, TickPause, ValueStrings
-
-
-
-
Field Detail
-
vis
public final UIGrid vis
-
-
Constructor Detail
-
InteractiveModel
public InteractiveModel(TreatableTumor myModel, int nSteps, int stateSaveFreq, int visX, int visY, int visScale, int timeScaleY, int intensityScaleX, int stepMSmax, boolean redrawOnTreatmentSwitch, boolean quickStart)
-
-
Method Detail
-
TogglePause
public void TogglePause()
-
CheckValidModel
public void CheckValidModel()
-
DrawTimeline
public void DrawTimeline()
-
ToPercent
public java.lang.String ToPercent(double prop)
-
ToScore
public int ToScore(double toxProp, double treatProp)
-
DrawIntensityLines
public void DrawIntensityLines()
-
PlanToHistory
public void PlanToHistory(int step)
-
InvalidateHistory
public void InvalidateHistory(int tick)
-
GetFirstDivergence
public int GetFirstDivergence(int max)
-
JumpStep
public void JumpStep(int jumpStep)
-
RunNextStep
public void RunNextStep()
-
GetTick
public int GetTick()
-
-