Get network metadata for debugging/visualization.
- Returns
- Map of property names to string representations
Subclasses can override to expose internal state:
- Particle count, average velocity
- Modal frequencies, decay times
- Waveguide delay lengths etc.
Reimplemented from MayaFlux::Nodes::Network::NodeNetwork.
Definition at line 184 of file PointCloudNetwork.cpp.
185{
187
190 metadata[
"bounds_min"] = std::format(
"({:.2f}, {:.2f}, {:.2f})",
192 metadata[
"bounds_max"] = std::format(
"({:.2f}, {:.2f}, {:.2f})",
194
195 if (
auto* topology_op =
dynamic_cast<const TopologyOperator*
>(
m_operator.get())) {
196 if (auto connections = topology_op->query_state("connection_count")) {
197 metadata[
"connection_count"] = std::to_string(
static_cast<size_t>(*connections));
198 }
199 if (auto topology_count = topology_op->query_state("topology_count")) {
200 metadata[
"topology_count"] = std::to_string(
static_cast<size_t>(*topology_count));
201 }
202 }
203
204 if (
auto* path_op =
dynamic_cast<const PathOperator*
>(
m_operator.get())) {
205 if (auto vertex_count = path_op->query_state("vertex_count")) {
206 metadata[
"vertex_count"] = std::to_string(
static_cast<size_t>(*vertex_count));
207 }
208 if (auto path_count = path_op->query_state("path_count")) {
209 metadata[
"path_count"] = std::to_string(
static_cast<size_t>(*path_count));
210 }
211 }
212
214}
std::unordered_map< std::string, std::string > metadata
virtual std::unordered_map< std::string, std::string > get_metadata() const
Get network metadata for debugging/visualization.
size_t get_node_count() const override
Get the number of nodes in the network.
std::unique_ptr< NetworkOperator > m_operator
Kinesis::SamplerBounds m_bounds
References MayaFlux::Nodes::Network::NodeNetwork::get_metadata(), get_node_count(), m_bounds, m_operator, MayaFlux::Kinesis::SamplerBounds::max, metadata, and MayaFlux::Kinesis::SamplerBounds::min.