|
Blender V4.3
|
#include "scene/mesh.h"#include "scene/scene.h"#include "util/algorithm.h"#include "util/array.h"#include "util/map.h"#include "util/path.h"#include "util/set.h"#include "util/transform.h"#include "util/types.h"#include "util/vector.h"#include "BKE_image.hh"#include "BKE_mesh.hh"Go to the source code of this file.
Classes | |
| struct | BObjectInfo |
| class | EdgeMap |
Typedefs | |
| typedef BL::ShaderNodeAttribute::attribute_type_enum | BlenderAttributeType |
Functions | |
| BlenderAttributeType | blender_attribute_name_split_type (ustring name, string *r_real_name) |
| void | python_thread_state_save (void **python_thread_state) |
| void | python_thread_state_restore (void **python_thread_state) |
| static bool | mesh_use_corner_normals (BL::Mesh &mesh, Mesh::SubdivisionType subdivision_type) |
| static BL::Mesh | object_to_mesh (BL::BlendData &, BObjectInfo &b_ob_info, BL::Depsgraph &, bool, Mesh::SubdivisionType subdivision_type) |
| static void | free_object_to_mesh (BL::BlendData &, BObjectInfo &b_ob_info, BL::Mesh &mesh) |
| static void | colorramp_to_array (BL::ColorRamp &ramp, array< float3 > &ramp_color, array< float > &ramp_alpha, int size) |
| static void | curvemap_minmax_curve (BL::CurveMap &curve, float *min_x, float *max_x) |
| static void | curvemapping_minmax (BL::CurveMapping &cumap, int num_curves, float *min_x, float *max_x) |
| static void | curvemapping_to_array (BL::CurveMapping &cumap, array< float > &data, int size) |
| static void | curvemapping_float_to_array (BL::CurveMapping &cumap, array< float > &data, int size) |
| static void | curvemapping_color_to_array (BL::CurveMapping &cumap, array< float3 > &data, int size, bool rgb_curve) |
| static bool | BKE_object_is_modified (BL::Object &self, BL::Scene &scene, bool preview) |
| static bool | BKE_object_is_deform_modified (BObjectInfo &self, BL::Scene &scene, bool preview) |
| static int | render_resolution_x (BL::RenderSettings &b_render) |
| static int | render_resolution_y (BL::RenderSettings &b_render) |
| static string | image_user_file_path (BL::BlendData &data, BL::ImageUser &iuser, BL::Image &ima, int cfra) |
| static int | image_user_frame_number (BL::ImageUser &iuser, BL::Image &ima, int cfra) |
| static unsigned char * | image_get_pixels_for_frame (BL::Image &image, int frame, int tile) |
| static float * | image_get_float_pixels_for_frame (BL::Image &image, int frame, int tile) |
| static bool | image_is_builtin (BL::Image &ima, BL::RenderEngine &engine) |
| static void | render_add_metadata (BL::RenderResult &b_rr, string name, string value) |
| static Transform | get_transform (const BL::Array< float, 16 > &array) |
| static float2 | get_float2 (const BL::Array< float, 2 > &array) |
| static float3 | get_float3 (const BL::Array< float, 2 > &array) |
| static float3 | get_float3 (const BL::Array< float, 3 > &array) |
| static float3 | get_float3 (const BL::Array< float, 4 > &array) |
| static float4 | get_float4 (const BL::Array< float, 4 > &array) |
| static int3 | get_int3 (const BL::Array< int, 3 > &array) |
| static int4 | get_int4 (const BL::Array< int, 4 > &array) |
| static float3 | get_float3 (PointerRNA &ptr, const char *name) |
| static void | set_float3 (PointerRNA &ptr, const char *name, float3 value) |
| static float4 | get_float4 (PointerRNA &ptr, const char *name) |
| static void | set_float4 (PointerRNA &ptr, const char *name, float4 value) |
| static bool | get_boolean (PointerRNA &ptr, const char *name) |
| static void | set_boolean (PointerRNA &ptr, const char *name, bool value) |
| static float | get_float (PointerRNA &ptr, const char *name) |
| static void | set_float (PointerRNA &ptr, const char *name, float value) |
| static int | get_int (PointerRNA &ptr, const char *name) |
| static void | set_int (PointerRNA &ptr, const char *name, int value) |
| static int | get_enum (PointerRNA &ptr, const char *name, int num_values=-1, int default_value=-1) |
| static string | get_enum_identifier (PointerRNA &ptr, const char *name) |
| static void | set_enum (PointerRNA &ptr, const char *name, int value) |
| static void | set_enum (PointerRNA &ptr, const char *name, const string &identifier) |
| static string | get_string (PointerRNA &ptr, const char *name) |
| static void | set_string (PointerRNA &ptr, const char *name, const string &value) |
| static string | blender_absolute_path (BL::BlendData &b_data, BL::ID &b_id, const string &path) |
| static string | get_text_datablock_content (const PointerRNA &ptr) |
| static void | mesh_texture_space (const ::Mesh &b_mesh, float3 &loc, float3 &size) |
| static uint | object_motion_steps (BL::Object &b_parent, BL::Object &b_ob, const int max_steps=INT_MAX) |
| static bool | object_use_deform_motion (BL::Object &b_parent, BL::Object &b_ob) |
| static BL::FluidDomainSettings | object_fluid_gas_domain_find (BL::Object &b_ob) |
| static BL::MeshSequenceCacheModifier | object_mesh_cache_find (BL::Object &b_ob, bool *has_subdivision_modifier) |
| static Mesh::SubdivisionType | object_subdivision_type (BL::Object &b_ob, bool preview, bool experimental) |
| static uint | object_ray_visibility (BL::Object &b_ob) |
| static bool | object_need_motion_attribute (BObjectInfo &b_ob_info, Scene *scene) |
| typedef BL::ShaderNodeAttribute::attribute_type_enum BlenderAttributeType |
Definition at line 47 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 277 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 272 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 521 of file cycles/blender/util.h.
References blender_absolute_path(), dirname(), path_dirname(), and path_join().
Referenced by add_node(), blender_absolute_path(), and set_default_value().
| BlenderAttributeType blender_attribute_name_split_type | ( | ustring | name, |
| string * | r_real_name ) |
Definition at line 131 of file blender/shader.cpp.
References instancer_attr_prefix(), object_attr_prefix(), and view_layer_attr_prefix().
|
inlinestatic |
Definition at line 149 of file cycles/blender/util.h.
References make_float3(), and array< T, alignment >::resize().
Referenced by add_node().
|
inlinestatic |
Definition at line 167 of file cycles/blender/util.h.
Referenced by curvemapping_minmax().
|
inlinestatic |
Definition at line 222 of file cycles/blender/util.h.
References curvemapping_minmax(), float, and make_float3().
Referenced by add_node().
|
inlinestatic |
Definition at line 199 of file cycles/blender/util.h.
References curvemapping_minmax(), float, min, and range.
Referenced by add_node().
|
inlinestatic |
Definition at line 173 of file cycles/blender/util.h.
References curvemap_minmax_curve(), and FLT_MAX.
Referenced by add_node(), curvemapping_color_to_array(), and curvemapping_float_to_array().
|
inlinestatic |
Definition at line 187 of file cycles/blender/util.h.
References float.
Referenced by blender_camera_from_view(), and BlenderSync::sync_camera().
|
inlinestatic |
Definition at line 135 of file cycles/blender/util.h.
References data, PointerRNA::data, BObjectInfo::is_real_object_data(), ptr, and BObjectInfo::real_object.
|
inlinestatic |
Definition at line 431 of file cycles/blender/util.h.
References ptr, RNA_boolean_get(), and true.
Referenced by adjust_device_info_from_preferences(), blender_device_info(), BlenderObjectCulling::BlenderObjectCulling(), BlenderViewportParameters::BlenderViewportParameters(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), BlenderSync::get_denoise_params(), BlenderSync::get_session_pause(), BlenderObjectCulling::init_object(), object_motion_steps(), object_need_motion_attribute(), object_use_deform_motion(), set_default_value(), and BlenderSync::sync_integrator().
|
inlinestatic |
Definition at line 468 of file cycles/blender/util.h.
References ptr, and RNA_enum_get().
Referenced by add_node(), adjust_device_info(), adjust_device_info_from_preferences(), blender_device_info(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), BlenderSync::get_denoise_params(), get_emission_sampling(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), get_volume_interpolation(), get_volume_sampling(), BlenderSync::sync_camera(), BlenderSync::sync_integrator(), and BlenderSync::sync_view_layer().
|
inlinestatic |
Definition at line 481 of file cycles/blender/util.h.
References NULL, ptr, RNA_property_enum_get(), RNA_property_enum_identifier(), and RNA_struct_find_property().
Referenced by add_node(), BlenderViewportParameters::BlenderViewportParameters(), and BlenderImageLoader::load_metadata().
|
inlinestatic |
Definition at line 441 of file cycles/blender/util.h.
References ptr, and RNA_float_get().
Referenced by BlenderObjectCulling::BlenderObjectCulling(), BlenderSync::get_session_params(), set_default_value(), and BlenderSync::sync_integrator().
Definition at line 372 of file cycles/blender/util.h.
References make_float2().
Referenced by blender_camera_from_view().
Definition at line 377 of file cycles/blender/util.h.
References make_float3().
Referenced by add_node(), get_tex_mapping(), and set_default_value().
Definition at line 382 of file cycles/blender/util.h.
References make_float3().
Definition at line 387 of file cycles/blender/util.h.
References make_float3().
|
inlinestatic |
Definition at line 407 of file cycles/blender/util.h.
References ptr, RNA_float_get_array(), and float3::x.
|
inlinestatic |
Definition at line 392 of file cycles/blender/util.h.
References make_float4().
Referenced by set_default_value().
|
inlinestatic |
Definition at line 419 of file cycles/blender/util.h.
References ptr, and RNA_float_get_array().
|
inlinestatic |
Definition at line 451 of file cycles/blender/util.h.
References ptr, and RNA_int_get().
Referenced by BlenderSync::get_denoise_params(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), object_motion_steps(), set_default_value(), and BlenderSync::sync_integrator().
Definition at line 397 of file cycles/blender/util.h.
References make_int3().
Referenced by BlenderSmokeLoader::load_metadata(), and BlenderSmokeLoader::load_pixels().
Definition at line 402 of file cycles/blender/util.h.
References make_int4().
|
inlinestatic |
Definition at line 502 of file cycles/blender/util.h.
References MEM_freeN(), NULL, ptr, RNA_string_get_alloc(), and str.
Referenced by blender_device_info(), and set_default_value().
|
inlinestatic |
Definition at line 540 of file cycles/blender/util.h.
References PointerRNA::data, NULL, and ptr.
Referenced by add_node().
Definition at line 359 of file cycles/blender/util.h.
References projection_to_transform(), and projection_transpose().
Referenced by add_node(), blender_camera_focal_distance(), blender_camera_from_view(), create_subd_mesh(), ObtainCacheParticleData(), BlenderSync::sync_camera(), and BlenderSync::sync_view().
|
inlinestatic |
Definition at line 330 of file cycles/blender/util.h.
References BKE_image_get_float_pixels_for_frame(), and tile.
Referenced by BlenderImageLoader::load_pixels().
|
inlinestatic |
Definition at line 325 of file cycles/blender/util.h.
References BKE_image_get_pixels_for_frame(), and tile.
Referenced by BlenderImageLoader::load_pixels().
|
inlinestatic |
|
inlinestatic |
Definition at line 299 of file cycles/blender/util.h.
References BKE_image_user_file_path_ex(), and BKE_image_user_frame_calc().
Referenced by add_node().
|
inlinestatic |
Definition at line 318 of file cycles/blender/util.h.
References BKE_image_user_frame_calc().
Referenced by add_node().
Definition at line 557 of file cycles/blender/util.h.
References BKE_mesh_texspace_get(), and make_float3().
Referenced by BlenderSmokeLoader::BlenderSmokeLoader(), create_mesh(), and MikkMeshWrapper< is_subd >::MikkMeshWrapper().
|
static |
Definition at line 53 of file cycles/blender/util.h.
References blender::bke::Corner, and Mesh::SUBDIVISION_NONE.
Referenced by object_to_mesh().
|
inlinestatic |
Definition at line 628 of file cycles/blender/util.h.
References PointerRNA_NULL.
Referenced by determine_geom_type(), and sync_smoke_volume().
|
inlinestatic |
Definition at line 645 of file cycles/blender/util.h.
References PointerRNA_NULL.
|
inlinestatic |
Definition at line 579 of file cycles/blender/util.h.
References get_boolean(), get_int(), max, min, RNA_pointer_get(), and steps.
Referenced by blender_camera_from_object().
|
inlinestatic |
Definition at line 720 of file cycles/blender/util.h.
References get_boolean(), Scene::MOTION_BLUR, Scene::MOTION_NONE, BObjectInfo::real_object, and RNA_pointer_get().
Referenced by sync_smoke_volume(), and sync_volume_object().
|
inlinestatic |
Definition at line 701 of file cycles/blender/util.h.
References flag, PATH_RAY_CAMERA, PATH_RAY_DIFFUSE, PATH_RAY_GLOSSY, PATH_RAY_SHADOW, PATH_RAY_TRANSMIT, and PATH_RAY_VOLUME_SCATTER.
|
inlinestatic |
Definition at line 674 of file cycles/blender/util.h.
References PointerRNA::data, mod(), RNA_boolean_get(), RNA_pointer_get(), Mesh::SUBDIVISION_CATMULL_CLARK, Mesh::SUBDIVISION_LINEAR, and Mesh::SUBDIVISION_NONE.
Referenced by BlenderSync::sync_recalc().
|
inlinestatic |
Definition at line 60 of file cycles/blender/util.h.
References depsgraph, BObjectInfo::is_real_object_data(), mesh, mesh_use_corner_normals(), BObjectInfo::object_data, PointerRNA_NULL, BObjectInfo::real_object, and Mesh::SUBDIVISION_NONE.
|
inlinestatic |
Definition at line 612 of file cycles/blender/util.h.
References get_boolean(), and RNA_pointer_get().
| void python_thread_state_restore | ( | void ** | python_thread_state | ) |
Definition at line 96 of file python.cpp.
References NULL.
Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
| void python_thread_state_save | ( | void ** | python_thread_state | ) |
Definition at line 91 of file python.cpp.
Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
|
inlinestatic |
Definition at line 352 of file cycles/blender/util.h.
Referenced by add_cryptomatte_layer().
|
inlinestatic |
Definition at line 289 of file cycles/blender/util.h.
Referenced by blender_camera_init(), and BlenderSession::reset_session().
|
inlinestatic |
Definition at line 294 of file cycles/blender/util.h.
Referenced by blender_camera_init(), and BlenderSession::reset_session().
|
inlinestatic |
Definition at line 436 of file cycles/blender/util.h.
References ptr, and RNA_boolean_set().
|
inlinestatic |
Definition at line 497 of file cycles/blender/util.h.
References NULL, ptr, and RNA_enum_set_identifier().
|
inlinestatic |
Definition at line 492 of file cycles/blender/util.h.
References ptr, and RNA_enum_set().
|
inlinestatic |
Definition at line 446 of file cycles/blender/util.h.
References ptr, and RNA_float_set().
|
inlinestatic |
Definition at line 414 of file cycles/blender/util.h.
References ptr, and RNA_float_set_array().
|
inlinestatic |
Definition at line 426 of file cycles/blender/util.h.
References ptr, and RNA_float_set_array().
|
inlinestatic |
Definition at line 456 of file cycles/blender/util.h.
References ptr, and RNA_int_set().
|
inlinestatic |
Definition at line 514 of file cycles/blender/util.h.
References ptr, and RNA_string_set().