Blender V5.0
blender::nodes::LazyFunctionForSimulationZone Class Reference

Inherits blender::fn::lazy_function::LazyFunction.

Public Member Functions

 LazyFunctionForSimulationZone (const bNode &sim_output_bnode, const LazyFunction &fn)
void execute_impl (lf::Params &params, const lf::Context &context) const override
void * init_storage (LinearAllocator<> &allocator) const override
void destruct_storage (void *storage) const override
std::string input_name (const int i) const override
std::string output_name (const int i) const override
Public Member Functions inherited from blender::fn::lazy_function::LazyFunction
virtual ~LazyFunction ()=default
virtual std::string name () const
virtual void possible_output_dependencies (int output_index, FunctionRef< void(Span< int >)> fn) const
bool always_used_inputs_available (const Params &params) const
bool allow_missing_requested_inputs () const
Span< Inputinputs () const
Span< Outputoutputs () const
void execute (Params &params, const Context &context) const

Additional Inherited Members

Protected Attributes inherited from blender::fn::lazy_function::LazyFunction
const char * debug_name_ = "unknown"
Vector< Inputinputs_
Vector< Outputoutputs_
bool allow_missing_requested_inputs_ = false

Detailed Description

Definition at line 1471 of file geometry_nodes_lazy_function.cc.

Constructor & Destructor Documentation

◆ LazyFunctionForSimulationZone()

blender::nodes::LazyFunctionForSimulationZone::LazyFunctionForSimulationZone ( const bNode & sim_output_bnode,
const LazyFunction & fn )
inline

Member Function Documentation

◆ destruct_storage()

void blender::nodes::LazyFunctionForSimulationZone::destruct_storage ( void * storage) const
inlineoverridevirtual

Destruct the storage created in init_storage.

Reimplemented from blender::fn::lazy_function::LazyFunction.

Definition at line 1508 of file geometry_nodes_lazy_function.cc.

◆ execute_impl()

void blender::nodes::LazyFunctionForSimulationZone::execute_impl ( lf::Params & params,
const lf::Context & context ) const
inlineoverridevirtual

Needs to be implemented by subclasses. This is separate from execute so that additional debugging logic can be implemented in execute.

Implements blender::fn::lazy_function::LazyFunction.

Definition at line 1485 of file geometry_nodes_lazy_function.cc.

References blender::nodes::GeoNodesUserData::compute_context, blender::ComputeContext::hash(), blender::nodes::GeoNodesUserData::log_socket_values, params, and blender::nodes::should_log_socket_values_for_context().

◆ init_storage()

void * blender::nodes::LazyFunctionForSimulationZone::init_storage ( LinearAllocator<> & allocator) const
inlineoverridevirtual

Allocates storage for this function. The storage will be passed to every call to execute. If the function does not keep track of any state, this does not have to be implemented.

Reimplemented from blender::fn::lazy_function::LazyFunction.

Definition at line 1503 of file geometry_nodes_lazy_function.cc.

◆ input_name()

std::string blender::nodes::LazyFunctionForSimulationZone::input_name ( const int i) const
inlineoverridevirtual

Reimplemented from blender::fn::lazy_function::LazyFunction.

Definition at line 1513 of file geometry_nodes_lazy_function.cc.

References i.

◆ output_name()

std::string blender::nodes::LazyFunctionForSimulationZone::output_name ( const int i) const
inlineoverridevirtual

Reimplemented from blender::fn::lazy_function::LazyFunction.

Definition at line 1518 of file geometry_nodes_lazy_function.cc.

References i.


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