Blender V5.3
blender::draw::ObjectRef Class Reference

#include <draw_handle.hh>

Inherited by blender::eevee::ObjectHandle.

Public Member Functions

 ObjectRef (Object *ob, Object *dupli_parent=nullptr, DupliObject *dupli_object=nullptr)
 ObjectRef (Object &ob, Object *dupli_parent, const VectorList< DupliObject * > &duplis)
 ObjectRef (const ObjectRef &ob_ref, uint sub_key)
bool is_dupli () const
bool is_active (const Object *active_object) const
bool is_range () const
int instances_count () const
float4x4 object_to_world (int instance_index) const
float4x4 object_to_world () const
float random (int instance_index) const
bool find_rgba_attribute (const char *name, bool use_dupli, int instance_index, float r_value[4]) const
bool find_rgba_attribute (const GPUUniformAttr &attr, int instance_index, float r_value[4]) const
uint64_t get_light_set_membership () const
uint8_t get_receiver_light_set () const
uint64_t get_shadow_set_membership () const
uint8_t get_blocker_shadow_set () const
uint recalc_flags (uint64_t last_update) const
float4x4 particles_matrix () const
int preview_instance_index () const
const bke::GeometrySet * preview_base_geometry () const
bool parent_is_in_edit_paint_mode (const Object *active_object, eObjectMode ob_mode, eContextObjectMode ctx_mode) const

Public Attributes

Object *const object

Friends

class Manager
class ObjectKey

Detailed Description

Definition at line 222 of file draw_handle.hh.

Constructor & Destructor Documentation

◆ ObjectRef() [1/3]

blender::draw::ObjectRef::ObjectRef ( Object * ob,
Object * dupli_parent = nullptr,
DupliObject * dupli_object = nullptr )
explicit

◆ ObjectRef() [2/3]

blender::draw::ObjectRef::ObjectRef ( Object & ob,
Object * dupli_parent,
const VectorList< DupliObject * > & duplis )
explicit

Definition at line 665 of file draw_context.cc.

References object.

◆ ObjectRef() [3/3]

blender::draw::ObjectRef::ObjectRef ( const ObjectRef & ob_ref,
uint sub_key )
inlineexplicit

Definition at line 250 of file draw_handle.hh.

References ObjectRef().

Member Function Documentation

◆ find_rgba_attribute() [1/2]

bool blender::draw::ObjectRef::find_rgba_attribute ( const char * name,
bool use_dupli,
int instance_index,
float r_value[4] ) const
inline

◆ find_rgba_attribute() [2/2]

bool blender::draw::ObjectRef::find_rgba_attribute ( const GPUUniformAttr & attr,
int instance_index,
float r_value[4] ) const
inline

◆ get_blocker_shadow_set()

uint8_t blender::draw::ObjectRef::get_blocker_shadow_set ( ) const
inline

◆ get_light_set_membership()

uint64_t blender::draw::ObjectRef::get_light_set_membership ( ) const
inline

◆ get_receiver_light_set()

uint8_t blender::draw::ObjectRef::get_receiver_light_set ( ) const
inline

◆ get_shadow_set_membership()

uint64_t blender::draw::ObjectRef::get_shadow_set_membership ( ) const
inline

◆ instances_count()

◆ is_active()

◆ is_dupli()

◆ is_range()

◆ object_to_world() [1/2]

float4x4 blender::draw::ObjectRef::object_to_world ( ) const
inline

Definition at line 290 of file draw_handle.hh.

References blender::BLI_assert(), is_range(), and object_to_world().

◆ object_to_world() [2/2]

◆ parent_is_in_edit_paint_mode()

◆ particles_matrix()

◆ preview_base_geometry()

const bke::GeometrySet * blender::draw::ObjectRef::preview_base_geometry ( ) const
inline

Definition at line 427 of file draw_handle.hh.

◆ preview_instance_index()

int blender::draw::ObjectRef::preview_instance_index ( ) const
inline

Definition at line 419 of file draw_handle.hh.

◆ random()

float blender::draw::ObjectRef::random ( int instance_index) const
inline

◆ recalc_flags()

uint blender::draw::ObjectRef::recalc_flags ( uint64_t last_update) const
inline

◆ Manager

friend class Manager
friend

Definition at line 223 of file draw_handle.hh.

References Manager.

Referenced by Manager.

◆ ObjectKey

friend class ObjectKey
friend

Definition at line 224 of file draw_handle.hh.

References ObjectKey.

Referenced by ObjectKey.

Member Data Documentation

◆ object

Object* const blender::draw::ObjectRef::object

Definition at line 244 of file draw_handle.hh.

Referenced by blender::draw::detail::compute_pass_setup(), blender::draw::overlay::Armatures::create_draw_context(), blender::draw::overlay::Sculpts::curves_sync(), blender::draw::detail::draw_subpass_setup(), blender::workbench::Instance::draw_to_mesh_pass(), blender::drw_engines_cache_populate(), blender::DRW_render_object_iter(), blender::draw::overlay::Curves::edit_object_sync_legacy(), blender::draw::Manager::extract_all_object_attributes(), blender::draw::overlay::FlatObjectRef::flat_axis_index_get(), blender::eevee::foreach_hair_particle(), blender::workbench::Instance::get_material(), blender::draw::hair_sub_pass_setup_implementation(), blender::workbench::Instance::hair_sync(), blender::draw::overlay::is_from_dupli_or_set(), blender::eevee::MaterialModule::material_array_get(), blender::eevee::MaterialModule::material_get(), blender::draw::overlay::Sculpts::mesh_sync(), blender::workbench::Instance::mesh_sync(), blender::draw::external::Prepass::object_sync(), blender::draw::gpencil::Instance::object_sync(), blender::draw::overlay::Instance::object_sync(), blender::eevee::Instance::object_sync(), blender::workbench::ShadowPass::object_sync(), blender::draw::overlay::Wireframe::object_sync_ex(), blender::workbench::VolumePass::object_sync_modifier(), blender::workbench::VolumePass::object_sync_volume(), blender::draw::overlay::Resources::object_wire_color(), blender::draw::overlay::Resources::object_wire_theme_id(), blender::draw::ObjectKey::ObjectKey(), ObjectRef(), ObjectRef(), blender::draw::external::Prepass::particle_sync(), blender::draw::overlay::Prepass::particle_sync(), blender::draw::pointcloud_sub_pass_setup_implementation(), blender::workbench::Instance::pointcloud_sync(), random(), recalc_flags(), blender::draw::gpencil::render_frame(), blender::draw::Manager::resource_handle(), blender::draw::Manager::resource_handle(), blender::draw::Manager::resource_handle_for_psys(), blender::draw::external::Prepass::sculpt_sync(), blender::draw::overlay::Prepass::sculpt_sync(), blender::workbench::Instance::sculpt_sync(), blender::draw::select::SelectMap::select_id(), blender::eevee::VelocityModule::step_object_sync(), blender::eevee::step_object_sync_render(), ObjectInfos::sync(), blender::eevee::SyncModule::sync_curves(), blender::eevee::LightModule::sync_light(), blender::eevee::SyncModule::sync_mesh(), blender::eevee::Cryptomatte::sync_object(), blender::eevee::ShadowModule::sync_object(), blender::eevee::SyncModule::sync_pointcloud(), blender::eevee::LightProbeModule::sync_probe(), blender::eevee::SyncModule::sync_sculpt(), blender::eevee::SyncModule::sync_volume(), blender::DupliCacheManager::try_add(), blender::draw::Manager::unique_handle_for_sculpt(), blender::draw::Manager::update_handle_bounds(), and blender::eevee::VolumeObjectBounds::VolumeObjectBounds().


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