SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
ndpislide.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#include "slideio/drivers/ndpi/ndpi_api_def.hpp"
7#include "slideio/core/cvscene.hpp"
8#include "slideio/core/cvslide.hpp"
9#include "slideio/imagetools/libtiff.hpp"
10#include <map>
11#include <memory>
12
13#if defined(_MSC_VER)
14#pragma warning( push )
15#pragma warning(disable: 4251)
16#endif
17
18namespace slideio
19{
20 class NDPIFile;
21}
22
23
24namespace slideio
25{
26 class SLIDEIO_NDPI_EXPORTS NDPISlide : public slideio::CVSlide
27 {
28 friend class NDPIImageDriver;
29 protected:
30 NDPISlide();
31 void constructScenes();
32 void init(const std::string& filePath, const std::string& driverId);
33 public:
34 virtual ~NDPISlide();
35 int getNumScenes() const override;
36 std::string getFilePath() const override;
37 std::shared_ptr<slideio::CVScene> getScene(int index) const override;
38 std::shared_ptr<CVScene> getAuxImage(const std::string& sceneName) const override;
39 private:
40 void log();
41 private:
42 std::vector<std::shared_ptr<slideio::CVScene>> m_Scenes;
43 std::map<std::string, std::shared_ptr<slideio::CVScene>> m_auxImages;
44 std::string m_filePath;
45 std::unique_ptr<NDPIFile> m_pfile;
46 };
47}
48
49
50#if defined(_MSC_VER)
51#pragma warning( pop )
52#endif
CVSlide is an base class for representation of medical slide.
Definition: cvslide.hpp:29
Definition: exceptions.hpp:15