public PhotospherePanel(PhotospherePlugin plugin) { InitializeComponent(); mPlugin = plugin; mConfig = plugin.Config as CoreConfig; folderAddress.Text = mConfig.PhotosphereFolder; folderDialog.RootFolder = Environment.SpecialFolder.MyDocuments; folderDialog.SelectedPath = mConfig.PhotosphereFolder; captureDelay.Value = mConfig.PhotosphereCaptureDelayMS; nameBox.Text = mConfig.PhotosphereName; widthBox.Value = mConfig.PhotosphereOutputWidth; detailsLabel.Text = "FoV: " + mPlugin.FoV + " Columns: " + mPlugin.Cols + " Rows: " + mPlugin.Rows + " YawIncrement: " + mPlugin.YawIncrement + " PitchIncrement:" + mPlugin.PitchIncrement; }
public PhotospherePanel(PhotospherePlugin plugin) { InitializeComponent(); mPlugin = plugin; mConfig = plugin.Config as CoreConfig; folderAddress.Text = mConfig.PhotosphereFolder; folderDialog.RootFolder = Environment.SpecialFolder.MyDocuments; folderDialog.SelectedPath = mConfig.PhotosphereFolder; captureDelay.Value = mConfig.PhotosphereCaptureDelayMS; nameBox.Text = mConfig.PhotosphereName; widthBox.Value = mConfig.PhotosphereOutputWidth; detailsLabel.Text = "FoV: " + mPlugin.FoV + " Columns: " + mPlugin.Cols + " Rows: " + mPlugin.Rows + " YawIncrement: " + mPlugin.YawIncrement + " PitchIncrement:" + mPlugin.PitchIncrement; }
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); }
public VideospherePlugin(FlythroughPlugin flythroughPlugin, PhotospherePlugin photospherePlugin) : base("Videosphere", plugin => new VideospherePanel(plugin as VideospherePlugin)) { }