MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_metadata()

std::unordered_map< std::string, std::string > MayaFlux::Nodes::Network::PointCloudNetwork::get_metadata ( ) const
overridevirtual

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 176 of file PointCloudNetwork.cpp.

177{
178 auto metadata = NodeNetwork::get_metadata();
179
180 metadata["point_count"] = std::to_string(get_node_count());
181 metadata["operator"] = std::string(m_operator ? m_operator->get_type_name() : "none");
182 metadata["bounds_min"] = std::format("({:.2f}, {:.2f}, {:.2f})",
184 metadata["bounds_max"] = std::format("({:.2f}, {:.2f}, {:.2f})",
186
187 if (auto* topology_op = dynamic_cast<const TopologyOperator*>(m_operator.get())) {
188 if (auto connections = topology_op->query_state("connection_count")) {
189 metadata["connection_count"] = std::to_string(static_cast<size_t>(*connections));
190 }
191 if (auto topology_count = topology_op->query_state("topology_count")) {
192 metadata["topology_count"] = std::to_string(static_cast<size_t>(*topology_count));
193 }
194 }
195
196 if (auto* path_op = dynamic_cast<const PathOperator*>(m_operator.get())) {
197 if (auto vertex_count = path_op->query_state("vertex_count")) {
198 metadata["vertex_count"] = std::to_string(static_cast<size_t>(*vertex_count));
199 }
200 if (auto path_count = path_op->query_state("path_count")) {
201 metadata["path_count"] = std::to_string(static_cast<size_t>(*path_count));
202 }
203 }
204
205 return metadata;
206}
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

References MayaFlux::Nodes::Network::NodeNetwork::get_metadata(), get_node_count(), m_bounds, m_operator, MayaFlux::Kinesis::SamplerBounds::max, and MayaFlux::Kinesis::SamplerBounds::min.

+ Here is the call graph for this function: