示例#1
0
        public void AddStep(HistoryBuffer buffer)
        {
            HistoryStep step = new HistoryStep();

            step.Buffer      = buffer;
            step.number      = stepField.Count;
            step.category    = "Buffer";
            step.description = buffer.name;

            UpdateStep(step);
        }
示例#2
0
 public HistoryStep()
 {
     filterField      = new List <HistoryFilter>();
     pseudoColorField = null;
     bufferField      = null;
     histogramField   = null;
     dualEnergyField  = null;
     numberField      = -1;
     categoryField    = string.Empty;
     descriptionField = string.Empty;
     DateTime timeField = DateTime.Now;
 }
示例#3
0
        public void SetFirstStep(HistoryBuffer buffer)
        {
            HistoryStep step = FindStep(0);

            if (step == null)
            {
                step             = new HistoryStep();
                step.number      = 0;
                step.Buffer      = buffer;
                step.category    = "Setup";
                step.description = "Original";

                AddStep(step);
            }
            else
            {
                step.Buffer = buffer;
            }
        }