|
Blender V4.3
|
Object is a sort of wrapper for general info. More...
#include "BLI_utildefines.h"#include "DNA_object_enums.h"#include "DNA_customdata_types.h"#include "DNA_defs.h"#include "DNA_lineart_types.h"#include "DNA_listBase.h"#include "DNA_ID.h"#include "DNA_action_types.h"Go to the source code of this file.
Classes | |
| struct | bDeformGroup |
| class | BoundBox |
| struct | ObjectLineArt |
| struct | LightLinkingRuntime |
| struct | LightLinking |
| class | Object |
| struct | ObHook |
Macros | |
| #define | MAX_VGROUP_NAME 64 |
| #define | SELECT 1 |
| #define | OB_TYPE_SUPPORT_MATERIAL(_type) |
| #define | OB_TYPE_IS_GEOMETRY(_type) |
| #define | OB_TYPE_SUPPORT_VGROUP(_type) (ELEM(_type, OB_MESH, OB_LATTICE, OB_GPENCIL_LEGACY, OB_GREASE_PENCIL)) |
| #define | OB_TYPE_SUPPORT_EDITMODE(_type) |
| #define | OB_TYPE_SUPPORT_PARVERT(_type) (ELEM(_type, OB_MESH, OB_SURF, OB_CURVES_LEGACY, OB_LATTICE)) |
| #define | OB_DATA_SUPPORT_EDITMODE(_type) (ELEM(_type, ID_ME, ID_CU_LEGACY, ID_MB, ID_LT, ID_AR, ID_CV, ID_GP)) |
| #define | OB_DATA_SUPPORT_ID(_id_type) |
| #define | OB_DATA_SUPPORT_ID_CASE |
| #define | MAX_DUPLI_RECUR 8 |
Typedefs | |
| typedef struct ObjectRuntimeHandle | ObjectRuntimeHandle |
| typedef struct bDeformGroup | bDeformGroup |
| typedef struct BoundBox | BoundBox |
| typedef struct ObjectLineArt | ObjectLineArt |
| typedef struct LightLinkingRuntime | LightLinkingRuntime |
| typedef struct LightLinking | LightLinking |
| typedef struct Object | Object |
| typedef struct ObHook | ObHook |
| typedef enum ObjectType | ObjectType |
| typedef enum ObjectModifierFlag | ObjectModifierFlag |
Functions | |
| ENUM_OPERATORS (eObjectLineArt_Usage, OBJECT_LRT_FORCE_INTERSECTION) | |
Object is a sort of wrapper for general info.
Definition in file DNA_object_types.h.
| #define MAX_DUPLI_RECUR 8 |
Definition at line 777 of file DNA_object_types.h.
Referenced by BKE_ptcache_bake(), BKE_ptcache_id_find(), copy_dupli_context(), blender::ed::object::dupliobject_cmp(), blender::ed::object::dupliobject_hash(), blender::ed::object::dupliobject_instancer_cmp(), blender::ed::object::dupliobject_instancer_hash(), make_dupli(), blender::ed::object::make_object_duplilist_real(), make_recursive_duplis(), blender::eevee::ObjectKey::ObjectKey(), blender::eevee::ObjectKey::operator<(), blender::eevee::ObjectKey::operator==(), ptcache_free_bake_all_exec(), rna_def_depsgraph_instance(), and special_aftertrans_update__object().
| #define MAX_VGROUP_NAME 64 |
Definition at line 75 of file DNA_object_types.h.
Referenced by flip_names(), rna_def_modifier_datatransfer(), blender::ed::object::vgroup_do_remap(), and blender::ed::object::vgroup_init_remap().
| #define OB_DATA_SUPPORT_EDITMODE | ( | _type | ) | (ELEM(_type, ID_ME, ID_CU_LEGACY, ID_MB, ID_LT, ID_AR, ID_CV, ID_GP)) |
Matches OB_TYPE_SUPPORT_EDITMODE.
Definition at line 516 of file DNA_object_types.h.
Referenced by BKE_object_data_is_in_editmode(), blender::deg::deg_update_eval_copy_datablock(), and blender::ed::outliner::is_object_data_in_editmode().
| #define OB_DATA_SUPPORT_ID | ( | _id_type | ) |
Definition at line 520 of file DNA_object_types.h.
Referenced by BKE_id_material_array_p(), BKE_id_material_len_p(), BKE_object_material_slot_used(), datadropper_poll(), blender::ed::object::find_first_by_data_id(), jump_to_target_ptr(), lib_override_library_resync(), loose_data_instantiate_obdata_preprocess(), loose_data_instantiate_obdata_process(), material_data_index_clear_id(), material_data_index_remove_id(), blender::ed::object::select_linked_by_id(), ui_but_icon_extra_is_visible_search_eyedropper(), UI_context_copy_to_selected_list(), and view3d_object_data_drop_poll().
| #define OB_DATA_SUPPORT_ID_CASE |
Definition at line 537 of file DNA_object_types.h.
Referenced by wm_context_member_from_ptr().
| #define OB_TYPE_IS_GEOMETRY | ( | _type | ) |
Does the object have some render-able geometry (unlike empties, cameras, etc.). True for OB_CURVES_LEGACY, since these often evaluate to objects with geometry.
Definition at line 486 of file DNA_object_types.h.
Referenced by BKE_light_linking_add_receiver_to_collection(), BKE_light_linking_link_receiver_to_emitter(), blender::deg::DepsgraphRelationBuilder::build_driver_variables(), collection_preview_contains_geometry_recursive(), and object_preview_is_type_supported().
| #define OB_TYPE_SUPPORT_EDITMODE | ( | _type | ) |
Definition at line 500 of file DNA_object_types.h.
Referenced by blender::ed::object::editmode_toggle_poll(), blender::ed::outliner::outliner_item_mode_toggle(), and view3d_panel_transform().
| #define OB_TYPE_SUPPORT_MATERIAL | ( | _type | ) |
Definition at line 479 of file DNA_object_types.h.
Referenced by blender::ed::object::allow_make_links_data(), buttons_context(), buttons_context_path_material(), object_materials_supported_poll_ex(), blender::ed::space_node::preview_prepare_scene(), and preview_prepare_scene().
| #define OB_TYPE_SUPPORT_PARVERT | ( | _type | ) | (ELEM(_type, OB_MESH, OB_SURF, OB_CURVES_LEGACY, OB_LATTICE)) |
Definition at line 512 of file DNA_object_types.h.
Referenced by ob_parvert3(), and blender::ed::object::parent_set_invoke_menu().
| #define OB_TYPE_SUPPORT_VGROUP | ( | _type | ) | (ELEM(_type, OB_MESH, OB_LATTICE, OB_GPENCIL_LEGACY, OB_GREASE_PENCIL)) |
Definition at line 498 of file DNA_object_types.h.
Referenced by BKE_key_evaluate_object_ex(), BKE_object_defgroup_add_name(), BKE_object_defgroup_new(), BKE_object_is_in_editmode_vgroup(), MOD_get_vgroup(), and blender::ed::object::vertex_group_supported_poll_ex().
| #define SELECT 1 |
This is used as a flag for many kinds of data that use selections, examples include:
Definition at line 442 of file DNA_object_types.h.
| typedef struct bDeformGroup bDeformGroup |
Vertex Groups - Name Info
| typedef struct BoundBox BoundBox |
The following illustrates the orientation of the bounding box in local space
Z Y
| /
|/
.-----X
2----------6
/| /|
/ | / |
1----------5 |
| | | |
| 3-------|--7
| / | /
|/ |/
0----------4
| typedef struct LightLinking LightLinking |
| typedef struct LightLinkingRuntime LightLinkingRuntime |
| typedef struct ObHook ObHook |
DEPRECATED: this is not used anymore because hooks are now modifiers.
| typedef struct Object Object |
| typedef struct ObjectLineArt ObjectLineArt |
| typedef enum ObjectModifierFlag ObjectModifierFlag |
| typedef struct ObjectRuntimeHandle ObjectRuntimeHandle |
Definition at line 37 of file DNA_object_types.h.
| typedef enum ObjectType ObjectType |
| anonymous enum |
| anonymous enum |
Object.partype: first 4 bits: type.
| Enumerator | |
|---|---|
| PARTYPE | |
| PAROBJECT | |
| PARSKEL | |
| PARVERT1 | |
| PARVERT3 | |
| PARBONE | |
Definition at line 554 of file DNA_object_types.h.
| anonymous enum |
Object.transflag (short)
Definition at line 565 of file DNA_object_types.h.
| anonymous enum |
Object.trackflag / Object.upflag (short)
| Enumerator | |
|---|---|
| OB_POSX | |
| OB_POSY | |
| OB_POSZ | |
| OB_NEGX | |
| OB_NEGY | |
| OB_NEGZ | |
Definition at line 587 of file DNA_object_types.h.
| anonymous enum |
Object.dtx draw type extra flags (short)
| Enumerator | |
|---|---|
| OB_DRAWBOUNDOX | |
| OB_AXIS | |
| OB_TEXSPACE | |
| OB_DRAWNAME | |
| OB_DRAWWIRE | |
| OB_DRAW_IN_FRONT | |
| OB_DRAWTRANSP | |
| OB_DRAW_ALL_EDGES | |
| OB_DRAW_NO_SHADOW_CAST | |
| OB_USE_GPENCIL_LIGHTS | |
Definition at line 597 of file DNA_object_types.h.
| anonymous enum |
Object.empty_drawtype: no flags
| Enumerator | |
|---|---|
| OB_ARROWS | |
| OB_PLAINAXES | |
| OB_CIRCLE | |
| OB_SINGLE_ARROW | |
| OB_CUBE | |
| OB_EMPTY_SPHERE | |
| OB_EMPTY_CONE | |
| OB_EMPTY_IMAGE | |
Definition at line 616 of file DNA_object_types.h.
| anonymous enum |
Grease-pencil add types. TODO: doesn't need to be DNA, local to OBJECT_OT_gpencil_add.
| Enumerator | |
|---|---|
| GP_EMPTY | |
| GP_STROKE | |
| GP_MONKEY | |
| GREASE_PENCIL_LINEART_SCENE | |
| GREASE_PENCIL_LINEART_OBJECT | |
| GREASE_PENCIL_LINEART_COLLECTION | |
Definition at line 631 of file DNA_object_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| OB_BOUND_BOX | |
| OB_BOUND_SPHERE | |
| OB_BOUND_CYLINDER | |
| OB_BOUND_CONE | |
| OB_BOUND_CAPSULE | |
Definition at line 641 of file DNA_object_types.h.
| anonymous enum |
Base::flag_legacy (also used for Object::flag).
| Enumerator | |
|---|---|
| BA_WAS_SEL | |
| BA_SNAP_FIX_DEPS_FIASCO | DEPRECATED, was runtime only, but was reusing an older flag. |
| BA_TEMP_TAG | NOTE: this was used as a proper setting in past, so nullify before using |
| BA_TRANSFORM_LOCKED_IN_PLACE | Even if this is tagged for transform, this flag means it's being locked in place. Use for SCE_XFORM_SKIP_CHILDREN. |
| BA_TRANSFORM_CHILD | Child of a transformed object. |
| BA_TRANSFORM_PARENT | Parent of a transformed object. |
| OB_FROMDUPLI | |
| OB_DONE | Unknown state, clear before use. |
| OB_FLAG_USE_SIMULATION_CACHE | |
Definition at line 655 of file DNA_object_types.h.
| anonymous enum |
Definition at line 686 of file DNA_object_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| OB_SHAPE_LOCK | |
| OB_SHAPE_EDIT_MODE | |
Definition at line 704 of file DNA_object_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| OB_ADS_UNUSED_1 | |
| OB_ADS_UNUSED_2 | |
| OB_ADS_COLLAPSED | |
Definition at line 713 of file DNA_object_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| OB_LOCK_LOCX | |
| OB_LOCK_LOCY | |
| OB_LOCK_LOCZ | |
| OB_LOCK_LOC | |
| OB_LOCK_ROTX | |
| OB_LOCK_ROTY | |
| OB_LOCK_ROTZ | |
| OB_LOCK_ROT | |
| OB_LOCK_SCALEX | |
| OB_LOCK_SCALEY | |
| OB_LOCK_SCALEZ | |
| OB_LOCK_SCALE | |
| OB_LOCK_ROTW | |
| OB_LOCK_ROT4D | |
Definition at line 729 of file DNA_object_types.h.
| anonymous enum |
Object.duplicator_visibility_flag
| Enumerator | |
|---|---|
| OB_DUPLI_FLAG_VIEWPORT | |
| OB_DUPLI_FLAG_RENDER | |
Definition at line 747 of file DNA_object_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| OB_EMPTY_IMAGE_DEPTH_DEFAULT | |
| OB_EMPTY_IMAGE_DEPTH_FRONT | |
| OB_EMPTY_IMAGE_DEPTH_BACK | |
Definition at line 753 of file DNA_object_types.h.
| anonymous enum |
Object.empty_image_visibility_flag
| Enumerator | |
|---|---|
| OB_EMPTY_IMAGE_HIDE_PERSPECTIVE | |
| OB_EMPTY_IMAGE_HIDE_ORTHOGRAPHIC | |
| OB_EMPTY_IMAGE_HIDE_BACK | |
| OB_EMPTY_IMAGE_HIDE_FRONT | |
| OB_EMPTY_IMAGE_HIDE_NON_AXIS_ALIGNED | |
Definition at line 760 of file DNA_object_types.h.
| anonymous enum |
| Enumerator | |
|---|---|
| OB_EMPTY_IMAGE_USE_ALPHA_BLEND | |
Definition at line 769 of file DNA_object_types.h.
| enum eObjectLineArt_Flags |
| Enumerator | |
|---|---|
| OBJECT_LRT_OWN_CREASE | |
| OBJECT_LRT_OWN_INTERSECTION_PRIORITY | |
Definition at line 133 of file DNA_object_types.h.
| enum eObjectLineArt_Usage |
| Enumerator | |
|---|---|
| OBJECT_LRT_INHERIT | |
| OBJECT_LRT_INCLUDE | |
| OBJECT_LRT_OCCLUSION_ONLY | |
| OBJECT_LRT_EXCLUDE | |
| OBJECT_LRT_INTERSECTION_ONLY | |
| OBJECT_LRT_NO_INTERSECTION | |
| OBJECT_LRT_FORCE_INTERSECTION | |
Definition at line 122 of file DNA_object_types.h.
| enum ObjectModifierFlag |
| Enumerator | |
|---|---|
| OB_MODIFIER_FLAG_ADD_REST_POSITION | |
Definition at line 773 of file DNA_object_types.h.
| enum ObjectType |
| Enumerator | |
|---|---|
| OB_EMPTY | |
| OB_MESH | |
| OB_CURVES_LEGACY | Curve object is still used but replaced by "Curves" for the future (see #95355). |
| OB_SURF | |
| OB_FONT | |
| OB_MBALL | |
| OB_LAMP | |
| OB_CAMERA | |
| OB_SPEAKER | |
| OB_LIGHTPROBE | |
| OB_LATTICE | |
| OB_ARMATURE | |
| OB_GPENCIL_LEGACY | |
| OB_CURVES | |
| OB_POINTCLOUD | |
| OB_VOLUME | |
| OB_GREASE_PENCIL | |
| OB_TYPE_MAX | |
Definition at line 445 of file DNA_object_types.h.
| ENUM_OPERATORS | ( | eObjectLineArt_Usage | , |
| OBJECT_LRT_FORCE_INTERSECTION | ) |