Files
pixelarium/lib/rendering/IPixelariumImageView.hpp
T
m-aXimilian 235d00192a Misc Improvements (#7)
* get rid of optional<ptr> -> double indirection

* more optional cleanup

* fix

* add more render pixel type options

* towards different views

* missing virtual declaration of ShowImage

* fix runtime

* init image view factory

* fix build

Render Image close button re-enable

add readme

init documentation

use awesomeDoxygen

ci build docs

install doxygen

id token permission

add pages write permission
2026-02-16 20:36:48 +01:00

29 lines
683 B
C++

#pragma once
#include <memory>
#include "imaging/IPixelariumImage.hpp"
#include "rendering/CvMatRender.hpp"
namespace pixelarium::render
{
class IPixelariumImageView
{
public:
virtual ~IPixelariumImageView() = default;
virtual void ShowImage() = 0;
// default implemented
public:
virtual const bool* GetStatus() const noexcept { return &this->open_p; }
virtual void ForceUpdate() noexcept { this->is_dirty_ = true; }
protected:
std::shared_ptr<imaging::IPixelariumImage> img_{};
std::unique_ptr<cv::Mat> cached_image_{};
render::CvMatRender render_;
bool open_p{true};
bool is_dirty_{true};
};
} // namespace pixelarium::render