Blender V5.0
blender::nodes::inverse_eval::InverseEvalParams Class Reference

#include <NOD_inverse_eval_params.hh>

Public Member Functions

 InverseEvalParams (const bNode &node, const Map< const bNodeSocket *, bke::SocketValueVariant > &socket_values, Map< const bNodeSocket *, bke::SocketValueVariant > &updated_socket_values)
template<typename T>
T get_output (const StringRef identifier) const
template<typename T>
T get_input (const StringRef identifier) const
template<typename T>
void set_input (const StringRef identifier, T value)

Public Attributes

const bNodenode

Detailed Description

Is passed to inverse node evaluation functions to figure out how the inputs have to change exactly to get a specific output value. What is special here is that this gives access to (logged) node inputs and node output values, instead of just either inputs or outputs.

This is required because sometimes certain inputs are fixed and need to be known to be able to figure out how another input changes. A typical example of this is the math node, where the second input is fixed and only the first input changes.

Definition at line 23 of file NOD_inverse_eval_params.hh.

Constructor & Destructor Documentation

◆ InverseEvalParams()

blender::nodes::inverse_eval::InverseEvalParams::InverseEvalParams ( const bNode & node,
const Map< const bNodeSocket *, bke::SocketValueVariant > & socket_values,
Map< const bNodeSocket *, bke::SocketValueVariant > & updated_socket_values )

Definition at line 795 of file inverse_eval.cc.

References node.

Member Function Documentation

◆ get_input()

template<typename T>
T blender::nodes::inverse_eval::InverseEvalParams::get_input ( const StringRef identifier) const
inline

Definition at line 44 of file NOD_inverse_eval_params.hh.

References node, and T.

◆ get_output()

template<typename T>
T blender::nodes::inverse_eval::InverseEvalParams::get_output ( const StringRef identifier) const
inline

Definition at line 35 of file NOD_inverse_eval_params.hh.

References node, and T.

◆ set_input()

template<typename T>
void blender::nodes::inverse_eval::InverseEvalParams::set_input ( const StringRef identifier,
T value )
inline

Definition at line 53 of file NOD_inverse_eval_params.hh.

References node, and T.

Member Data Documentation

◆ node

const bNode& blender::nodes::inverse_eval::InverseEvalParams::node

Definition at line 29 of file NOD_inverse_eval_params.hh.

Referenced by get_input(), get_output(), InverseEvalParams(), and set_input().


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