Blender V4.3
GeometryManager Class Reference

#include <geometry.h>

Public Types

enum  : uint32_t {
  UV_PASS_NEEDED = (1 << 0) , MOTION_PASS_NEEDED = (1 << 1) , GEOMETRY_MODIFIED = (1 << 2) , OBJECT_MANAGER = (1 << 3) ,
  MESH_ADDED = (1 << 4) , MESH_REMOVED = (1 << 5) , HAIR_ADDED = (1 << 6) , HAIR_REMOVED = (1 << 7) ,
  POINT_ADDED = (1 << 12) , POINT_REMOVED = (1 << 13) , SHADER_ATTRIBUTE_MODIFIED = (1 << 8) , SHADER_DISPLACEMENT_MODIFIED = (1 << 9) ,
  GEOMETRY_ADDED = MESH_ADDED | HAIR_ADDED | POINT_ADDED , GEOMETRY_REMOVED = MESH_REMOVED | HAIR_REMOVED | POINT_REMOVED , TRANSFORM_MODIFIED = (1 << 10) , VISIBILITY_MODIFIED = (1 << 11) ,
  UPDATE_ALL = ~0u , UPDATE_NONE = 0u
}
 

Public Member Functions

 GeometryManager ()
 
 ~GeometryManager ()
 
void device_update_preprocess (Device *device, Scene *scene, Progress &progress)
 
void device_update (Device *device, DeviceScene *dscene, Scene *scene, Progress &progress)
 
void device_free (Device *device, DeviceScene *dscene, bool force_free)
 
void tag_update (Scene *scene, uint32_t flag)
 
bool need_update () const
 
void collect_statistics (const Scene *scene, RenderStats *stats)
 

Public Attributes

bool need_flags_update
 

Protected Member Functions

bool displace (Device *device, Scene *scene, Mesh *mesh, Progress &progress)
 
void create_volume_mesh (const Scene *scene, Volume *volume, Progress &progress)
 
void update_osl_globals (Device *device, Scene *scene)
 
void update_svm_attributes (Device *device, DeviceScene *dscene, Scene *scene, vector< AttributeRequestSet > &geom_attributes, vector< AttributeRequestSet > &object_attributes)
 
void geom_calc_offset (Scene *scene, BVHLayout bvh_layout)
 
void device_update_object (Device *device, DeviceScene *dscene, Scene *scene, Progress &progress)
 
void device_update_mesh (Device *device, DeviceScene *dscene, Scene *scene, Progress &progress)
 
void device_update_attributes (Device *device, DeviceScene *dscene, Scene *scene, Progress &progress)
 
void device_update_bvh (Device *device, DeviceScene *dscene, Scene *scene, Progress &progress)
 
void device_update_displacement_images (Device *device, Scene *scene, Progress &progress)
 
void device_update_volume_images (Device *device, Scene *scene, Progress &progress)
 

Detailed Description

Definition at line 197 of file scene/geometry.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : uint32_t
Enumerator
UV_PASS_NEEDED 
MOTION_PASS_NEEDED 
GEOMETRY_MODIFIED 
OBJECT_MANAGER 
MESH_ADDED 
MESH_REMOVED 
HAIR_ADDED 
HAIR_REMOVED 
POINT_ADDED 
POINT_REMOVED 
SHADER_ATTRIBUTE_MODIFIED 
SHADER_DISPLACEMENT_MODIFIED 
GEOMETRY_ADDED 
GEOMETRY_REMOVED 
TRANSFORM_MODIFIED 
VISIBILITY_MODIFIED 
UPDATE_ALL 
UPDATE_NONE 

Definition at line 201 of file scene/geometry.h.

Constructor & Destructor Documentation

◆ GeometryManager()

GeometryManager::GeometryManager ( )

Definition at line 182 of file scene/geometry.cpp.

References need_flags_update, and UPDATE_ALL.

◆ ~GeometryManager()

GeometryManager::~GeometryManager ( )

Definition at line 188 of file scene/geometry.cpp.

Member Function Documentation

◆ collect_statistics()

void GeometryManager::collect_statistics ( const Scene * scene,
RenderStats * stats )

◆ create_volume_mesh()

◆ device_free()

◆ device_update()

◆ device_update_attributes()

◆ device_update_bvh()

◆ device_update_displacement_images()

◆ device_update_mesh()

◆ device_update_object()

void GeometryManager::device_update_object ( Device * device,
DeviceScene * dscene,
Scene * scene,
Progress & progress )
protected

◆ device_update_preprocess()

void GeometryManager::device_update_preprocess ( Device * device,
Scene * scene,
Progress & progress )

Definition at line 352 of file scene/geometry.cpp.

References need_flags_update, need_update(), and timer.

Referenced by Scene::device_update().

◆ device_update_volume_images()

◆ displace()

◆ geom_calc_offset()

◆ need_update()

bool GeometryManager::need_update ( ) const

Definition at line 1112 of file scene/geometry.cpp.

References UPDATE_NONE.

Referenced by device_update(), device_update_preprocess(), and Scene::need_data_update().

◆ tag_update()

◆ update_osl_globals()

void GeometryManager::update_osl_globals ( Device * device,
Scene * scene )
protected

Definition at line 190 of file scene/geometry.cpp.

References Device::get_cpu_osl_memory().

Referenced by device_update_attributes().

◆ update_svm_attributes()

Member Data Documentation

◆ need_flags_update

bool GeometryManager::need_flags_update

Definition at line 230 of file scene/geometry.h.

Referenced by device_update_preprocess(), and GeometryManager().


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