コード例 #1
0
        private void openLakeDataFile()
        {
            USGS_LakeLevelTxtFileReader =
                new USGS_LakeLevelTxtFileReader
                    (@"D:\SourceModules\DataTicker3D\DataTicker3D\SampleData\FallsLakeAndHurricaneFran.txt");

            TimeTicker3D aTicker = new TimeTicker3D();

            aTicker.Brush   = Brushes.Khaki;
            aTicker.rawData = USGS_LakeLevelTxtFileReader.getData();

            aTicker.TickerGeometryModel3D.BackMaterial = new DiffuseMaterial(Brushes.YellowGreen);
            aTicker.TickerGeometryModel3D.Material     = new DiffuseMaterial(Brushes.Tomato);
            this.group.Children.Add(aTicker.TickerGeometryModel3D);

            openOtherDataFile();
        }
コード例 #2
0
        private void openOtherDataFile()
        {
            USGS_LakeLevelTxtFileReader =
                new USGS_LakeLevelTxtFileReader
                    (@"D:\SourceModules\DataTicker3D\DataTicker3D\SampleData\JordanLakeAndHurricaneFran.txt");

            TimeTicker3D aTicker = new TimeTicker3D();

            aTicker.Brush = Brushes.DeepSkyBlue;
            aTicker.transform.zAdjustment = -5.0;
            aTicker.rawData = USGS_LakeLevelTxtFileReader.getData();

            //ModelVisual3D modelVisual = new ModelVisual3D();
            //modelVisual.Content = aTicker.TickerGeometryModel3D;
            aTicker.TickerGeometryModel3D.BackMaterial = new DiffuseMaterial(Brushes.YellowGreen);
            aTicker.TickerGeometryModel3D.Material     = new DiffuseMaterial(Brushes.Tomato);
            this.group.Children.Add(aTicker.TickerGeometryModel3D);
            //this.viewport.UpdateLayout();
        }