SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
ndpifile.hpp
1// This file is part of slideio project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://slideio.com/license.html.
4#pragma once
5
6
7#if defined(_MSC_VER)
8#pragma warning( push )
9#pragma warning(disable: 4251)
10#endif
11#include <string>
12
13#include "ndpitifftools.hpp"
14
15namespace libtiff
16{
17 struct tiff;
18 typedef tiff TIFF;
19}
20
21namespace slideio
22{
23 class SLIDEIO_NDPI_EXPORTS NDPIFile
24 {
25 public:
26 NDPIFile(){
27 }
28 ~NDPIFile();
29 void init(const std::string& filePath);
30 const std::vector<NDPITiffDirectory>& directories() const {
31 return m_directories;
32 }
33 const std::string getFilePath() const {
34 return m_filePath;
35 }
36 libtiff::TIFF* getTiffHandle()
37 {
38 return m_tiff;
39 }
40 const NDPITiffDirectory& findZoomDirectory(double zoom, int sceneWidth, int dirBegin, int dirEnd);
41 private:
42 void scanFile();
43 private:
44 std::string m_filePath;
45 NDPITIFFKeeper m_tiff;
46 std::vector<NDPITiffDirectory> m_directories;
47 };
48}
49
50
51#if defined(_MSC_VER)
52#pragma warning( pop )
53#endif
Definition: exceptions.hpp:15