|
Blender V5.3
|
#include "BKE_colorband.hh"#include "BKE_colortools.hh"#include "BKE_main.hh"#include "DNA_fluid_types.h"#include "DNA_text_types.h"#include "RE_engine.h"#include "RNA_access.hh"#include "scene/mesh.h"#include "scene/scene.h"#include "util/algorithm.h"#include "util/array.h"#include "util/path.h"#include "util/set.h"#include "util/transform.h"#include "util/types.h"#include "BLI_listbase.hh"#include "DNA_mesh_types.h"#include "DNA_modifier_types.h"#include "DNA_object_types.h"#include "DNA_view3d_types.h"#include "BKE_global.hh"#include "BKE_image.hh"#include "BKE_lib_id.hh"#include "BKE_mesh.h"#include "BKE_mesh_types.hh"#include "BKE_mesh_wrapper.hh"#include "BKE_object.hh"Go to the source code of this file.
Classes | |
| struct | BObjectInfo |
| class | EdgeMap |
Typedefs | |
| using | ID_Type = blender::ID_Type |
Functions | |
| static blender::ID * | object_get_data (const blender::Object &b_ob, const bool use_adaptive_subdivision) |
| static blender::Mesh * | object_copy_mesh_data (const BObjectInfo &b_ob_info) |
| int | blender_attribute_name_split_type (ustring name, string *r_real_name) |
| static blender::Mesh * | object_to_mesh (BObjectInfo &b_ob_info) |
| static void | free_object_to_mesh (BObjectInfo &b_ob_info, blender::Mesh &mesh) |
| static void | colorramp_to_array (const blender::ColorBand &ramp, array< packed_float3 > &ramp_color, array< float > &ramp_alpha, const int size) |
| static void | curvemap_minmax_curve (const blender::CurveMap &curve, float *min_x, float *max_x) |
| static void | curvemapping_minmax (const blender::CurveMapping &cumap, const int num_curves, float *min_x, float *max_x) |
| static void | curvemapping_to_array (const blender::CurveMapping &cumap, array< float > &data, const int size) |
| static void | curvemapping_float_to_array (const blender::CurveMapping &cumap, array< float > &data, const int size) |
| static void | curvemapping_color_to_array (const blender::CurveMapping &cumap, array< packed_float3 > &data, const int size, bool rgb_curve) |
| static bool | BKE_object_is_deform_modified (BObjectInfo &self, blender::Scene &scene, bool preview) |
| static int | render_resolution_x (const blender::RenderData &b_render) |
| static int | render_resolution_y (const blender::RenderData &b_render) |
| static string | image_user_file_path (blender::Main &data, blender::ImageUser &iuser, blender::Image &ima, const int cfra) |
| static int | image_user_frame_number (blender::ImageUser &iuser, blender::Image &ima, const int cfra) |
| static bool | image_is_builtin (blender::Image &ima, blender::RenderEngine &engine) |
| static void | render_add_metadata (blender::RenderResult &b_rr, string name, string value) |
| static Transform | get_transform (const blender::float4x4 &matrix) |
| static float2 | get_float2 (blender::PointerRNA &ptr, const char *name) |
| static void | set_float2 (blender::PointerRNA &ptr, const char *name, const float2 value) |
| static float3 | get_float3 (blender::PointerRNA &ptr, const char *name) |
| static void | set_float3 (blender::PointerRNA &ptr, const char *name, const float3 value) |
| static float4 | get_float4 (blender::PointerRNA &ptr, const char *name) |
| static void | set_float4 (blender::PointerRNA &ptr, const char *name, const float4 value) |
| static bool | get_boolean (blender::PointerRNA &ptr, const char *name) |
| static void | set_boolean (blender::PointerRNA &ptr, const char *name, bool value) |
| static float | get_float (blender::PointerRNA &ptr, const char *name) |
| static void | set_float (blender::PointerRNA &ptr, const char *name, const float value) |
| static int | get_int (blender::PointerRNA &ptr, const char *name) |
| static void | set_int (blender::PointerRNA &ptr, const char *name, const int value) |
| static int | get_enum (blender::PointerRNA &ptr, const char *name, int num_values=-1, int default_value=-1) |
| static string | get_enum_identifier (blender::PointerRNA &ptr, const char *name) |
| static void | set_enum (blender::PointerRNA &ptr, const char *name, const int value) |
| static void | set_enum (blender::PointerRNA &ptr, const char *name, const string &identifier) |
| static string | get_string (blender::PointerRNA &ptr, const char *name) |
| static void | set_string (blender::PointerRNA &ptr, const char *name, const string &value) |
| static string | blender_absolute_path (blender::Main &b_data, blender::ID *b_id, const string &path) |
| static string | get_text_datablock_content (const blender::ID *id) |
| static void | mesh_texture_space (const blender::Mesh &b_mesh, float3 &loc, float3 &size) |
| static uint | object_motion_steps (blender::Object &b_parent, blender::Object &b_ob, const int max_steps=INT_MAX) |
| static bool | object_use_deform_motion (blender::Object &b_parent, blender::Object &b_ob) |
| static blender::FluidDomainSettings * | object_fluid_gas_domain_find (blender::Object &b_ob) |
| static blender::SubsurfModifierData * | object_subdivision_modifier (blender::Object &b_ob, const bool preview) |
| static Mesh::SubdivisionType | object_subdivision_type (blender::Object &b_ob, const bool preview, const bool use_adaptive_subdivision) |
| static void | object_subdivision_to_mesh (blender::Object &b_ob, Mesh &mesh, const bool preview, const bool use_adaptive_subdivision) |
| static PathRayVisibility | object_ray_visibility (blender::Object &b_ob) |
| static bool | object_need_motion_attribute (BObjectInfo &b_ob_info, Scene *scene) |
| static bool | region_view3d_navigating_or_transforming (const blender::RegionView3D *b_rv3d) |
| using ID_Type = blender::ID_Type |
Definition at line 43 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 279 of file cycles/blender/util.h.
References BKE_object_is_deform_modified(), blender::BKE_object_is_deform_modified(), blender::eModifierMode_Realtime, blender::eModifierMode_Render, BObjectInfo::is_real_object_data(), and BObjectInfo::real_object.
Referenced by BKE_object_is_deform_modified().
|
inlinestatic |
Definition at line 488 of file cycles/blender/util.h.
References blender_absolute_path(), dirname(), blender::Library::filepath, blender::Main::filepath, blender::Library::id, blender::ID::lib, path_dirname(), and path_join().
Referenced by blender_absolute_path().
| int blender_attribute_name_split_type | ( | ustring | name, |
| string * | r_real_name ) |
Definition at line 145 of file blender/shader.cpp.
References blender_attribute_name_split_type(), instancer_attr_prefix(), object_attr_prefix(), blender::SHD_ATTRIBUTE_GEOMETRY, blender::SHD_ATTRIBUTE_INSTANCER, blender::SHD_ATTRIBUTE_OBJECT, blender::SHD_ATTRIBUTE_VIEW_LAYER, and view_layer_attr_prefix().
Referenced by blender_attribute_name_split_type().
|
inlinestatic |
Definition at line 131 of file cycles/blender/util.h.
References make_float3(), array< T, alignment >::resize(), and size().
|
inlinestatic |
Definition at line 149 of file cycles/blender/util.h.
References blender::CurveMap::curve, curvemap_minmax_curve(), blender::Span< T >::first(), blender::Span< T >::last(), max, min, and blender::CurveMap::totpoint.
Referenced by curvemap_minmax_curve(), and curvemapping_minmax().
|
inlinestatic |
Definition at line 215 of file cycles/blender/util.h.
References blender::CurveMapping::cm, curvemapping_minmax(), float, make_float3(), size(), and blender::CurveMap::table.
|
inlinestatic |
Definition at line 189 of file cycles/blender/util.h.
References blender::CurveMapping::cm, curvemapping_minmax(), float, max, min, size(), and blender::CurveMap::table.
|
inlinestatic |
Definition at line 158 of file cycles/blender/util.h.
References blender::CurveMapping::cm, curvemap_minmax_curve(), and FLT_MAX.
Referenced by curvemapping_color_to_array(), and curvemapping_float_to_array().
|
inlinestatic |
Definition at line 172 of file cycles/blender/util.h.
References blender::CurveMapping::cm, float, size(), and blender::CurveMap::table.
|
inlinestatic |
Definition at line 119 of file cycles/blender/util.h.
References free_object_to_mesh(), blender::Mesh::id, BObjectInfo::is_real_object_data(), object_get_data(), BObjectInfo::real_object, and BObjectInfo::use_adaptive_subdivision.
Referenced by free_object_to_mesh().
|
inlinestatic |
Definition at line 405 of file cycles/blender/util.h.
Referenced by object_motion_steps(), object_need_motion_attribute(), and object_use_deform_motion().
|
inlinestatic |
Definition at line 442 of file cycles/blender/util.h.
References assert.
|
inlinestatic |
Definition at line 455 of file cycles/blender/util.h.
References get_enum_identifier().
Referenced by get_enum_identifier().
|
inlinestatic |
Definition at line 415 of file cycles/blender/util.h.
References get_float().
Referenced by get_float().
|
inlinestatic |
Definition at line 369 of file cycles/blender/util.h.
References get_float2(), and float2::x.
Referenced by get_float2().
|
inlinestatic |
Definition at line 381 of file cycles/blender/util.h.
References get_float3(), and float3::x.
Referenced by get_float3().
|
inlinestatic |
Definition at line 393 of file cycles/blender/util.h.
References get_float4(), and float4::x.
Referenced by get_float4().
|
inlinestatic |
Definition at line 425 of file cycles/blender/util.h.
References get_int().
Referenced by get_int(), and object_motion_steps().
|
inlinestatic |
Definition at line 476 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 508 of file cycles/blender/util.h.
References blender::ID_TXT, and blender::TextLine::line.
|
inlinestatic |
Definition at line 348 of file cycles/blender/util.h.
References blender::MatBase< T, NumCol, NumRow, Alignment >::base_ptr(), and make_transform().
|
inlinestatic |
Definition at line 323 of file cycles/blender/util.h.
References blender::RenderEngine::flag, blender::IMA_GEN_TILE, blender::IMA_SRC_GENERATED, blender::IMA_SRC_MOVIE, blender::IMA_SRC_SEQUENCE, blender::IMA_SRC_TILED, blender::RE_ENGINE_PREVIEW, and tile.
|
inlinestatic |
Definition at line 303 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 315 of file cycles/blender/util.h.
References blender::ImageUser::framenr.
|
inlinestatic |
Definition at line 529 of file cycles/blender/util.h.
References make_float3(), mesh_texture_space(), and size().
Referenced by mesh_texture_space(), and sync_smoke_volume().
|
inlinestatic |
Definition at line 80 of file cycles/blender/util.h.
References object_copy_mesh_data(), BObjectInfo::real_object, and BObjectInfo::use_adaptive_subdivision.
Referenced by object_copy_mesh_data(), and object_to_mesh().
|
inlinestatic |
Definition at line 605 of file cycles/blender/util.h.
References blender::eModifierType_Fluid, blender::FLUID_DOMAIN_TYPE_GAS, blender::MOD_FLUID_TYPE_DOMAIN, blender::Object::modifiers, and blender::ModifierData::type.
|
inlinestatic |
Definition at line 45 of file cycles/blender/util.h.
References blender::Object::data, blender::Mesh::id, blender::OB_MESH, and blender::Object::type.
Referenced by free_object_to_mesh(), and BObjectInfo::is_real_object_data().
|
inlinestatic |
Definition at line 552 of file cycles/blender/util.h.
References get_boolean(), get_int(), blender::Object::id, INT_MAX, max, and min.
|
inlinestatic |
Definition at line 753 of file cycles/blender/util.h.
References get_boolean(), blender::Object::id, Scene::MOTION_BLUR, Scene::MOTION_NONE, Scene::need_motion(), object_need_motion_attribute(), and BObjectInfo::real_object.
Referenced by object_need_motion_attribute(), sync_smoke_volume(), and sync_volume_object().
|
inlinestatic |
Definition at line 719 of file cycles/blender/util.h.
References blender::OB_HIDE_CAMERA, blender::OB_HIDE_DIFFUSE, blender::OB_HIDE_GLOSSY, blender::OB_HIDE_RAYCAST, blender::OB_HIDE_SHADOW, blender::OB_HIDE_TRANSMISSION, blender::OB_HIDE_VOLUME_SCATTER, object_ray_visibility(), PATH_RAY_VISIBILITY_CAMERA, PATH_RAY_VISIBILITY_DIFFUSE, PATH_RAY_VISIBILITY_GLOSSY, PATH_RAY_VISIBILITY_NONE, PATH_RAY_VISIBILITY_RAYCAST, PATH_RAY_VISIBILITY_SHADOW, PATH_RAY_VISIBILITY_TRANSMIT, PATH_RAY_VISIBILITY_VOLUME_SCATTER, and blender::Object::visibility_flag.
Referenced by object_ray_visibility().
|
static |
Definition at line 622 of file cycles/blender/util.h.
References blender::eModifierMode_Realtime, blender::eModifierMode_Render, blender::eModifierType_Subsurf, blender::eSubsurfModifierFlag_UseAdaptiveSubdivision, blender::SubsurfModifierData::flags, blender::ModifierData::mode, blender::Object::modifiers, object_subdivision_modifier(), and blender::ModifierData::type.
Referenced by object_subdivision_modifier(), object_subdivision_to_mesh(), and object_subdivision_type().
|
inlinestatic |
Definition at line 664 of file cycles/blender/util.h.
References blender::SubsurfModifierData::boundary_smooth, object_subdivision_modifier(), object_subdivision_to_mesh(), Mesh::SUBDIVISION_BOUNDARY_EDGE_AND_CORNER, Mesh::SUBDIVISION_BOUNDARY_EDGE_ONLY, Mesh::SUBDIVISION_CATMULL_CLARK, Mesh::SUBDIVISION_FVAR_LINEAR_ALL, Mesh::SUBDIVISION_FVAR_LINEAR_BOUNDARIES, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_ONLY, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_PLUS1, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_PLUS2, Mesh::SUBDIVISION_FVAR_LINEAR_NONE, Mesh::SUBDIVISION_LINEAR, Mesh::SUBDIVISION_NONE, blender::SubsurfModifierData::subdivType, blender::SUBSURF_BOUNDARY_SMOOTH_ALL, blender::SUBSURF_BOUNDARY_SMOOTH_PRESERVE_CORNERS, blender::SUBSURF_TYPE_CATMULL_CLARK, blender::SUBSURF_UV_SMOOTH_ALL, blender::SUBSURF_UV_SMOOTH_NONE, blender::SUBSURF_UV_SMOOTH_PRESERVE_BOUNDARIES, blender::SUBSURF_UV_SMOOTH_PRESERVE_CORNERS, blender::SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_AND_JUNCTIONS, blender::SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE, and blender::SubsurfModifierData::uv_smooth.
Referenced by object_subdivision_to_mesh().
|
inlinestatic |
Definition at line 644 of file cycles/blender/util.h.
References object_subdivision_modifier(), object_subdivision_type(), Mesh::SUBDIVISION_CATMULL_CLARK, Mesh::SUBDIVISION_LINEAR, Mesh::SUBDIVISION_NONE, blender::SubsurfModifierData::subdivType, and blender::SUBSURF_TYPE_CATMULL_CLARK.
Referenced by object_subdivision_type().
|
inlinestatic |
Definition at line 89 of file cycles/blender/util.h.
References blender::bke::MeshRuntime::edit_mesh, blender::ID_ME, BObjectInfo::is_real_object_data(), object_copy_mesh_data(), BObjectInfo::object_data, object_to_mesh(), blender::Mesh::runtime, and BObjectInfo::use_adaptive_subdivision.
Referenced by object_to_mesh().
|
inlinestatic |
Definition at line 587 of file cycles/blender/util.h.
References get_boolean(), blender::Object::id, and object_use_deform_motion().
Referenced by object_use_deform_motion().
|
inlinestatic |
Definition at line 783 of file cycles/blender/util.h.
References blender::G, blender::G_TRANSFORM_EDIT, blender::G_TRANSFORM_OBJ, blender::Global::moving, region_view3d_navigating_or_transforming(), blender::RegionView3D::rflag, blender::RV3D_NAVIGATING, and blender::RV3D_PAINTING.
Referenced by region_view3d_navigating_or_transforming().
|
inlinestatic |
Definition at line 341 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 293 of file cycles/blender/util.h.
References render_resolution_x(), blender::RenderData::size, and blender::RenderData::xsch.
Referenced by render_resolution_x().
|
inlinestatic |
Definition at line 298 of file cycles/blender/util.h.
References render_resolution_y(), blender::RenderData::size, and blender::RenderData::ysch.
Referenced by render_resolution_y().
|
inlinestatic |
Definition at line 410 of file cycles/blender/util.h.
References set_boolean().
Referenced by set_boolean().
|
inlinestatic |
Definition at line 466 of file cycles/blender/util.h.
References set_enum().
Referenced by set_enum(), and set_enum().
|
inlinestatic |
Definition at line 471 of file cycles/blender/util.h.
References set_enum().
|
inlinestatic |
Definition at line 420 of file cycles/blender/util.h.
References set_float().
Referenced by set_float().
|
inlinestatic |
Definition at line 376 of file cycles/blender/util.h.
References set_float2(), and float2::x.
Referenced by set_float2().
|
inlinestatic |
Definition at line 388 of file cycles/blender/util.h.
References set_float3(), and float3::x.
Referenced by set_float3().
|
inlinestatic |
Definition at line 400 of file cycles/blender/util.h.
References set_float4(), and float4::x.
Referenced by set_float4().
|
inlinestatic |
Definition at line 430 of file cycles/blender/util.h.
References set_int().
|
inlinestatic |
Definition at line 481 of file cycles/blender/util.h.
References set_string().
Referenced by set_string().