|
Blender V5.3
|
#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) |
Definition at line 37 of file scene/object.h.
| 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().
|
overridedefault |
References apply_transform(), compute_bounds(), motion_step(), motion_time(), Object(), step, tag_update(), update_motion(), and use_motion().
| void Object::adjust_volume_tfm | ( | Transform & | tfm | ) |
Definition at line 459 of file scene/object.cpp.
References hash_uint2_to_float(), make_float3(), Node::name, transform_direction(), and transform_translate().
Referenced by set_motion_tfm(), set_tfm(), and tfm_equals().
| void Object::apply_transform | ( | bool | apply_to_motion | ) |
Definition at line 200 of file scene/object.cpp.
References bounds, compute_bounds(), transform_identity(), transform_negative_scale(), and BoundBox::valid().
Referenced by ~Object().
| void Object::compute_bounds | ( | bool | motion_blur | ) |
Definition at line 169 of file scene/object.cpp.
References bounds, array< T, alignment >::data(), BoundBox::empty, BoundBox::grow(), transform_motion_array_interpolate(), transform_motion_decompose(), BoundBox::transformed(), and use_motion().
Referenced by apply_transform(), and ~Object().
Definition at line 307 of file scene/object.cpp.
References assert, ATTR_ELEMENT_VOXEL, AttributeSet::attributes, Geometry::attributes, average(), bounds, Attribute::data_voxel_for_write(), Attribute::element, fabs(), FLT_MAX, fminf, Geometry::has_volume, Shader::has_volume, Shader::has_volume_attribute_dependency, Shader::has_volume_spatial_varying, make_float3(), ImageHandle::metadata(), ImageMetaData::nanovdb_byte_size, Node::Node(), node, one_float3(), reduce_min(), BoundBox::size(), ImageMetaData::transform_3d, transform_direction(), transform_inverse(), ImageMetaData::use_transform_3d, and BoundBox::valid().
| 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().
| bool Object::has_light_linking | ( | ) | const |
Definition at line 433 of file scene/object.cpp.
References LIGHT_LINK_MASK_ALL.
| bool Object::has_shadow_linking | ( | ) | const |
Definition at line 446 of file scene/object.cpp.
References LIGHT_LINK_MASK_ALL.
| 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().
| 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().
| 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().
| Object::NODE_SOCKET_API | ( | int | , |
| particle_index | ) |
References NODE_SOCKET_API(), and particle_index().
| Object::NODE_SOCKET_API | ( | ParticleSystem * | , |
| particle_system | ) |
References NODE_SOCKET_API().
Referenced by NODE_SOCKET_API(), and NODE_SOCKET_API().
| void Object::set_motion_tfm | ( | Transform | tfm, |
| const int | step_index ) |
Definition at line 491 of file scene/object.cpp.
References adjust_volume_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().
| void Object::tag_update | ( | Scene * | scene | ) |
Definition at line 223 of file scene/object.cpp.
References Scene::camera, Shader::emission_sampling, EMISSION_SAMPLING_NONE, LightManager::EMISSIVE_MESH_MODIFIED, ObjectManager::HOLDOUT_MODIFIED, Node::is_modified(), Scene::light_manager, Camera::need_flags_update, Node::Node(), node, Scene::object_manager, ObjectManager::OBJECT_MODIFIED, Scene::tag_shadow_catcher_modified(), ObjectManager::TRANSFORM_MODIFIED, ObjectManager::UPDATE_NONE, ObjectManager::VISIBILITY_MODIFIED, and Scene::volume_manager.
Referenced by ~Object().
| bool Object::tfm_equals | ( | Transform | tfm | ) |
Definition at line 485 of file scene/object.cpp.
References adjust_volume_tfm().
| void Object::update_motion | ( | Scene::MotionType | need_motion | ) |
Definition at line 127 of file scene/object.cpp.
References Scene::MOTION_PASS_INTERACTIVE, transform_empty(), and use_motion().
Referenced by ObjectManager::device_update_object_transform(), ObjectManager::device_update_transforms(), and ~Object().
| bool Object::usable_as_light | ( | ) | const |
Definition at line 403 of file scene/object.cpp.
References Shader::emission_sampling, EMISSION_SAMPLING_NONE, Geometry::is_mesh(), is_traceable(), Geometry::is_volume(), Node::Node(), node, PATH_RAY_VISIBILITY_DIFFUSE, PATH_RAY_VISIBILITY_GLOSSY, PATH_RAY_VISIBILITY_TRANSMIT, and PATH_RAY_VISIBILITY_VOLUME_SCATTER.
Referenced by LightManager::device_update_distribution().
| bool Object::use_motion | ( | ) | const |
Definition at line 264 of file scene/object.cpp.
Referenced by ObjectManager::apply_static_transforms(), compute_bounds(), ObjectManager::device_update_object_transform(), motion_step(), motion_time(), update_motion(), and ~Object().
| uint Object::visibility_for_tracing | ( | ) | const |
Definition at line 301 of file scene/object.cpp.
References assert, PATH_RAY_VISIBILITY_OBJECT_ALL, and SHADOW_CATCHER_OBJECT_VISIBILITY.
Referenced by ObjectManager::device_update_object_transform(), BVH2::pack_primitives(), and BVH2::refit_primitives().
|
friend |
Definition at line 139 of file scene/object.h.
References GeometryManager.
Referenced by GeometryManager.
|
friend |
Definition at line 138 of file scene/object.h.
References ObjectManager.
Referenced by ObjectManager.
|
protected |
Definition at line 136 of file scene/object.h.
Referenced by Object(), and GeometryManager::update_svm_attributes().
| vector<ParamValue> Object::attributes |
Definition at line 50 of file scene/object.h.
Referenced by ObjectManager::device_update_flags(), and VolumeManager::is_homogeneous_volume().
| NODE_DECLARE BoundBox Object::bounds |
Definition at line 44 of file scene/object.h.
Referenced by BVHBuild::add_reference_object(), apply_transform(), compute_bounds(), compute_volume_step_size(), ObjectManager::device_update_flags(), is_traceable(), Object(), and BVH2::refit_primitives().
| int Object::index |
Definition at line 83 of file scene/object.h.
Referenced by ObjectManager::device_update_object_transform(), and get_device_index().
| bool Object::intersects_volume |
Definition at line 79 of file scene/object.h.
Referenced by Object().
|
static |
Definition at line 101 of file scene/object.h.