SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
scnslide.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 "scnscene.hpp"
7#include "slideio/drivers/scn/scn_api_def.hpp"
8#include "slideio/core/cvscene.hpp"
9#include "slideio/core/cvslide.hpp"
10#include "slideio/imagetools/tifftools.hpp"
11
12#if defined(_MSC_VER)
13#pragma warning( push )
14#pragma warning(disable: 4251)
15#endif
16
17namespace slideio
18{
19 class SLIDEIO_SCN_EXPORTS SCNSlide : public slideio::CVSlide
20 {
21 friend class SCNImageDriver;
22 protected:
23 SCNSlide(const std::string& filePath, const std::string& driverId);
24 void init();
25 void constructScenes();
26 public:
27 virtual ~SCNSlide();
28 int getNumScenes() const override;
29 std::string getFilePath() const override;
30 std::shared_ptr<slideio::CVScene> getScene(int index) const override;
31 std::shared_ptr<CVScene> getAuxImage(const std::string& sceneName) const override;
32 private:
33 std::vector<std::shared_ptr<slideio::SCNScene>> m_Scenes;
34 std::map<std::string, std::shared_ptr<slideio::CVScene>> m_auxImages;
35 std::string m_filePath;
36 TIFFKeeper m_tiff;
37 };
38}
39
40#if defined(_MSC_VER)
41#pragma warning( pop )
42#endif
CVSlide is an base class for representation of medical slide.
Definition: cvslide.hpp:29
Definition: exceptions.hpp:15