Exemplo n.º 1
0
 public Head(string id, string lexeme, int repetitions, double frequency, SyncPoint startTime, SyncPoint endTime)
     : base(id, startTime, endTime) 
 {
     this.Repetitions = repetitions;
     this.Lexeme = lexeme;
     this.Frequency = frequency;
 }
Exemplo n.º 2
0
 public Sound(string id, string soundName, SyncPoint startTime, SyncPoint endTime, PlaybackMode playbackMode, float volume, float pitch)
     : base(id, startTime, endTime)
 {
     this.Mode = playbackMode;
     this.Volume = volume;
     this.Pitch = pitch;
     this.SoundName = soundName;
 }
Exemplo n.º 3
0
 public Locomotion(string id, SyncPoint startTime, SyncPoint endTime, String target) : base(id, startTime, endTime) {
     IsXY = false;
     Target = target;
     string[] splits = target.Split(' ');
     if (splits.Length == 3 && splits[0] == "xy")
     {
         try
         {
             X = float.Parse(splits[1], ifp);
             Y = float.Parse(splits[2], ifp);
         }
         catch { }
     }
     else if (splits.Length == 4 && splits[0] == "xyt")
     {
         try
         {
             X = float.Parse(splits[1], ifp);
             Y = float.Parse(splits[2], ifp);
             Angle = float.Parse(splits[3], ifp);
         }
         catch { }
     }
 }
Exemplo n.º 4
0
 public PostureShift(SyncPoint startTime, SyncPoint endTime) : this("PostureShift" + Counter++, startTime, endTime) { }
Exemplo n.º 5
0
		private Actions.Pointing BMLPointingToAction(string id, Pointing pointing, string start, string end) {
            if (id == null) id = "";
            Actions.PointingMode mode = Actions.PointingMode.RightHand;
            if (pointing.modeSpecified) mode = BMLPointingModeToPointingMode(pointing.mode);
            string target = pointing.target;
            
            Actions.SyncPoint startPoint = Actions.SyncPoint.Null;
            if (start != null && start != "") startPoint = new Actions.SyncPoint(start);
            Actions.SyncPoint endPoint = Actions.SyncPoint.Null;
            if (end != null && end != "") endPoint = new Actions.SyncPoint(end);

            return new Actions.Pointing(id, target, mode, startPoint, endPoint);
		}
Exemplo n.º 6
0
        private Actions.GazeShift BMLGazeShiftToAction(string id, GazeShift gaze, string start, string end)
        {
            if (id == null) id = "";
            Actions.Direction direction = Actions.Direction.Straight;
            if (gaze.offsetdirectionSpecified) direction = BMLDirectionToDirection(gaze.offsetdirection);
            float angle = 0;
            if (gaze.offsetangleSpecified) angle = gaze.offsetangle;
            float speed = 1;
            if (gaze.speedSpecified) speed = gaze.speed;
            Actions.GazeInfluence influence = BMLGazeInfluenceToGazeInfluence(gaze.influence);
            Actions.SyncPoint startPoint = Actions.SyncPoint.Null;
            if (start != null && start != "") startPoint = new Actions.SyncPoint(start);
            Actions.SyncPoint endPoint = Actions.SyncPoint.Null;
            if (end != null && end != "") endPoint = new Actions.SyncPoint(end);
            string target = "";
            if (gaze.target != null) target = gaze.target;

            return new Actions.GazeShift(id, target, influence, angle, direction, speed, startPoint, endPoint);
		}
Exemplo n.º 7
0
 public Gaze(double offsetAngle, SyncPoint startTime, SyncPoint endTime) : this("Gaze" + Counter++, "", GazeInfluence.Eyes, offsetAngle, Direction.Straight, 1.0f, startTime, endTime) { }
Exemplo n.º 8
0
 public Gaze(Direction offsetDirection, SyncPoint startTime, SyncPoint endTime) : this("Gaze" + Counter++, "", GazeInfluence.Eyes, 0, offsetDirection, 1.0f, startTime, endTime) { }
Exemplo n.º 9
0
 public Gaze(string id, Direction offsetDirection, SyncPoint startTime, SyncPoint endTime) : this(id, "", GazeInfluence.Eyes, 0, offsetDirection, 1.0f, startTime, endTime) { }
Exemplo n.º 10
0
 public Sound(string id, string soundName, SyncPoint startTime, SyncPoint endTime, PlaybackMode playbackMode, float volume) : this(id, soundName, startTime, endTime, playbackMode, volume, 1.0f) {}
Exemplo n.º 11
0
 public Sound(string id, string soundName, SyncPoint startTime, SyncPoint endTime, float volume) : this(id, soundName, startTime, endTime, PlaybackMode.Regular, volume) { }
Exemplo n.º 12
0
 public Sound(string id, string soundName, SyncPoint startTime, SyncPoint endTime) : this(id, soundName, startTime, endTime, 1.0f) { }
Exemplo n.º 13
0
 public Sound(string id, string soundName, SyncPoint startTime, PlaybackMode playbackMode) : this(id, soundName, startTime, SyncPoint.Null, playbackMode, 1.0f) { }
Exemplo n.º 14
0
 public Sound(string soundName, SyncPoint startTime, SyncPoint endTime, PlaybackMode playbackMode) : this("Sound" + Counter++, soundName, startTime, endTime, playbackMode, 1.0f) { }
Exemplo n.º 15
0
 public Sound(string soundName, SyncPoint startTime, SyncPoint endTime) : this("Sound" + Counter++, soundName, startTime, endTime, 1.0f) { }
Exemplo n.º 16
0
 public Gaze(GazeInfluence influence, double offsetAngle, SyncPoint startTime) : this("Gaze" + Counter++, "", influence, offsetAngle, Direction.Straight, 1.0f, startTime, SyncPoint.Null) { }
Exemplo n.º 17
0
 public Gaze(string id, Direction offsetDirection, double offsetAngle, SyncPoint startTime) : this(id, "", GazeInfluence.Eyes, offsetAngle, offsetDirection, 1.0f, startTime, SyncPoint.Null) { }
Exemplo n.º 18
0
        public Gaze(string id, string target, GazeInfluence influence, double offsetAngle, Direction offsetDirection, double speed, SyncPoint startTime, SyncPoint endTime) : base(id, startTime, endTime) { 
			if(target!=null) Target = target;
            Influence = influence;
            OffsetAngle = offsetAngle;
            OffsetDirection = offsetDirection;
            Speed = speed;
		}
Exemplo n.º 19
0
 public Gaze(string id, string target, double offsetAngle, SyncPoint startTime) : this(id, target, GazeInfluence.Eyes, offsetAngle, Direction.Straight, 1.0f, startTime, SyncPoint.Null) { }
Exemplo n.º 20
0
 public void SetStart(SyncPoint start)
 {
     if (start !=SyncPoint.Null) this.startTime = start;
 }
Exemplo n.º 21
0
 public Gaze(string id, double offsetAngle, SyncPoint startTime, SyncPoint endTime) : this(id, "", GazeInfluence.Eyes, offsetAngle, Direction.Straight, 1.0f, startTime, endTime) { }
Exemplo n.º 22
0
            public void SetEnd(SyncPoint end)
            {
				if (end != SyncPoint.Null) this.endTime = end;
            }
Exemplo n.º 23
0
 public Gaze(string id, string target, GazeInfluence influence, SyncPoint startTime, SyncPoint endTime) : this(id, target, influence, 0, Direction.Straight, 1.0f, startTime, endTime) { }
Exemplo n.º 24
0
 public Gaze(string id, GazeInfluence influence, Direction offsetDirection, SyncPoint startTime) : this(id, "", influence, 0, offsetDirection, 1.0f, startTime, SyncPoint.Null) { }
Exemplo n.º 25
0
        private Actions.Head BMLHeadToAction(Head head)
        {
            string id = "";
            if (head.id != null) id = head.id;

            string lexeme = "";
            if (head.lexemeSpecified) lexeme = head.lexeme.ToString();
            
            Actions.SyncPoint startPoint = Actions.SyncPoint.Null;
            if (head.start != null && head.start != "") startPoint = new Actions.SyncPoint(head.start);
            Actions.SyncPoint endPoint = Actions.SyncPoint.Null;
            if (head.end != null && head.end != "") endPoint = new Actions.SyncPoint(head.end);

            return new Actions.Head(id, lexeme, head.repetition, startPoint, endPoint);
		}
Exemplo n.º 26
0
 public Gaze(string id, GazeInfluence influence, double offsetAngle, SyncPoint startTime) : this(id, "", influence, offsetAngle, Direction.Straight, 1.0f, startTime, SyncPoint.Null) { }
Exemplo n.º 27
0
 public PostureShift(string id, SyncPoint startTime) : this(id, startTime, SyncPoint.Null) { }
Exemplo n.º 28
0
 public Gaze(GazeInfluence influence, Direction offsetDirection, SyncPoint startTime) : this("Gaze" + Counter++, "", influence, 0, offsetDirection, 1.0f, startTime, SyncPoint.Null) { }
Exemplo n.º 29
0
 public PostureShift(string id, SyncPoint startTime, SyncPoint endTime) : base(id, startTime, endTime) { }
Exemplo n.º 30
0
 public Gaze(GazeInfluence influence, Direction offsetDirection, double offsetAngle, double speed, SyncPoint startTime) : this("Gaze" + Counter++, "", influence, offsetAngle, offsetDirection, speed, startTime, SyncPoint.Null) { }