Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/OpenGL/OpenGLTextureArray.h @ 2065:15f2e52835a1 deep-learning
removed OpenGLTextureArray::DownloadedArray()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 May 2023 16:59:28 +0200 |
parents | b6b5e1ca1cc2 |
children |
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLTextureArray.h Thu May 04 11:06:19 2023 +0200 +++ b/OrthancStone/Sources/OpenGL/OpenGLTextureArray.h Thu May 04 16:59:28 2023 +0200 @@ -105,40 +105,13 @@ void Upload(const Orthanc::ImageAccessor& image, unsigned int layer); - class DownloadedArray : public boost::noncopyable - { - private: - std::string buffer_; - Orthanc::PixelFormat format_; - unsigned int width_; - unsigned int height_; - unsigned int depth_; - - public: - DownloadedArray(const OpenGLTextureArray& texture); - - Orthanc::PixelFormat GetFormat() const - { - return format_; - } + size_t GetMemoryBufferSize() const; - unsigned int GetWidth() const - { - return width_; - } + // "targetSize" must be equal to "GetMemoryBufferSize()" + void Download(void* targetBuffer, + size_t targetSize) const; - unsigned int GetHeight() const - { - return height_; - } - - unsigned int GetDepth() const - { - return depth_; - } - - Orthanc::ImageAccessor* GetLayer(unsigned int layer) const; - }; + void Download(std::string& target) const; }; } }