4#ifndef OPENCV_slideio_slide_HPP
5#define OPENCV_slideio_slide_HPP
7#include "slideio/core/slideio_core_def.hpp"
8#include "slideio/core/cvscene.hpp"
12#pragma warning( push )
13#pragma warning(disable: 4251)
29 friend class ImageDriver;
43 virtual std::shared_ptr<CVScene>
getScene(
int index)
const = 0;
52 return static_cast<int>(m_auxNames.size());
58 virtual std::shared_ptr<CVScene> getAuxImage(
const std::string& sceneName)
const;
59 virtual MetadataType getMetadataType()
const {
return MetadataType::Unknown; }
61 std::string m_rawMetadata;
62 std::list<std::string> m_auxNames;
66#define CVSlidePtr std::shared_ptr<slideio::CVSlide>
CVSlide is an base class for representation of medical slide.
Definition: cvslide.hpp:28
virtual std::string getFilePath() const =0
The method returns a string which represents file path of the slide.
virtual int getNumAuxImages() const
The method returns number of auxiliary images contained in the slide.
Definition: cvslide.hpp:51
virtual const std::list< std::string > & getAuxImageNames() const
The method returns list of names of auxiliary images contained in the slide.
Definition: cvslide.hpp:47
virtual int getNumScenes() const =0
The method returns number of Scene objects contained in the slide.
virtual std::shared_ptr< CVScene > getScene(int index) const =0
The method returns a CVScene object by the scene index.
virtual const std::string & getRawMetadata() const
The method returns a string containing serialized metadata of the slide.
Definition: cvslide.hpp:41
Definition: exceptions.hpp:12