SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
zvislide.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#include "slideio/core/cvslide.hpp"
6#include "slideio/drivers/zvi/zviscene.hpp"
7#include <fstream>
8
9#if defined(_MSC_VER)
10#pragma warning( push )
11#pragma warning(disable: 4251)
12#endif
13
14namespace slideio
15{
16 class SLIDEIO_ZVI_EXPORTS ZVISlide : public CVSlide
17 {
18 friend class ZVIImageDriver;
19 protected:
20 ZVISlide(const std::string& filePath, const std::string& driverId);
21 public:
22 int getNumScenes() const override;
23 std::string getFilePath() const override;
24 std::shared_ptr<CVScene> getScene(int index) const override;
25 double getMagnification() const;
26 Resolution getResolution() const;
27 double getZSliceResolution() const;
28 double getTFrameResolution() const;
29 protected:
30 MetadataBuilder buildMetadataTree() const override;
31 private:
32 void init();
33 private:
34 std::string m_filePath;
35 std::shared_ptr<ZVIScene> m_scene;
36 };
37}
38
39#if defined(_MSC_VER)
40#pragma warning( pop )
41#endif
Definition: exceptions.hpp:15