Blender V5.3
Object Class Reference

#include <object.h>

Inherits Node.

Public Member Functions

 NODE_SOCKET_API (ParticleSystem *, particle_system)
 NODE_SOCKET_API (int, particle_index)
 Object ()
 ~Object () override
void tag_update (Scene *scene)
void compute_bounds (bool motion_blur)
void apply_transform (bool apply_to_motion)
bool use_motion () const
float motion_time (const int step) const
int motion_step (const float time) const
void update_motion (Scene::MotionType need_motion)
bool is_traceable () const
uint visibility_for_tracing () const
int get_device_index () const
float compute_volume_step_size (Progress &progress) const
bool usable_as_light () const
bool has_light_linking () const
bool has_shadow_linking () const
void adjust_volume_tfm (Transform &tfm)
void set_tfm (Transform tfm)
bool tfm_equals (Transform tfm)
void set_motion_tfm (Transform tfm, const int step_index)
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, const int value)
void set (const SocketType &input, const uint value)
void set (const SocketType &input, const uint64_t value)
void set (const SocketType &input, const float value)
void set (const SocketType &input, const float2 value)
void set (const SocketType &input, const 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, std::enable_if_t< std::is_enum_v< ValueType >, bool > = true>
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< packed_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
uint64_t get_uint64 (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
Node * get_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< packed_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 &socket) const
void copy_value (const SocketType &socket, const Node &other, const SocketType &other_socket)
void set_value (const SocketType &socket, const Node &other, const SocketType &other_socket)
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 NodeOwner * get_owner () const
void set_owner (const NodeOwner *owner_)
int reference_count () const
void reference ()
void dereference ()
void clear_reference_count ()

Public Attributes

NODE_DECLARE BoundBox bounds
vector< ParamValue > attributes
bool intersects_volume
int index
Public Attributes inherited from Node
ustring name
const NodeType * type
InternalNode internal
LeafNode leaf

Static Public Attributes

static const uint MAX_MOTION_STEPS = 129

Protected Attributes

size_t attr_map_offset
Protected Attributes inherited from Node
const NodeOwner * owner
int ref_count {0}
SocketModifiedFlags socket_modified

Friends

class ObjectManager
class GeometryManager

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 T & get_socket_value (const Node *node, const SocketType &socket)

Detailed Description

Constructor & Destructor Documentation

◆ Object()

Object::Object ( )

Definition at line 116 of file scene/object.cpp.

References attr_map_offset, bounds, BoundBox::empty, intersects_volume, Node::Node(), and particle_index().

Referenced by ~Object().

◆ ~Object()

Member Function Documentation

◆ adjust_volume_tfm()

void Object::adjust_volume_tfm ( Transform & tfm)

◆ apply_transform()

void Object::apply_transform ( bool apply_to_motion)

◆ compute_bounds()

◆ compute_volume_step_size()

◆ get_device_index()

int Object::get_device_index ( ) const

Definition at line 398 of file scene/object.cpp.

References index.

Referenced by RenderStats::collect_profiling(), and ObjectManager::device_update_prim_offsets().

◆ has_light_linking()

bool Object::has_light_linking ( ) const

Definition at line 433 of file scene/object.cpp.

References LIGHT_LINK_MASK_ALL.

◆ has_shadow_linking()

bool Object::has_shadow_linking ( ) const

Definition at line 446 of file scene/object.cpp.

References LIGHT_LINK_MASK_ALL.

◆ is_traceable()

bool Object::is_traceable ( ) const

Definition at line 287 of file scene/object.cpp.

References bounds, BoundBox::size(), BoundBox::valid(), and zero_float3().

Referenced by usable_as_light().

◆ motion_step()

int Object::motion_step ( const float time) const

Definition at line 274 of file scene/object.cpp.

References motion_time(), step, and use_motion().

Referenced by ~Object().

◆ motion_time()

float Object::motion_time ( const int step) const

Definition at line 269 of file scene/object.cpp.

References step, and use_motion().

Referenced by motion_step(), and ~Object().

◆ NODE_SOCKET_API() [1/2]

Object::NODE_SOCKET_API ( int ,
particle_index  )

◆ NODE_SOCKET_API() [2/2]

Object::NODE_SOCKET_API ( ParticleSystem * ,
particle_system  )

References NODE_SOCKET_API().

Referenced by NODE_SOCKET_API(), and NODE_SOCKET_API().

◆ set_motion_tfm()

void Object::set_motion_tfm ( Transform tfm,
const int step_index )

Definition at line 491 of file scene/object.cpp.

References adjust_volume_tfm().

◆ set_tfm()

void Object::set_tfm ( Transform tfm)

Definition at line 478 of file scene/object.cpp.

References adjust_volume_tfm(), and Node::set().

Referenced by xml_add_mesh(), xml_read_light(), and xml_read_object().

◆ tag_update()

◆ tfm_equals()

bool Object::tfm_equals ( Transform tfm)

Definition at line 485 of file scene/object.cpp.

References adjust_volume_tfm().

◆ update_motion()

◆ usable_as_light()

◆ use_motion()

◆ visibility_for_tracing()

uint Object::visibility_for_tracing ( ) const

◆ GeometryManager

friend class GeometryManager
friend

Definition at line 139 of file scene/object.h.

References GeometryManager.

Referenced by GeometryManager.

◆ ObjectManager

friend class ObjectManager
friend

Definition at line 138 of file scene/object.h.

References ObjectManager.

Referenced by ObjectManager.

Member Data Documentation

◆ attr_map_offset

size_t Object::attr_map_offset
protected

Definition at line 136 of file scene/object.h.

Referenced by Object(), and GeometryManager::update_svm_attributes().

◆ attributes

vector<ParamValue> Object::attributes

◆ bounds

◆ index

int Object::index

◆ intersects_volume

bool Object::intersects_volume

Definition at line 79 of file scene/object.h.

Referenced by Object().

◆ MAX_MOTION_STEPS

const uint Object::MAX_MOTION_STEPS = 129
static

Definition at line 101 of file scene/object.h.


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