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

			m_handler = handler;
			m_name = Path.GetFileName(FilePath);
		}
Example #2
0
        protected PointCloudSource(FileHandlerBase handler)
        {
            m_id = IdentityManager.AcquireIdentity(GetType().Name);

            m_handler = handler;
            m_name    = Path.GetFileName(FilePath);
        }
Example #3
0
 public PointCloudBinarySource(FileHandlerBase file, long count, Extent3D extent, SQuantization3D quantization, long dataOffset, short pointSizeBytes)
     : base(file)
 {
     m_count = count;
     m_extent = extent;
     m_quantization = quantization;
     m_pointDataOffset = dataOffset;
     m_pointSizeBytes = pointSizeBytes;
     m_quantizedExtent = quantization.Convert(m_extent);
 }
 public PointCloudBinarySource(FileHandlerBase file, long count, Extent3D extent, SQuantization3D quantization, long dataOffset, short pointSizeBytes)
     : base(file)
 {
     m_count           = count;
     m_extent          = extent;
     m_quantization    = quantization;
     m_pointDataOffset = dataOffset;
     m_pointSizeBytes  = pointSizeBytes;
     m_quantizedExtent = quantization.Convert(m_extent);
 }
Example #5
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));
        }
        public PointCloudBinarySourceComposite(FileHandlerBase file, Extent3D extent, IPointCloudBinarySource[] sources)
            : base(file)
        {
            m_sources = sources;

            // verify that they are compatible

            m_count = m_sources.Sum(s => s.Count);
            m_extent = extent;
            m_quantization = m_sources[0].Quantization;
            m_pointSizeBytes = m_sources[0].PointSizeBytes;
            m_quantizedExtent = m_quantization.Convert(m_extent);
        }
        public PointCloudBinarySourceComposite(FileHandlerBase file, Extent3D extent, IPointCloudBinarySource[] sources)
            : base(file)
        {
            m_sources = sources;

            // verify that they are compatible

            m_count           = m_sources.Sum(s => s.Count);
            m_extent          = extent;
            m_quantization    = m_sources[0].Quantization;
            m_pointSizeBytes  = m_sources[0].PointSizeBytes;
            m_quantizedExtent = m_quantization.Convert(m_extent);
        }
Example #8
0
        public static FileHandlerBase GetInputHandler(string path)
        {
            FileHandlerBase inputHandler = null;
            string          extension    = Path.GetExtension(path);

            foreach (IHandlerCreator creator in c_creators)
            {
                if (creator.IsSupportedExtension(extension))
                {
                    inputHandler = creator.Create(path);
                }
            }

            return(inputHandler);
        }
Example #9
0
 public LAZBinarySource(FileHandlerBase file, long count, Extent3D extent, SQuantization3D quantization, long dataOffset, short pointSizeBytes)
     : base(file, count, extent, quantization, dataOffset, pointSizeBytes)
 {
     m_handler = (LAZFile)file;
 }
Example #10
0
 public LAZBinarySource(FileHandlerBase file, long count, Extent3D extent, SQuantization3D quantization, long dataOffset, short pointSizeBytes)
     : base(file, count, extent, quantization, dataOffset, pointSizeBytes)
 {
     m_handler = (LAZFile)file;
 }
Example #11
0
        private void OnProcessingStarted(FileHandlerBase inputHandler)
        {
            textBlockPreview.Text = inputHandler.GetPreview();

            if (SWITCH_TO_LOG_TAB_ON_PROCESSING_START.Value)
                m_tabItemOnStarted.IsSelected = true;

            UpdateButtonStates();
        }
Example #12
0
 public static string GetBinarySourceName(FileHandlerBase handler)
 {
     return string.Format("{0}.{1}", handler.FilePath, PointCloudBinarySource.FILE_EXTENSION);
 }