Volume Cartographer 2.28.0
Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
volcart::LayerTextureNode Class Reference

Generate a Texture of layered images. More...

#include <vc/graph/texturing.hpp>

Inheritance diagram for volcart::LayerTextureNode:
[legend]
Collaboration diagram for volcart::LayerTextureNode:
[legend]

Public Member Functions

auto imageComplete () -> ImageCompleteSignal *
 Returns a pointer to the underlying eager-mode image-complete signal. More...
 
 LayerTextureNode ()
 

Public Attributes

smgl::InputPort< PerPixelMap::Pointerppm
 Input PerPixelMap. More...
 
smgl::InputPort< Volume::Pointervolume
 Input Volume. More...
 
smgl::InputPort< Generatorgenerator
 Neighborhood generator. More...
 
smgl::InputPort< bool > eagerMode
 Enable or disable eager rendering mode. More...
 
smgl::OutputPort< ImageListtexture
 Generated texture image. More...
 

Private Types

using ImageList = std::vector< cv::Mat >
 
using TAlgo = texturing::LayerTexture
 
using Generator = NeighborhoodGenerator::Pointer
 
using ImageCompleteSignal = TAlgo::ImageCompleteSignal
 

Private Member Functions

auto serialize_ (bool useCache, const filesystem::path &cacheDir) -> smgl::Metadata override
 
void deserialize_ (const smgl::Metadata &meta, const filesystem::path &cacheDir) override
 

Private Attributes

TAlgo textureGen_
 
ImageList texture_
 

Detailed Description

Generate a Texture of layered images.

See also
texturing::LayerTexture

Definition at line 553 of file texturing.hpp.

Member Typedef Documentation

◆ Generator

Generator class type

Definition at line 561 of file texturing.hpp.

◆ ImageCompleteSignal

Eager image complete signal

Definition at line 563 of file texturing.hpp.

◆ ImageList

using volcart::LayerTextureNode::ImageList = std::vector<cv::Mat>
private

Image list type

Definition at line 557 of file texturing.hpp.

◆ TAlgo

Algorithm class type

Definition at line 559 of file texturing.hpp.

Constructor & Destructor Documentation

◆ LayerTextureNode()

volcart::LayerTextureNode::LayerTextureNode ( )

Constructor

Member Function Documentation

◆ deserialize_()

void volcart::LayerTextureNode::deserialize_ ( const smgl::Metadata &  meta,
const filesystem::path &  cacheDir 
)
overrideprivate

smgl custom deserialization

◆ imageComplete()

auto volcart::LayerTextureNode::imageComplete ( ) -> ImageCompleteSignal *

Returns a pointer to the underlying eager-mode image-complete signal.

Connect to this signal to receive each layer image as it is produced during eager rendering. The signal is emitted with the layer index, total layer count, and the completed cv::Mat image.

See also
texturing::LayerTexture::imageComplete
texturing::LayerTexture::setEagerMode()

◆ serialize_()

auto volcart::LayerTextureNode::serialize_ ( bool  useCache,
const filesystem::path &  cacheDir 
) -> smgl::Metadata
overrideprivate

smgl custom serialization

Member Data Documentation

◆ eagerMode

smgl::InputPort<bool> volcart::LayerTextureNode::eagerMode

Enable or disable eager rendering mode.

See also
texturing::LayerTexture::setEagerMode()

Definition at line 586 of file texturing.hpp.

◆ generator

smgl::InputPort<Generator> volcart::LayerTextureNode::generator

Neighborhood generator.

Exceptions
std::runtime_errorIf the provided generator is not a LineGenerator.

Definition at line 580 of file texturing.hpp.

◆ ppm

smgl::InputPort<PerPixelMap::Pointer> volcart::LayerTextureNode::ppm

Input PerPixelMap.

Definition at line 571 of file texturing.hpp.

◆ texture

smgl::OutputPort<ImageList> volcart::LayerTextureNode::texture

Generated texture image.

Definition at line 589 of file texturing.hpp.

◆ texture_

ImageList volcart::LayerTextureNode::texture_
private

Output layer images

Definition at line 567 of file texturing.hpp.

◆ textureGen_

TAlgo volcart::LayerTextureNode::textureGen_
private

Texturing algorithm

Definition at line 565 of file texturing.hpp.

◆ volume

smgl::InputPort<Volume::Pointer> volcart::LayerTextureNode::volume

Input Volume.

Definition at line 573 of file texturing.hpp.


The documentation for this class was generated from the following file: