Beispiel #1
0
 /// <summary>
 /// CreateWindowState the event specifying the bare minimum.
 /// </summary>
 /// <param name="container">The container which this event is part of.</param>
 /// <param name="length">The length of time the event will run (ms).</param>
 public RotateToEvent(FlythroughPlugin container, int length)
     : base(container, length)
 {
     Name       = "Rotate To " + (++COUNT);
     StartValue = Rotation.Zero;
     Target     = Rotation.Zero;
 }
Beispiel #2
0
 /// <summary>
 ///
 /// CreateWindowState the event specifying the bare minimum.
 /// </summary>
 /// <param name="container">The container which this event is part of.</param>
 /// <param name="length">The length of time the event will run (ms).</param>
 public LookAtEvent(FlythroughPlugin container, int length)
     : base(container, length)
 {
     Name       = "Look At " + (++COUNT);
     StartValue = Rotation.Zero;
     Target     = container.Core.Position;
 }
        public FPSRecorderState(OverlayPlugin manager, XmlNode node)
            : base(GetName(node, "initialising FPSRecorder state"), manager, node)
        {
            mFolder = Path.GetFullPath(GetString(node, "FPS", "Folder"));
            mFlythrough = GetString(node, "Flythroughs/Expriment.xml", "Flythrough");

            if (manager.Core.HasPlugin<FlythroughPlugin>())
                mFlythroughPlugin = manager.Core.GetPlugin<FlythroughPlugin>();
            else
                Logger.Warn("Unable to initialise FPSRecorder, flythroughPlugin not bound.");
        }
Beispiel #4
0
        public override void Init(Core core)
        {
            base.Init(core);


            mFlythroughPlugin  = core.GetPlugin <FlythroughPlugin>();
            mPhotospherePlugin = core.GetPlugin <PhotospherePlugin>();

            mCore.Closed += new Action <Core, System.Windows.Forms.KeyEventArgs>(mFlythroughPlugin_SequenceFinished);
            mFlythroughPlugin.SequenceFinished += new EventHandler(mFlythroughPlugin_SequenceFinished);
        }
Beispiel #5
0
        /// <summary>
        /// </summary>
        /// <param name="flythrough">The flythrough this event is part of.</param>
        /// <param name="length">The length of value the event will run (ms).</param>
        public ComboEvent(FlythroughPlugin flythrough)
            : base(flythrough, 1)
        {
            mPlugin = flythrough;

            mPositionSequence.LengthChange += new Action <EventSequence <Vector3>, int>(mPositionSequence_LengthChange);
            mPositionSequence.FinishChange += new EventHandler(FinishChanged);

            mOrientationSequence.LengthChange += new Action <EventSequence <Rotation>, int>(mOrientationSequence_LengthChange);
            mOrientationSequence.FinishChange += new EventHandler(FinishChanged);

            mPositionSequence.Start    = StartValue.Position;
            mOrientationSequence.Start = StartValue.Orientation;

            Name = "Step " + COUNT++;
        }
Beispiel #6
0
 /// <summary>
 /// Initialise the event, specificying where the camera will end up.
 /// </summary>
 /// <param name="target">The position the camera will end up in.</param>
 public MoveToEvent(FlythroughPlugin container, int length, Vector3 target)
     : base(container, length)
 {
     Target = target;
     Name   = "Move To " + (++COUNT);
 }
Beispiel #7
0
 /// <summary>
 /// Initialise the event, specifying how long to do nothing for.
 /// </summary>
 /// <param name="target">The position the camera will end up in.</param>
 public BlankEvent(FlythroughPlugin container, int length)
     : base(container, length)
 {
     Name = "Blank " + (++COUNT);
 }
Beispiel #8
0
 /// <summary>
 /// CreateWindowState the event specifying pitch and pitch.
 /// </summary>
 /// <param name="container">The container which this event is part of.</param>
 /// <param name="length">The length of time the event will run (ms).</param>
 /// <param name="pitch">How far the event should rotate the camera around the pitch axis (degrees).</param>
 /// <param name="yaw">How far the event should rotate the camera around the yaw axis (degrees).</param>
 public RotateToEvent(FlythroughPlugin container, int length, Rotation target)
     : this(container, length)
 {
     Target = target;
 }
Beispiel #9
0
 /// <summary>
 /// Initialise this event with no parent, next or previous events.
 /// </summary>
 /// <param name="flythrough">The flythrough this event is part of.</param>
 ///
 /// <param name="length">The length of value the event will run (ms).</param>
 public FlythroughEvent(FlythroughPlugin flythrough, int length)
 {
     mFlythrough = flythrough;
     mStartTime  = 0;
     Length      = length;
 }
Beispiel #10
0
 public VideospherePlugin(FlythroughPlugin flythroughPlugin, PhotospherePlugin photospherePlugin)
     : base("Videosphere", plugin => new VideospherePanel(plugin as VideospherePlugin))
 {
 }
Beispiel #11
0
 /// <summary>
 /// CreateWindowState the event specifying pitch and pitch.
 /// </summary>
 /// <param name="container">The container which this event is part of.</param>
 /// <param name="length">The length of time the event will run (ms).</param>
 /// <param name="pitch">How far the event should rotate the camera around the pitch axis (degrees).</param>
 /// <param name="yaw">How far the event should rotate the camera around the yaw axis (degrees).</param>
 public LookAtEvent(FlythroughPlugin container, int length, Vector3 target)
     : this(container, length)
 {
     Target = target;
 }