Inheritance: TimeNodeObject
Example #1
0
 public void AddMediaFile(MediaFile mediaFile)
 {
     CameraObject co = new CameraObject (mediaFile);
     co.OffsetY = OffsetY;
     co.Height = Height;
     co.SecondsPerPixel = SecondsPerPixel;
     co.DraggingMode = NodeDraggingMode.Segment;
     co.MaxTime = maxTime;
     co.ShowName = ShowName;
     co.LineColor = LineColor;
     AddNode (co);
 }
Example #2
0
        public void AddMediaFile(MediaFile mediaFile)
        {
            CameraObject co = new CameraObject(mediaFile);

            co.OffsetY         = OffsetY;
            co.Height          = Height;
            co.SecondsPerPixel = SecondsPerPixel;
            co.DraggingMode    = NodeDraggingMode.Segment;
            co.MaxTime         = maxTime;
            co.ShowName        = ShowName;
            co.LineColor       = LineColor;
            AddNode(co);
        }
 /// <summary>
 /// Determines whether the provided camera object is in scope of the current time.
 /// </summary>
 /// <returns><c>true</c> if this camera is in scope of the current time; otherwise, <c>false</c>.</returns>
 /// <param name="camera">Camera.</param>
 bool IsInScope(CameraObject camera)
 {
     if (camera == null) {
         return false;
     }
     if (camera.TimeNode.Start <= timerule.CurrentTime &&
         timerule.CurrentTime <= camera.TimeNode.Stop) {
         return true;
     } else {
         return false;
     }
 }
 void HandleCameraUpdate(CameraObject camera)
 {
     UpdateLabels ();
     // If we are in scope, show player. Didactic message otherwise
     if (IsInScope (camera)) {
         ShowSecondaryPlayer ();
         // And resync
         SyncSecondaryPlayer ();
     } else {
         ShowDidactic (DidacticMessage.CameraOutOfScope);
     }
 }