Exemple #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;
 }
Exemple #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;
 }
 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 { }
     }
 }
 public PostureShift(SyncPoint startTime, SyncPoint endTime) : this("PostureShift" + Counter++, startTime, endTime) { }
		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);
		}
        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);
		}
Exemple #7
0
 public Gaze(double offsetAngle, SyncPoint startTime, SyncPoint endTime) : this("Gaze" + Counter++, "", GazeInfluence.Eyes, offsetAngle, Direction.Straight, 1.0f, startTime, endTime) { }
Exemple #8
0
 public Gaze(Direction offsetDirection, SyncPoint startTime, SyncPoint endTime) : this("Gaze" + Counter++, "", GazeInfluence.Eyes, 0, offsetDirection, 1.0f, startTime, endTime) { }
Exemple #9
0
 public Gaze(string id, Direction offsetDirection, SyncPoint startTime, SyncPoint endTime) : this(id, "", GazeInfluence.Eyes, 0, offsetDirection, 1.0f, startTime, endTime) { }
Exemple #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) {}
Exemple #11
0
 public Sound(string id, string soundName, SyncPoint startTime, SyncPoint endTime, float volume) : this(id, soundName, startTime, endTime, PlaybackMode.Regular, volume) { }
Exemple #12
0
 public Sound(string id, string soundName, SyncPoint startTime, SyncPoint endTime) : this(id, soundName, startTime, endTime, 1.0f) { }
Exemple #13
0
 public Sound(string id, string soundName, SyncPoint startTime, PlaybackMode playbackMode) : this(id, soundName, startTime, SyncPoint.Null, playbackMode, 1.0f) { }
Exemple #14
0
 public Sound(string soundName, SyncPoint startTime, SyncPoint endTime, PlaybackMode playbackMode) : this("Sound" + Counter++, soundName, startTime, endTime, playbackMode, 1.0f) { }
Exemple #15
0
 public Sound(string soundName, SyncPoint startTime, SyncPoint endTime) : this("Sound" + Counter++, soundName, startTime, endTime, 1.0f) { }
Exemple #16
0
 public Gaze(GazeInfluence influence, double offsetAngle, SyncPoint startTime) : this("Gaze" + Counter++, "", influence, offsetAngle, Direction.Straight, 1.0f, startTime, SyncPoint.Null) { }
Exemple #17
0
 public Gaze(string id, Direction offsetDirection, double offsetAngle, SyncPoint startTime) : this(id, "", GazeInfluence.Eyes, offsetAngle, offsetDirection, 1.0f, startTime, SyncPoint.Null) { }
Exemple #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;
		}
Exemple #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) { }
Exemple #20
0
 public void SetStart(SyncPoint start)
 {
     if (start !=SyncPoint.Null) this.startTime = start;
 }
Exemple #21
0
 public Gaze(string id, double offsetAngle, SyncPoint startTime, SyncPoint endTime) : this(id, "", GazeInfluence.Eyes, offsetAngle, Direction.Straight, 1.0f, startTime, endTime) { }
Exemple #22
0
            public void SetEnd(SyncPoint end)
            {
				if (end != SyncPoint.Null) this.endTime = end;
            }
Exemple #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) { }
Exemple #24
0
 public Gaze(string id, GazeInfluence influence, Direction offsetDirection, SyncPoint startTime) : this(id, "", influence, 0, offsetDirection, 1.0f, startTime, SyncPoint.Null) { }
        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);
		}
Exemple #26
0
 public Gaze(string id, GazeInfluence influence, double offsetAngle, SyncPoint startTime) : this(id, "", influence, offsetAngle, Direction.Straight, 1.0f, startTime, SyncPoint.Null) { }
 public PostureShift(string id, SyncPoint startTime) : this(id, startTime, SyncPoint.Null) { }
Exemple #28
0
 public Gaze(GazeInfluence influence, Direction offsetDirection, SyncPoint startTime) : this("Gaze" + Counter++, "", influence, 0, offsetDirection, 1.0f, startTime, SyncPoint.Null) { }
 public PostureShift(string id, SyncPoint startTime, SyncPoint endTime) : base(id, startTime, endTime) { }
Exemple #30
0
 public Gaze(GazeInfluence influence, Direction offsetDirection, double offsetAngle, double speed, SyncPoint startTime) : this("Gaze" + Counter++, "", influence, offsetAngle, offsetDirection, speed, startTime, SyncPoint.Null) { }