Blender V4.3
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 791 of file inverse_eval.cc.

Member Function Documentation

◆ get_input()

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

◆ get_output()

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

◆ set_input()

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

Member Data Documentation

◆ node

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

Definition at line 29 of file NOD_inverse_eval_params.hh.


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