Blender  V3.3
Public Member Functions | Public Attributes | List of all members
BufferPass Class Reference

#include <buffers.h>

Inheritance diagram for BufferPass:
Node

Public Member Functions

 BufferPass ()
 
 BufferPass (const Pass *scene_pass)
 
 BufferPass (BufferPass &&other) noexcept=default
 
 BufferPass (const BufferPass &other)=default
 
BufferPassoperator= (BufferPass &&other)=default
 
BufferPassoperator= (const BufferPass &other)=default
 
 ~BufferPass ()=default
 
PassInfo get_info () const
 
bool operator== (const BufferPass &other) const
 
bool operator!= (const BufferPass &other) const
 
- Public Member Functions inherited from Node
 Node (const NodeType *type, ustring name=ustring())
 
virtual ~Node ()=0
 
void set (const SocketType &input, bool value)
 
void set (const SocketType &input, int value)
 
void set (const SocketType &input, uint value)
 
void set (const SocketType &input, float value)
 
void set (const SocketType &input, float2 value)
 
void set (const SocketType &input, float3 value)
 
void set (const SocketType &input, const char *value)
 
void set (const SocketType &input, ustring value)
 
void set (const SocketType &input, const Transform &value)
 
void set (const SocketType &input, Node *value)
 
template<class ValueType , typename std::enable_if_t< std::is_enum_v< ValueType >> * = nullptr>
void set (const SocketType &input, const ValueType &value)
 
void set (const SocketType &input, array< bool > &value)
 
void set (const SocketType &input, array< int > &value)
 
void set (const SocketType &input, array< float > &value)
 
void set (const SocketType &input, array< float2 > &value)
 
void set (const SocketType &input, array< float3 > &value)
 
void set (const SocketType &input, array< ustring > &value)
 
void set (const SocketType &input, array< Transform > &value)
 
void set (const SocketType &input, array< Node * > &value)
 
bool get_bool (const SocketType &input) const
 
int get_int (const SocketType &input) const
 
uint get_uint (const SocketType &input) const
 
float get_float (const SocketType &input) const
 
float2 get_float2 (const SocketType &input) const
 
float3 get_float3 (const SocketType &input) const
 
ustring get_string (const SocketType &input) const
 
Transform get_transform (const SocketType &input) const
 
Nodeget_node (const SocketType &input) const
 
const array< bool > & get_bool_array (const SocketType &input) const
 
const array< int > & get_int_array (const SocketType &input) const
 
const array< float > & get_float_array (const SocketType &input) const
 
const array< float2 > & get_float2_array (const SocketType &input) const
 
const array< float3 > & get_float3_array (const SocketType &input) const
 
const array< ustring > & get_string_array (const SocketType &input) const
 
const array< Transform > & get_transform_array (const SocketType &input) const
 
const array< Node * > & get_node_array (const SocketType &input) const
 
bool has_default_value (const SocketType &input) const
 
void set_default_value (const SocketType &input)
 
bool equals_value (const Node &other, const SocketType &input) const
 
void copy_value (const SocketType &input, const Node &other, const SocketType &other_input)
 
void set_value (const SocketType &input, const Node &other, const SocketType &other_input)
 
bool equals (const Node &other) const
 
void hash (MD5Hash &md5)
 
size_t get_total_size_in_bytes () const
 
bool is_a (const NodeType *type)
 
bool socket_is_modified (const SocketType &input) const
 
bool is_modified () const
 
void tag_modified ()
 
void clear_modified ()
 
void print_modified_sockets () const
 
const NodeOwnerget_owner () const
 
void set_owner (const NodeOwner *owner_)
 
int reference_count () const
 
void reference ()
 
void dereference ()
 
void clear_reference_count ()
 

Public Attributes

NODE_DECLARE PassType type = PASS_NONE
 
PassMode mode = PassMode::NOISY
 
ustring name
 
bool include_albedo = false
 
ustring lightgroup
 
int offset = -1
 
- Public Attributes inherited from Node
ustring name
 
const NodeTypetype
 
InternalNode internal
 
LeafNode leaf
 

Additional Inherited Members

- Protected Member Functions inherited from Node
template<typename T >
void set_if_different (const SocketType &input, T value)
 
void set_if_different (const SocketType &input, Node *value)
 
template<typename T >
void set_if_different (const SocketType &input, array< T > &value)
 
void set_if_different (const SocketType &input, array< Node * > &value)
 
void dereference_all_used_nodes ()
 
- Static Protected Member Functions inherited from Node
template<typename T >
static Tget_socket_value (const Node *node, const SocketType &socket)
 
- Protected Attributes inherited from Node
const NodeOwnerowner
 
int ref_count {0}
 
SocketModifiedFlags socket_modified
 

Detailed Description

Definition at line 25 of file buffers.h.

Constructor & Destructor Documentation

◆ BufferPass() [1/4]

BufferPass::BufferPass ( )

Definition at line 59 of file buffers.cpp.

◆ BufferPass() [2/4]

BufferPass::BufferPass ( const Pass scene_pass)
explicit

Definition at line 63 of file buffers.cpp.

◆ BufferPass() [3/4]

BufferPass::BufferPass ( BufferPass &&  other)
defaultnoexcept

◆ BufferPass() [4/4]

BufferPass::BufferPass ( const BufferPass other)
default

◆ ~BufferPass()

BufferPass::~BufferPass ( )
default

Member Function Documentation

◆ get_info()

PassInfo BufferPass::get_info ( ) const

Definition at line 73 of file buffers.cpp.

References Pass::get_info(), include_albedo, lightgroup, and type.

Referenced by exr_channel_names_for_passes().

◆ operator!=()

bool BufferPass::operator!= ( const BufferPass other) const
inline

Definition at line 56 of file buffers.h.

◆ operator=() [1/2]

BufferPass& BufferPass::operator= ( BufferPass &&  other)
default

◆ operator=() [2/2]

BufferPass& BufferPass::operator= ( const BufferPass other)
default

◆ operator==()

bool BufferPass::operator== ( const BufferPass other) const
inline

Definition at line 50 of file buffers.h.

References include_albedo, lightgroup, mode, name, offset, and type.

Member Data Documentation

◆ include_albedo

bool BufferPass::include_albedo = false

Definition at line 32 of file buffers.h.

Referenced by get_info(), and operator==().

◆ lightgroup

ustring BufferPass::lightgroup

Definition at line 33 of file buffers.h.

Referenced by BufferParams::get_actual_display_pass(), get_info(), and operator==().

◆ mode

PassMode BufferPass::mode = PassMode::NOISY

◆ name

ustring BufferPass::name

Definition at line 31 of file buffers.h.

Referenced by exr_channel_names_for_passes(), and operator==().

◆ offset

int BufferPass::offset = -1

Definition at line 35 of file buffers.h.

Referenced by exr_channel_names_for_passes(), operator==(), and BufferParams::update_passes().

◆ type

NODE_DECLARE PassType BufferPass::type = PASS_NONE

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