mmcfilters
Public API documentation
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
mmcfilters::attributes::computers::ContourSideAttributeComputer Class Reference

Scalar computer backed by local contour-side counts. More...

#include <ContourSideAttributeComputer.hpp>

Static Public Member Functions

template<std::floating_point Real>
static void compute (const AttributeComputeContext< Real > &context)
 Computes requested contour-side scalar attributes for live nodes.
 
template<std::floating_point Real>
static void computeUnitRows (const UnitAttributeComputeContext< Real > &context)
 Materializes contour-side attributes for one-pixel unit supports.
 

Static Public Attributes

static constexpr std::string_view familyName = "contour-side"
 Family name used in dependency-plan diagnostics.
 
static constexpr AttributeComputerFamily family = AttributeComputerFamily::ContourSide
 Stable family id used by the scheduler.
 
static constexpr AttributeComputerDomain domain = AttributeComputerDomain::Topology
 Execution domain required by the computer.
 
static constexpr std::array< Attribute, 6 > producedAttributes
 Canonical list of scalar contour attributes materialized by this computer.
 

Detailed Description

Scalar computer backed by local contour-side counts.

This computer projects scalar attributes from its finite-window computation. The public attribute pipeline/topology backend invokes it for CONTOUR_* requests.

The finite-window computation is performed once and the following attributes are materialized as projections of the same bucket:

Definition at line 62 of file ContourSideAttributeComputer.hpp.

Member Function Documentation

◆ compute()

template<std::floating_point Real>
static void mmcfilters::attributes::computers::ContourSideAttributeComputer::compute ( const AttributeComputeContext< Real > &  context)
inlinestatic

Computes requested contour-side scalar attributes for live nodes.

The output buffer is indexed by dense internal node id and interpreted by context.attrNames. The method computes the finite-window contour-side counts once, then projects only the requested scalar columns. Altitude and dependencies are ignored because contour-side counts depend only on topology and regular-grid support.

Parameters
contextOperation context or diagnostic label.

Definition at line 91 of file ContourSideAttributeComputer.hpp.

◆ computeUnitRows()

template<std::floating_point Real>
static void mmcfilters::attributes::computers::ContourSideAttributeComputer::computeUnitRows ( const UnitAttributeComputeContext< Real > &  context)
inlinestatic

Materializes contour-side attributes for one-pixel unit supports.

A one-pixel unit support contributes one contour pixel and four exposed sides, one in each cardinal direction.

Parameters
contextOperation context or diagnostic label.

Definition at line 106 of file ContourSideAttributeComputer.hpp.

Member Data Documentation

◆ domain

constexpr AttributeComputerDomain mmcfilters::attributes::computers::ContourSideAttributeComputer::domain = AttributeComputerDomain::Topology
staticconstexpr

Execution domain required by the computer.

Definition at line 71 of file ContourSideAttributeComputer.hpp.

◆ family

constexpr AttributeComputerFamily mmcfilters::attributes::computers::ContourSideAttributeComputer::family = AttributeComputerFamily::ContourSide
staticconstexpr

Stable family id used by the scheduler.

Definition at line 68 of file ContourSideAttributeComputer.hpp.

◆ familyName

constexpr std::string_view mmcfilters::attributes::computers::ContourSideAttributeComputer::familyName = "contour-side"
staticconstexpr

Family name used in dependency-plan diagnostics.

Definition at line 65 of file ContourSideAttributeComputer.hpp.

◆ producedAttributes

constexpr std::array<Attribute, 6> mmcfilters::attributes::computers::ContourSideAttributeComputer::producedAttributes
inlinestaticconstexpr
Initial value:
{ContourPixels, ContourPerimeter, ContourSideNorth,
ContourSideWest, ContourSideEast, ContourSideSouth}

Canonical list of scalar contour attributes materialized by this computer.

Definition at line 76 of file ContourSideAttributeComputer.hpp.


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