Example #1
0
        protected PointCloudSource(FileHandlerBase handler)
        {
            m_id = IdentityManager.AcquireIdentity(GetType().Name);

            m_handler = handler;
            m_name    = Path.GetFileName(FilePath);
        }
Example #2
0
        public Preview3D()
        {
            InitializeComponent();

            m_id = IdentityManager.AcquireIdentity(GetType().Name);

            m_tileInfo = new Dictionary <PointCloudTile, TileInfo3D>();
            //m_lowResMap = new Dictionary<PointCloudTile, Model3D>();
            m_meshTileMap       = new Dictionary <GeometryModel3D, PointCloudTile>();
            m_loadedTiles       = new Dictionary <PointCloudTile, GeometryModel3D>();
            m_loadedTileBuffers = new Dictionary <PointCloudTile, byte[]>();

            m_solidBrush = new SolidColorBrush(Colors.DarkKhaki);
            m_solidBrush.Freeze();

            m_backgroundWorker = new ManagedBackgroundWorker();
            m_backgroundWorker.WorkerReportsProgress      = true;
            m_backgroundWorker.WorkerSupportsCancellation = true;
            m_backgroundWorker.DoWork             += OnBackgroundDoWork;
            m_backgroundWorker.ProgressChanged    += OnBackgroundProgressChanged;
            m_backgroundWorker.RunWorkerCompleted += OnBackgroundRunWorkerCompleted;

            m_timer          = new Timer();
            m_timer.Interval = 10;
            m_timer.Elapsed += OnTimerElapsed;
        }
Example #3
0
        public ProcessingSet(FileHandlerBase inputFile)
        {
            m_id = IdentityManager.AcquireIdentity(GetType().Name);

            m_inputHandler = inputFile;
            var tiledPath = PointCloudTileSource.GetTileSourcePath(m_inputHandler.FilePath);

            m_tiledHandler = LASFile.Create(tiledPath, null);

            Directory.CreateDirectory(Path.GetDirectoryName(m_tiledHandler.FilePath));
        }
Example #4
0
        public PointCloudTileSource(LASFile file, PointCloudTileSet tileSet, Statistics zStats)
            : base(file, tileSet.PointCount, tileSet.Extent, file.Header.Quantization, file.Header.OffsetToPointData, (short)file.Header.PointDataRecordLength)
        {
            m_file = file;

            m_id = IdentityManager.AcquireIdentity(GetType().Name);

            m_tileSet            = tileSet;
            m_tileSet.TileSource = this;

            m_statisticsZ          = zStats;
            m_statisticsQuantizedZ = zStats.ConvertToQuantized(Quantization);

            m_lowResBuffer = BufferManager.AcquireBuffer(m_id, tileSet.LowResCount * PointSizeBytes);

            m_file.UpdateEVLR(new LASRecordIdentifier("Jacere", 0), TileSet);
            m_file.UpdateEVLR(new LASRecordIdentifier("Jacere", 1), StatisticsZ);
        }
Example #5
0
 public PointCloudTileManager(IPointCloudBinarySource source)
 {
     m_id     = IdentityManager.AcquireIdentity(GetType().Name);
     m_source = source;
 }