|
Blender V5.0
|
#include <NOD_geometry_exec.hh>
Public Member Functions | |
| GeoNodeExecParams (const bNode &node, lf::Params ¶ms, const lf::Context &lf_context, const Span< int > lf_input_for_output_bsocket_usage, const Span< int > lf_input_for_attribute_propagation_to_output, const FunctionRef< std::string(int)> get_output_attribute_id) | |
| template<typename T> | |
| T | extract_input (StringRef identifier) |
| void | check_input_geometry_set (StringRef identifier, const GeometrySet &geometry_set) const |
| void | check_output_geometry_set (const GeometrySet &geometry_set) const |
| template<typename T> | |
| T | get_input (StringRef identifier) const |
| lf::Params & | low_level_lazy_function_params () |
| template<typename T> | |
| void | set_output (StringRef identifier, T &&value) |
| geo_eval_log::GeoTreeLogger * | get_local_tree_logger () const |
| void | set_input_unused (StringRef identifier) |
| bool | output_is_required (StringRef identifier) const |
| const bNode & | node () const |
| const Object * | self_object () const |
| const Depsgraph * | depsgraph () const |
| Main * | bmain () const |
| GeoNodesUserData * | user_data () const |
| GeoNodesLocalUserData * | local_user_data () const |
| void | error_message_add (const NodeWarningType type, StringRef message) const |
| void | set_default_remaining_outputs () |
| void | used_named_attribute (StringRef attribute_name, NamedAttributeUsage usage) |
| bool | anonymous_attribute_output_is_required (const StringRef output_identifier) |
| std::optional< std::string > | get_output_anonymous_attribute_id_if_needed (const StringRef output_identifier, const bool force_create=false) |
| NodeAttributeFilter | get_attribute_filter (const StringRef output_identifier) const |
| std::optional< std::string > | ensure_absolute_path (StringRefNull path) const |
Definition at line 76 of file NOD_geometry_exec.hh.
|
inline |
Definition at line 86 of file NOD_geometry_exec.hh.
|
inline |
Return true when the anonymous attribute referenced by the given output should be created.
Definition at line 301 of file NOD_geometry_exec.hh.
Referenced by get_output_anonymous_attribute_id_if_needed().
| Main * blender::nodes::GeoNodeExecParams::bmain | ( | ) | const |
Definition at line 30 of file node_geometry_exec.cc.
References DEG_get_bmain(), and depsgraph().
Referenced by ensure_absolute_path().
| void blender::nodes::GeoNodeExecParams::check_input_geometry_set | ( | StringRef | identifier, |
| const GeometrySet & | geometry_set ) const |
Definition at line 55 of file node_geometry_exec.cc.
References BLI_assert_unreachable, BLT_I18NCONTEXT_ID_ID, check_input_geometry_set(), blender::Span< T >::contains(), CTX_RPT_, error_message_add(), blender::bke::GeometrySet::gather_component_types(), blender::bke::GeometrySet::get_curves(), blender::bke::GeometrySet::get_grease_pencil(), blender::bke::GeometrySet::get_mesh(), blender::bke::GeometrySet::get_pointcloud(), blender::bke::GeometrySet::has_instances(), blender::bke::GeometrySet::has_realized_data(), blender::nodes::Info, blender::Span< T >::is_empty(), blender::nodes::decl::Geometry::only_instances(), blender::nodes::decl::Geometry::only_realized_data(), RPT_, blender::nodes::decl::Geometry::supported_types(), and TIP_.
Referenced by check_input_geometry_set(), extract_input(), and get_input().
| void blender::nodes::GeoNodeExecParams::check_output_geometry_set | ( | const GeometrySet & | geometry_set | ) | const |
Definition at line 147 of file node_geometry_exec.cc.
References BLI_assert, check_output_geometry_set(), blender::bke::GeometrySet::get_curve_edit_hints(), and UNUSED_VARS_NDEBUG.
Referenced by check_output_geometry_set(), and set_output().
|
inline |
Definition at line 263 of file NOD_geometry_exec.hh.
References data, and user_data().
Referenced by bmain().
| std::optional< std::string > blender::nodes::GeoNodeExecParams::ensure_absolute_path | ( | StringRefNull | path | ) | const |
If the path is relative, attempt to make it absolute. If the current node tree is linked, the path is relative to the linked file. Otherwise, the path is relative to the current file.
Definition at line 249 of file node_geometry_exec.cc.
References BLI_path_abs(), BLI_path_is_rel(), bmain(), blender::StringRefNull::c_str(), ensure_absolute_path(), FILE_MAX, ID_BLEND_PATH, blender::StringRefBase::is_empty(), STRNCPY(), and tree.
Referenced by ensure_absolute_path().
| void blender::nodes::GeoNodeExecParams::error_message_add | ( | const NodeWarningType | type, |
| StringRef | message ) const |
Add an error message displayed at the top of the node when displaying the node tree, and potentially elsewhere in Blender.
Definition at line 35 of file node_geometry_exec.cc.
References get_local_tree_logger().
Referenced by check_input_geometry_set().
|
inline |
Get the input value for the input socket with the given identifier.
This method can only be called once for each identifier.
Definition at line 107 of file NOD_geometry_exec.hh.
References BLI_assert, check_input_geometry_set(), blender::bke::SocketValueVariant::extract(), i, blender::nodes::is_GeoNodesMultiInput_v, T, blender::nodes::MenuValue::value, and blender::nodes::GeoNodesMultiInput< T >::values.
|
inline |
Get information about which attributes should be propagated to the given output.
Definition at line 326 of file NOD_geometry_exec.hh.
|
inline |
Get the input value for the input socket with the given identifier.
Definition at line 154 of file NOD_geometry_exec.hh.
References BLI_assert, check_input_geometry_set(), blender::bke::SocketValueVariant::get(), i, blender::nodes::is_GeoNodesMultiInput_v, T, blender::nodes::MenuValue::value, and blender::nodes::GeoNodesMultiInput< T >::values.
|
inline |
Definition at line 224 of file NOD_geometry_exec.hh.
References local_user_data(), blender::nodes::GeoNodesLocalUserData::try_get_tree_logger(), and user_data().
Referenced by error_message_add(), and used_named_attribute().
|
inline |
Return a new anonymous attribute id for the given output. None is returned if the anonymous attribute is not needed.
Definition at line 313 of file NOD_geometry_exec.hh.
References anonymous_attribute_output_is_required().
|
inline |
Definition at line 283 of file NOD_geometry_exec.hh.
Referenced by get_local_tree_logger().
|
inline |
Low level access to the parameters. Usually, it's better to use get_input, extract_input and set_output instead because they are easier to use and more safe. Sometimes it can be beneficial to have more direct access to the raw values though and avoid the indirection.
Definition at line 198 of file NOD_geometry_exec.hh.
|
inline |
Get the node that is currently being executed.
Definition at line 250 of file NOD_geometry_exec.hh.
Referenced by GeoNodeExecParams().
|
inline |
Returns true when the output has to be computed.
Definition at line 241 of file NOD_geometry_exec.hh.
References blender::fn::lazy_function::Unused.
|
inline |
Definition at line 255 of file NOD_geometry_exec.hh.
References data, and user_data().
| void blender::nodes::GeoNodeExecParams::set_default_remaining_outputs | ( | ) |
Definition at line 170 of file node_geometry_exec.cc.
References blender::nodes::set_default_remaining_node_outputs(), and set_default_remaining_outputs().
Referenced by set_default_remaining_outputs().
|
inline |
Tell the evaluator that a specific input won't be used anymore.
Definition at line 232 of file NOD_geometry_exec.hh.
|
inline |
Store the output value for the given socket identifier.
Definition at line 206 of file NOD_geometry_exec.hh.
References check_output_geometry_set(), blender::nodes::SocketValueVariant::From(), and T.
| void blender::nodes::GeoNodeExecParams::used_named_attribute | ( | StringRef | attribute_name, |
| NamedAttributeUsage | usage ) |
Definition at line 45 of file node_geometry_exec.cc.
References get_local_tree_logger(), and used_named_attribute().
Referenced by used_named_attribute().
|
inline |
Definition at line 278 of file NOD_geometry_exec.hh.
Referenced by depsgraph(), get_local_tree_logger(), and self_object().