Blender V4.3
object_select.cc File Reference
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_collection_types.h"
#include "DNA_light_types.h"
#include "DNA_modifier_types.h"
#include "DNA_scene_types.h"
#include "BLI_listbase.h"
#include "BLI_math_vector.h"
#include "BLI_rand.h"
#include "BLI_string_utils.hh"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "BKE_action.hh"
#include "BKE_armature.hh"
#include "BKE_collection.hh"
#include "BKE_context.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_material.h"
#include "BKE_particle.h"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "DEG_depsgraph.hh"
#include "WM_api.hh"
#include "WM_message.hh"
#include "WM_types.hh"
#include "ED_armature.hh"
#include "ED_keyframing.hh"
#include "ED_object.hh"
#include "ED_outliner.hh"
#include "ED_screen.hh"
#include "ED_select_utils.hh"
#include "ANIM_bone_collections.hh"
#include "ANIM_keyingsets.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "object_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::object
 

Functions

Public Object Selection API
void blender::ed::object::base_select (Base *base, eObjectSelect_Mode mode)
 
void blender::ed::object::base_active_refresh (Main *bmain, Scene *scene, ViewLayer *view_layer)
 
void blender::ed::object::base_activate (bContext *C, Base *base)
 
void blender::ed::object::base_activate_with_mode_exit_if_needed (bContext *C, Base *base)
 
bool blender::ed::object::base_deselect_all_ex (const Scene *scene, ViewLayer *view_layer, View3D *v3d, int action, bool *r_any_visible)
 
bool blender::ed::object::base_deselect_all (const Scene *scene, ViewLayer *view_layer, View3D *v3d, int action)
 
Jump To Object Utilities
static int blender::ed::object::get_base_select_priority (Base *base)
 
Baseblender::ed::object::find_first_by_data_id (const Scene *scene, ViewLayer *view_layer, ID *id)
 
bool blender::ed::object::jump_to_object (bContext *C, Object *ob, bool reveal_hidden)
 
bool blender::ed::object::jump_to_bone (bContext *C, Object *ob, const char *bone_name, bool reveal_hidden)
 
Select Operator Utils
static bool blender::ed::object::objects_selectable_poll (bContext *C)
 
Select by Type
static int blender::ed::object::object_select_by_type_exec (bContext *C, wmOperator *op)
 
void blender::ed::object::OBJECT_OT_select_by_type (wmOperatorType *ot)
 
(De)select All
static int blender::ed::object::object_select_all_exec (bContext *C, wmOperator *op)
 
void blender::ed::object::OBJECT_OT_select_all (wmOperatorType *ot)
 
Select In The Same Collection
static int blender::ed::object::object_select_same_collection_exec (bContext *C, wmOperator *op)
 
void blender::ed::object::OBJECT_OT_select_same_collection (wmOperatorType *ot)
 
Select Mirror
static int blender::ed::object::object_select_mirror_exec (bContext *C, wmOperator *op)
 
void blender::ed::object::OBJECT_OT_select_mirror (wmOperatorType *ot)
 
Select More/Less
static bool blender::ed::object::object_select_more_less (bContext *C, const bool select)
 
static int blender::ed::object::object_select_more_exec (bContext *C, wmOperator *)
 
void blender::ed::object::OBJECT_OT_select_more (wmOperatorType *ot)
 
static int blender::ed::object::object_select_less_exec (bContext *C, wmOperator *)
 
void blender::ed::object::OBJECT_OT_select_less (wmOperatorType *ot)
 
Select Random
static int blender::ed::object::object_select_random_exec (bContext *C, wmOperator *op)
 
void blender::ed::object::OBJECT_OT_select_random (wmOperatorType *ot)
 

Selected Grouped

#define COLLECTION_MENU_MAX   24
 
enum  {
  blender::ed::object::OBJECT_GRPSEL_CHILDREN_RECURSIVE = 0 , blender::ed::object::OBJECT_GRPSEL_CHILDREN = 1 , blender::ed::object::OBJECT_GRPSEL_PARENT = 2 , blender::ed::object::OBJECT_GRPSEL_SIBLINGS = 3 ,
  blender::ed::object::OBJECT_GRPSEL_TYPE = 4 , blender::ed::object::OBJECT_GRPSEL_COLLECTION = 5 , blender::ed::object::OBJECT_GRPSEL_HOOK = 7 , blender::ed::object::OBJECT_GRPSEL_PASS = 8 ,
  blender::ed::object::OBJECT_GRPSEL_COLOR = 9 , blender::ed::object::OBJECT_GRPSEL_KEYINGSET = 10 , blender::ed::object::OBJECT_GRPSEL_LIGHT_TYPE = 11
}
 
static const EnumPropertyItem blender::ed::object::prop_select_grouped_types []
 
static bool blender::ed::object::select_grouped_children (bContext *C, Object *ob, const bool recursive)
 
static bool blender::ed::object::select_grouped_parent (bContext *C)
 
static bool blender::ed::object::select_grouped_collection (bContext *C, Object *ob)
 
static bool blender::ed::object::select_grouped_object_hooks (bContext *C, Object *ob)
 
static bool blender::ed::object::select_grouped_siblings (bContext *C, Object *ob)
 
static bool blender::ed::object::select_grouped_lighttype (bContext *C, Object *ob)
 
static bool blender::ed::object::select_grouped_type (bContext *C, Object *ob)
 
static bool blender::ed::object::select_grouped_index_object (bContext *C, Object *ob)
 
static bool blender::ed::object::select_grouped_color (bContext *C, Object *ob)
 
static bool blender::ed::object::select_grouped_keyingset (bContext *C, Object *, ReportList *reports)
 
static int blender::ed::object::object_select_grouped_exec (bContext *C, wmOperator *op)
 
void blender::ed::object::OBJECT_OT_select_grouped (wmOperatorType *ot)
 

Selection by Links

enum  {
  blender::ed::object::OBJECT_SELECT_LINKED_IPO = 1 , blender::ed::object::OBJECT_SELECT_LINKED_OBDATA , blender::ed::object::OBJECT_SELECT_LINKED_MATERIAL , blender::ed::object::OBJECT_SELECT_LINKED_DUPGROUP ,
  blender::ed::object::OBJECT_SELECT_LINKED_PARTICLE , blender::ed::object::OBJECT_SELECT_LINKED_LIBRARY , blender::ed::object::OBJECT_SELECT_LINKED_LIBRARY_OBDATA
}
 
static const EnumPropertyItem blender::ed::object::prop_select_linked_types []
 
static bool blender::ed::object::object_select_all_by_obdata (bContext *C, void *obdata)
 
static bool blender::ed::object::object_select_all_by_material (bContext *C, Material *mat)
 
static bool blender::ed::object::object_select_all_by_instance_collection (bContext *C, Object *ob)
 
static bool blender::ed::object::object_select_all_by_particle (bContext *C, Object *ob)
 
static bool blender::ed::object::object_select_all_by_library (bContext *C, Library *lib)
 
static bool blender::ed::object::object_select_all_by_library_obdata (bContext *C, Library *lib)
 
void blender::ed::object::select_linked_by_id (bContext *C, ID *id)
 
static int blender::ed::object::object_select_linked_exec (bContext *C, wmOperator *op)
 
void blender::ed::object::OBJECT_OT_select_linked (wmOperatorType *ot)
 

Macro Definition Documentation

◆ COLLECTION_MENU_MAX

#define COLLECTION_MENU_MAX   24

Definition at line 796 of file object_select.cc.

Referenced by blender::ed::object::select_grouped_collection().