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

◆ ParticleNetwork()

MayaFlux::Nodes::Network::ParticleNetwork::ParticleNetwork ( size_t  num_particles,
const glm::vec3 &  bounds_min = glm::vec3(-10.0F),
const glm::vec3 &  bounds_max = glm::vec3(10.0F),
Kinesis::SpatialDistribution  init_mode = Kinesis::SpatialDistribution::RANDOM_VOLUME 
)

Create particle network with spatial bounds.

Parameters
num_particlesNumber of particles
bounds_minMinimum spatial extent
bounds_maxMaximum spatial extent
init_modeInitialization distribution

Definition at line 13 of file ParticleNetwork.cpp.

18 : m_num_points(num_particles)
19 , m_bounds(bounds_min, bounds_max)
20 , m_init_mode(init_mode)
21{
24
26 "Created ParticleNetwork with {} points, bounds [{:.2f}, {:.2f}, {:.2f}] to [{:.2f}, {:.2f}, {:.2f}]",
27 num_particles,
28 bounds_min.x, bounds_min.y, bounds_min.z,
29 bounds_max.x, bounds_max.y, bounds_max.z);
30}
#define MF_INFO(comp, ctx,...)
void set_output_mode(OutputMode mode)
Set the network's output routing mode.
void set_topology(Topology topology) override
Set the network's topology.
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.
@ INDEPENDENT
No connections, nodes process independently.
@ GRAPHICS_BIND
State available for visualization (read-only)

References MayaFlux::Nodes::Network::GRAPHICS_BIND, MayaFlux::Nodes::Network::INDEPENDENT, MF_INFO, MayaFlux::Journal::NodeProcessing, MayaFlux::Journal::Nodes, MayaFlux::Nodes::Network::NodeNetwork::set_output_mode(), and set_topology().

+ Here is the call graph for this function: