Blender V4.3
blender::bke::bNodeZoneType Class Referenceabstract

#include <BKE_node.hh>

Inherited by ForeachGeometryElementZoneType, RepeatZoneType, and SimulationZoneType.

Public Member Functions

virtual ~bNodeZoneType ()=default
 
virtual const intget_corresponding_output_id (const bNode &input_bnode) const =0
 
intget_corresponding_output_id (bNode &input_bnode) const
 
const bNodeget_corresponding_input (const bNodeTree &tree, const bNode &output_bnode) const
 
bNodeget_corresponding_input (bNodeTree &tree, const bNode &output_bnode) const
 
const bNodeget_corresponding_output (const bNodeTree &tree, const bNode &input_bnode) const
 
bNodeget_corresponding_output (bNodeTree &tree, const bNode &input_bnode) const
 

Public Attributes

std::string input_idname
 
std::string output_idname
 
int input_type
 
int output_type
 
int theme_id
 

Detailed Description

Contains information about a specific kind of zone (e.g. simulation or repeat zone in geometry nodes). This allows writing code that works for all kinds of zones automatically, reducing redundancy and the amount of boilerplate needed when adding a new zone type.

Definition at line 1763 of file BKE_node.hh.

Constructor & Destructor Documentation

◆ ~bNodeZoneType()

virtual blender::bke::bNodeZoneType::~bNodeZoneType ( )
virtualdefault

Member Function Documentation

◆ get_corresponding_input() [1/2]

bNode * blender::bke::bNodeZoneType::get_corresponding_input ( bNodeTree & tree,
const bNode & output_bnode ) const

Definition at line 452 of file node_tree_zones.cc.

References get_corresponding_input(), and tree.

◆ get_corresponding_input() [2/2]

const bNode * blender::bke::bNodeZoneType::get_corresponding_input ( const bNodeTree & tree,
const bNode & output_bnode ) const

◆ get_corresponding_output() [1/2]

bNode * blender::bke::bNodeZoneType::get_corresponding_output ( bNodeTree & tree,
const bNode & input_bnode ) const

Definition at line 458 of file node_tree_zones.cc.

References get_corresponding_output(), and tree.

◆ get_corresponding_output() [2/2]

const bNode * blender::bke::bNodeZoneType::get_corresponding_output ( const bNodeTree & tree,
const bNode & input_bnode ) const

◆ get_corresponding_output_id() [1/2]

int & blender::bke::bNodeZoneType::get_corresponding_output_id ( bNode & input_bnode) const
inline

Definition at line 1775 of file BKE_node.hh.

References get_corresponding_output_id().

◆ get_corresponding_output_id() [2/2]

Member Data Documentation

◆ input_idname

◆ input_type

◆ output_idname

std::string blender::bke::bNodeZoneType::output_idname

◆ output_type

◆ theme_id


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