|
mmcfilters
Public API documentation
|
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. | |
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:
CONTOUR_PIXELS: pixels with at least one exposed 4-neighbour side;CONTOUR_PERIMETER: total exposed 4-neighbour sides;CONTOUR_SIDE_NORTH, CONTOUR_SIDE_WEST, CONTOUR_SIDE_EAST, CONTOUR_SIDE_SOUTH: directional exposed-side counters. Definition at line 62 of file ContourSideAttributeComputer.hpp.
|
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.
| context | Operation context or diagnostic label. |
Definition at line 91 of file ContourSideAttributeComputer.hpp.
|
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.
| context | Operation context or diagnostic label. |
Definition at line 106 of file ContourSideAttributeComputer.hpp.
|
staticconstexpr |
Execution domain required by the computer.
Definition at line 71 of file ContourSideAttributeComputer.hpp.
|
staticconstexpr |
Stable family id used by the scheduler.
Definition at line 68 of file ContourSideAttributeComputer.hpp.
|
staticconstexpr |
Family name used in dependency-plan diagnostics.
Definition at line 65 of file ContourSideAttributeComputer.hpp.
|
inlinestaticconstexpr |
Canonical list of scalar contour attributes materialized by this computer.
Definition at line 76 of file ContourSideAttributeComputer.hpp.