Blender  V2.93
Public Types | Public Member Functions | Static Public Attributes | List of all members
Integrator Class Reference

#include <integrator.h>

Inherits Node.

Public Types

enum  Method { BRANCHED_PATH = 0 , PATH = 1 , NUM_METHODS }
 
enum  : uint32_t {
  AO_PASS_MODIFIED = (1 << 0) , BACKGROUND_AO_MODIFIED = (1 << 1) , LIGHT_SAMPLES_MODIFIED = (1 << 2) , UPDATE_ALL = ~0u ,
  UPDATE_NONE = 0u
}
 

Public Member Functions

 Integrator ()
 
 ~Integrator ()
 
void device_update (Device *device, DeviceScene *dscene, Scene *scene)
 
void device_free (Device *device, DeviceScene *dscene, bool force_free=false)
 
void tag_update (Scene *scene, uint32_t flag)
 
- 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)
 
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 ()
 
void tag_modified ()
 
void clear_modified ()
 
void print_modified_sockets () const
 
const NodeOwnerget_owner () const
 
void set_owner (const NodeOwner *owner_)
 

Static Public Attributes

static NODE_DECLARE const int MAX_SAMPLES = (1 << 24)
 

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)
 
template<typename T >
void set_if_different (const SocketType &input, array< T > &value)
 
- 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
 
SocketModifiedFlags socket_modified
 

Detailed Description

Definition at line 30 of file integrator.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : uint32_t
Enumerator
AO_PASS_MODIFIED 
BACKGROUND_AO_MODIFIED 
LIGHT_SAMPLES_MODIFIED 
UPDATE_ALL 
UPDATE_NONE 

Definition at line 92 of file integrator.h.

◆ Method

Enumerator
BRANCHED_PATH 
PATH 
NUM_METHODS 

Definition at line 81 of file integrator.h.

Constructor & Destructor Documentation

◆ Integrator()

Integrator::Integrator ( )

Definition at line 99 of file integrator.cpp.

◆ ~Integrator()

Integrator::~Integrator ( )

Definition at line 103 of file integrator.cpp.

Member Function Documentation

◆ device_free()

void Integrator::device_free ( Device device,
DeviceScene dscene,
bool  force_free = false 
)

◆ device_update()

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

Definition at line 107 of file integrator.cpp.

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

Referenced by Scene::device_update().

◆ tag_update()

void Integrator::tag_update ( Scene scene,
uint32_t  flag 
)

Member Data Documentation

◆ MAX_SAMPLES

NODE_DECLARE const int Integrator::MAX_SAMPLES = (1 << 24)
static

Definition at line 62 of file integrator.h.

Referenced by BlenderSync::get_session_params(), and Session::update_status_time().


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