Blender V4.3
blender::NodesModifierSimulationParams Class Reference

Inherits blender::nodes::GeoNodesSimulationParams.

Classes

struct  DataPerZone
 

Public Member Functions

 NodesModifierSimulationParams (NodesModifierData &nmd, const ModifierEvalContext &ctx)
 
void reset_invalid_node_bakes ()
 
nodes::SimulationZoneBehaviorget (const int zone_id) const override
 
void init_simulation_info (const int zone_id, nodes::SimulationZoneBehavior &zone_behavior, NodesModifierBakeDataBlockMap &data_block_map) const
 
void input_pass_through (nodes::SimulationZoneBehavior &zone_behavior) const
 
void output_pass_through (nodes::SimulationZoneBehavior &zone_behavior) const
 
void output_store_frame_cache (bake::SimulationNodeCache &node_cache, nodes::SimulationZoneBehavior &zone_behavior) const
 
void store_as_prev_items (bake::SimulationNodeCache &node_cache, nodes::SimulationZoneBehavior &zone_behavior) const
 
void read_from_cache (const BakeFrameIndices &frame_indices, bake::SimulationNodeCache &node_cache, nodes::SimulationZoneBehavior &zone_behavior) const
 
void read_single (const int frame_index, bake::SimulationNodeCache &node_cache, nodes::SimulationZoneBehavior &zone_behavior) const
 
void read_interpolated (const int prev_frame_index, const int next_frame_index, bake::SimulationNodeCache &node_cache, nodes::SimulationZoneBehavior &zone_behavior) const
 

Public Attributes

Map< int, std::unique_ptr< DataPerZone > > data_by_zone_id
 

Detailed Description

Definition at line 1097 of file MOD_nodes.cc.

Constructor & Destructor Documentation

◆ NodesModifierSimulationParams()

Member Function Documentation

◆ get()

nodes::SimulationZoneBehavior * blender::NodesModifierSimulationParams::get ( const int zone_id) const
inlineoverridevirtual

Get the expected behavior for the simulation zone with the given id (see bNestedNodeRef). It's possible that this method called multiple times for the same id. In this case, the same pointer should be returned in each call.

Implements blender::nodes::GeoNodesSimulationParams.

Definition at line 1193 of file MOD_nodes.cc.

References data, init_simulation_info(), lock, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_cb(), and blender::bke::bake::ModifierCache::mutex.

◆ init_simulation_info()

◆ input_pass_through()

void blender::NodesModifierSimulationParams::input_pass_through ( nodes::SimulationZoneBehavior & zone_behavior) const
inline

Definition at line 1333 of file MOD_nodes.cc.

References blender::nodes::SimulationZoneBehavior::input.

Referenced by init_simulation_info().

◆ output_pass_through()

void blender::NodesModifierSimulationParams::output_pass_through ( nodes::SimulationZoneBehavior & zone_behavior) const
inline

◆ output_store_frame_cache()

void blender::NodesModifierSimulationParams::output_store_frame_cache ( bake::SimulationNodeCache & node_cache,
nodes::SimulationZoneBehavior & zone_behavior ) const
inline

◆ read_from_cache()

◆ read_interpolated()

◆ read_single()

◆ reset_invalid_node_bakes()

◆ store_as_prev_items()

void blender::NodesModifierSimulationParams::store_as_prev_items ( bake::SimulationNodeCache & node_cache,
nodes::SimulationZoneBehavior & zone_behavior ) const
inline

Member Data Documentation

◆ data_by_zone_id

Map<int, std::unique_ptr<DataPerZone> > blender::NodesModifierSimulationParams::data_by_zone_id
mutable

Definition at line 1118 of file MOD_nodes.cc.

Referenced by blender::add_data_block_items_writeback().


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