Blender  V3.3
Public Member Functions | Static Public Member Functions | List of all members
Film Class Reference

#include <film.h>

Inheritance diagram for Film:
Node

Public Member Functions

 Film ()
 
 ~Film ()
 
void device_update (Device *device, DeviceScene *dscene, Scene *scene)
 
void device_free (Device *device, DeviceScene *dscene, Scene *scene)
 
int get_aov_offset (Scene *scene, string name, bool &is_color)
 
bool update_lightgroups (Scene *scene)
 
void update_passes (Scene *scene, bool add_sample_count_pass)
 
uint get_kernel_features (const Scene *scene) 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 ()
 

Static Public Member Functions

static void add_default (Scene *scene)
 

Additional Inherited Members

- Public Attributes inherited from Node
ustring name
 
const NodeTypetype
 
InternalNode internal
 
LeafNode leaf
 
- 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 29 of file film.h.

Constructor & Destructor Documentation

◆ Film()

Film::Film ( )

Definition at line 126 of file film.cpp.

◆ ~Film()

Film::~Film ( )

Definition at line 130 of file film.cpp.

Member Function Documentation

◆ add_default()

void Film::add_default ( Scene scene)
static

Definition at line 134 of file film.cpp.

References Scene::create_node(), PASS_COMBINED, and scene.

Referenced by Scene::Scene().

◆ device_free()

void Film::device_free ( Device device,
DeviceScene dscene,
Scene scene 
)

Definition at line 410 of file film.cpp.

References Scene::lookup_tables, LookupTables::remove_table(), and scene.

Referenced by Scene::free_memory().

◆ device_update()

void Film::device_update ( Device device,
DeviceScene dscene,
Scene scene 
)

Definition at line 140 of file film.cpp.

References Node::is_modified(), scene, time, and Scene::update_stats.

Referenced by Scene::device_update().

◆ get_aov_offset()

int Film::get_aov_offset ( Scene scene,
string  name,
bool is_color 
)

◆ get_kernel_features()

uint Film::get_kernel_features ( const Scene scene) const

◆ update_lightgroups()

bool Film::update_lightgroups ( Scene scene)

Definition at line 441 of file film.cpp.

References Scene::lightgroups, Scene::passes, and scene.

Referenced by Scene::device_update().

◆ update_passes()

void Film::update_passes ( Scene scene,
bool  add_sample_count_pass 
)

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