Example #1
0
        /// <summary>
        /// Creates the new object.
        /// </summary>
        /// <param name="pos">The position.</param>
        /// <returns>
        /// The new object
        /// </returns>
        public PatientViewModel CreateNewObject(VRPosition pos)
        {
            PatientViewModel character = new PatientViewModel(pos);
            PatientView view = new PatientView();

            this.LinkMVVM(view, character);
            return character;
        }
Example #2
0
 public void SetUp()
 {
     position = new VRPosition(42, 42, 42);
     patient = new PatientViewModel(position);
 }
Example #3
0
 /// <summary>
 /// Creates the object.
 /// </summary>
 /// <param name="input">The input.</param>
 public override void CreateObject(JObject input)
 {
     VRPosition position = this.GetPositionXYR(input);
     position.Move(position.X, position.Y, position.Rotation - DefaultRotation);
     this.GuiBeginInvoke(new Action(() => this.patient = this.factory.CreateNewObject(position)));
 }