コード例 #1
0
 protected Instrument(IRenderer Renderer, InstrumentDataSource DataSource, QPen LinePen, QPen BackPen, QPen TextPen)
 {
     this.renderer   = Renderer;
     this.dataSource = DataSource;
     this.LinePen    = LinePen;
     this.BackPen    = BackPen;
     this.TextPen    = TextPen;
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: mch2112/solarmax
        private void setupInstrumentsAndWidgets(int FrameRate)
        {
            instrumentDataSource   = new InstrumentDataSource(this, physics, camera, projector);
            azimuthInstrument      = new InstrumentAzimuth(renderer, instrumentDataSource, instrumentLinePen, instrumentOutlinePen, instrumentDataPen);
            inclinometerInstrument = new InstrumentInclinometer(renderer, instrumentDataSource, instrumentLinePen, instrumentOutlinePen, instrumentDataPen);
            attitudeInstrument     = new InstrumentAttitude(renderer, instrumentDataSource, instrumentLinePen, instrumentOutlinePen, instrumentDataPen);
            fieldOfViewInstrument  = new InstrumentFieldOfView(renderer, instrumentDataSource, instrumentLinePen, instrumentOutlinePen, instrumentDataPen);

            messageWidget = new WidgetMessage(renderer, FrameRate * 2, defaultPen, borderPen);
            messageWidget.SetMessage("Computing Starting Locations...", true);
            dataWidget = new WidgetData(this, renderer, physics, camera, defaultPen);
        }
コード例 #3
0
 public InstrumentFieldOfView(IRenderer Renderer, InstrumentDataSource DataSource, QPen LinePen, QPen BackPen, QPen TextPen)
     : base(Renderer, DataSource, LinePen, BackPen, TextPen)
 {
 }
コード例 #4
0
 public InstrumentAttitude(IRenderer Renderer, InstrumentDataSource DataSource, QPen LinePen, QPen BackPen, QPen TextPen)
     : base(Renderer, DataSource, LinePen, BackPen, TextPen)
 {
 }
コード例 #5
0
 public InstrumentInclinometer(IRenderer Renderer, InstrumentDataSource DataSource, QPen LinePen, QPen BackPen, QPen TextPen)
     : base(Renderer, DataSource, LinePen, BackPen, TextPen)
 {
 }