Volume Cartographer 2.28.0
LayerTexture.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include <educelab/core/types/Signals.hpp>
8
10
11namespace volcart::texturing
12{
29{
30public:
32 using Pointer = std::shared_ptr<LayerTexture>;
33
36
38 static auto New() -> Pointer;
39
41 LayerTexture() = default;
43 ~LayerTexture() override = default;
49 auto operator=(const LayerTexture&) -> LayerTexture& = default;
51 auto operator=(LayerTexture&&) -> LayerTexture& = default;
52
59
70 void setEagerMode(bool enable);
71
73 [[nodiscard]] auto getEagerMode() const -> bool;
74
88 void setEagerCache(bool enable);
89
95 [[nodiscard]] auto getEagerCache() const -> bool;
96
106
109 auto compute() -> Texture override;
111private:
114
116 bool eager_{false};
118 bool eagerCache_{false};
119};
120
121} // namespace volcart::texturing
Class for generating line-like neighborhoods from a point in a Volume.
std::shared_ptr< LineGenerator > Pointer
Generate a Texture of layered images.
auto operator=(const LayerTexture &) -> LayerTexture &=default
std::shared_ptr< LayerTexture > Pointer
void setEagerMode(bool enable)
Enable or disable eager rendering mode.
auto operator=(LayerTexture &&) -> LayerTexture &=default
auto getEagerCache() const -> bool
Returns whether layer caching is enabled in eager mode.
LayerTexture(LayerTexture &)=default
auto compute() -> Texture override
Compute the Texture.
~LayerTexture() override=default
auto getEagerMode() const -> bool
Returns whether eager rendering mode is enabled.
void setEagerCache(bool enable)
Enable or disable caching of layer images in eager mode.
LineGenerator::Pointer gen_
void setGenerator(LineGenerator::Pointer g)
Set the Neighborhood generator.
LayerTexture(LayerTexture &&)=default
static auto New() -> Pointer
ImageCompleteSignal imageComplete
Signal emitted after each layer image is completed in eager mode.
Texturing and parameterization algorithms and utilities library.