|
Blender V4.5
|
Namespaces | |
| namespace | sim_input_node |
| namespace | sim_output_node |
Functions | |
| static const CPPType & | get_simulation_item_cpp_type (const eNodeSocketDatatype socket_type) |
| static const CPPType & | get_simulation_item_cpp_type (const NodeSimulationItem &item) |
| static bke::bake::BakeSocketConfig | make_bake_socket_config (const Span< NodeSimulationItem > node_simulation_items) |
| static std::shared_ptr< AttributeFieldInput > | make_attribute_field (const Object &self_object, const ComputeContext &compute_context, const bNode &node, const NodeSimulationItem &item, const CPPType &type) |
| static void | move_simulation_state_to_values (const Span< NodeSimulationItem > node_simulation_items, bke::bake::BakeState zone_state, const Object &self_object, const ComputeContext &compute_context, const bNode &node, bke::bake::BakeDataBlockMap *data_block_map, Span< void * > r_output_values) |
| static void | copy_simulation_state_to_values (const Span< NodeSimulationItem > node_simulation_items, const bke::bake::BakeStateRef &zone_state, const Object &self_object, const ComputeContext &compute_context, const bNode &node, bke::bake::BakeDataBlockMap *data_block_map, Span< void * > r_output_values) |
| static bke::bake::BakeState | move_values_to_simulation_state (const Span< NodeSimulationItem > node_simulation_items, const Span< void * > input_values, bke::bake::BakeDataBlockMap *data_block_map) |
| static void | draw_simulation_state (const bContext *C, uiLayout *layout, bNodeTree &ntree, bNode &output_node) |
| static void | node_layout_ex (uiLayout *layout, bContext *C, PointerRNA *current_node_ptr) |
|
static |
Definition at line 133 of file node_geo_simulation.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::bake::copy_bake_items_to_socket_values(), i, blender::bke::bake::BakeStateRef::items_by_id, make_attribute_field(), and make_bake_socket_config().
Referenced by blender::nodes::node_geo_simulation_cc::sim_output_node::LazyFunctionForSimulationOutputNode::output_cached_state(), blender::nodes::node_geo_simulation_cc::sim_output_node::LazyFunctionForSimulationOutputNode::output_mixed_cached_state(), and blender::nodes::node_geo_simulation_cc::sim_input_node::LazyFunctionForSimulationInputNode::output_simulation_state_copy().
|
static |
Definition at line 181 of file node_geo_simulation.cc.
References C, blender::nodes::socket_items::ui::draw_active_item_props(), blender::nodes::socket_items::ui::draw_items_list_with_operators(), IFACE_, uiLayout::panel(), NodeSimulationItem::socket_type, blender::nodes::socket_type_supports_fields(), bNode::storage, UI_ITEM_NONE, uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by node_layout_ex().
|
static |
Definition at line 52 of file node_geo_simulation.cc.
References BLI_assert, blender::bke::bNodeSocketType::geometry_nodes_cpp_type, and blender::bke::node_socket_type_find_static().
Referenced by get_simulation_item_cpp_type(), blender::nodes::node_geo_simulation_cc::sim_input_node::LazyFunctionForSimulationInputNode::LazyFunctionForSimulationInputNode(), and blender::nodes::node_geo_simulation_cc::sim_output_node::LazyFunctionForSimulationOutputNode::LazyFunctionForSimulationOutputNode().
|
static |
Definition at line 60 of file node_geo_simulation.cc.
References get_simulation_item_cpp_type(), and NodeSimulationItem::socket_type.
|
static |
Definition at line 91 of file node_geo_simulation.cc.
References blender::ComputeContext::hash(), blender::bke::hash_to_anonymous_attribute_name(), Object::id, bNode::identifier, NodeSimulationItem::identifier, blender::nodes::make_anonymous_attribute_socket_inspection_string(), ID::name, and NodeSimulationItem::name.
Referenced by copy_simulation_state_to_values(), and move_simulation_state_to_values().
|
static |
Definition at line 65 of file node_geo_simulation.cc.
References NodeSimulationItem::attribute_domain, blender::bke::bake::BakeSocketConfig::domains, blender::bke::bake::BakeSocketConfig::geometries_by_attribute, blender::Span< T >::index_range(), NodeSimulationItem::name, blender::bke::bake::BakeSocketConfig::names, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), SOCK_GEOMETRY, NodeSimulationItem::socket_type, and blender::bke::bake::BakeSocketConfig::types.
Referenced by copy_simulation_state_to_values(), move_simulation_state_to_values(), and move_values_to_simulation_state().
|
static |
Definition at line 106 of file node_geo_simulation.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), i, blender::bke::bake::BakeState::items_by_id, make_attribute_field(), make_bake_socket_config(), and blender::bke::bake::move_bake_items_to_socket_values().
Referenced by blender::nodes::node_geo_simulation_cc::sim_input_node::LazyFunctionForSimulationInputNode::output_simulation_state_move(), and blender::nodes::node_geo_simulation_cc::sim_output_node::LazyFunctionForSimulationOutputNode::pass_through().
|
static |
Definition at line 160 of file node_geo_simulation.cc.
References i, NodeSimulationItem::identifier, blender::Span< T >::index_range(), blender::bke::bake::BakeState::items_by_id, make_bake_socket_config(), and blender::bke::bake::move_socket_values_to_bake_items().
Referenced by blender::nodes::node_geo_simulation_cc::sim_output_node::LazyFunctionForSimulationOutputNode::get_bake_state_from_inputs(), and blender::nodes::node_geo_simulation_cc::sim_input_node::LazyFunctionForSimulationInputNode::pass_through().
|
static |
Shared for simulation input and output node.
Definition at line 206 of file node_geo_simulation.cc.
References blender::nodes::BakeDrawContext::bake_rna, C, col, uiLayout::column(), PointerRNA::data, blender::nodes::draw_bake_button_row(), blender::nodes::draw_common_bake_settings(), blender::nodes::draw_data_blocks(), draw_simulation_state(), blender::nodes::get_bake_draw_context(), blender::nodes::get_bake_state_string(), blender::bke::bNodeTreeZones::get_zone_by_node(), ID_IS_EDITABLE, bNode::identifier, blender::nodes::BakeDrawContext::is_bakeable_in_current_context, uiLayout::label(), blender::nodes::BakeDrawContext::object, blender::bke::bNodeTreeZone::output_node(), blender::bke::bNodeTreeZone::output_node_id, PointerRNA::owner_id, uiLayoutSetActive(), uiLayoutSetEnabled(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by blender::nodes::node_geo_simulation_cc::sim_input_node::node_register(), and blender::nodes::node_geo_simulation_cc::sim_output_node::node_register().