FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
fcb::MaterialMapping Struct Reference

One theme's material mapping. More...

#include <fcb/writer/geom_encoder.hpp>

Public Types

enum class  Kind { Value , Values , NullValues }
 

Public Attributes

Kind kind = Kind::Value
 
std::string theme
 
std::uint32_t value = 0
 
std::vector< std::uint32_t > solids
 
std::vector< std::uint32_t > shells
 
std::vector< std::uint32_t > vertices
 

Detailed Description

One theme's material mapping.

Tagged-struct style (matching this codebase's AttrValue convention) rather than std::variant, since only one of value/{solids,shells,vertices} is meaningful per kind. Mirrors the MaterialMapping enum (writer/geom_encoder.rs).

Definition at line 77 of file geom_encoder.hpp.

Member Enumeration Documentation

◆ Kind

enum class fcb::MaterialMapping::Kind
strong
Enumerator
Value 
Values 
NullValues 

Definition at line 78 of file geom_encoder.hpp.

Member Data Documentation

◆ kind

Kind fcb::MaterialMapping::kind = Kind::Value

Definition at line 83 of file geom_encoder.hpp.

Referenced by fcb::encode_material().

◆ shells

std::vector<std::uint32_t> fcb::MaterialMapping::shells

Definition at line 86 of file geom_encoder.hpp.

◆ solids

std::vector<std::uint32_t> fcb::MaterialMapping::solids

Definition at line 86 of file geom_encoder.hpp.

Referenced by fcb::encode_material().

◆ theme

std::string fcb::MaterialMapping::theme

Definition at line 84 of file geom_encoder.hpp.

Referenced by fcb::encode_material().

◆ value

std::uint32_t fcb::MaterialMapping::value = 0

Definition at line 85 of file geom_encoder.hpp.

Referenced by fcb::encode_material().

◆ vertices

std::vector<std::uint32_t> fcb::MaterialMapping::vertices

Definition at line 86 of file geom_encoder.hpp.

Referenced by fcb::encode_material().


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