comparison 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
comparison
equal deleted inserted replaced
2064:4e31d76c7ecd 2065:15f2e52835a1
103 unsigned int unit) const; 103 unsigned int unit) const;
104 104
105 void Upload(const Orthanc::ImageAccessor& image, 105 void Upload(const Orthanc::ImageAccessor& image,
106 unsigned int layer); 106 unsigned int layer);
107 107
108 class DownloadedArray : public boost::noncopyable 108 size_t GetMemoryBufferSize() const;
109 {
110 private:
111 std::string buffer_;
112 Orthanc::PixelFormat format_;
113 unsigned int width_;
114 unsigned int height_;
115 unsigned int depth_;
116 109
117 public: 110 // "targetSize" must be equal to "GetMemoryBufferSize()"
118 DownloadedArray(const OpenGLTextureArray& texture); 111 void Download(void* targetBuffer,
112 size_t targetSize) const;
119 113
120 Orthanc::PixelFormat GetFormat() const 114 void Download(std::string& target) const;
121 {
122 return format_;
123 }
124
125 unsigned int GetWidth() const
126 {
127 return width_;
128 }
129
130 unsigned int GetHeight() const
131 {
132 return height_;
133 }
134
135 unsigned int GetDepth() const
136 {
137 return depth_;
138 }
139
140 Orthanc::ImageAccessor* GetLayer(unsigned int layer) const;
141 };
142 }; 115 };
143 } 116 }
144 } 117 }