Blender V4.3
outliner_collections.cc File Reference
#include <cstring>
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "DNA_ID.h"
#include "DNA_collection_types.h"
#include "DNA_object_types.h"
#include "BKE_collection.hh"
#include "BKE_context.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "ED_object.hh"
#include "ED_outliner.hh"
#include "ED_screen.hh"
#include "WM_api.hh"
#include "WM_message.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "outliner_intern.hh"

Go to the source code of this file.

Classes

struct  blender::ed::outliner::CollectionNewData
 
struct  blender::ed::outliner::CollectionEditData
 
struct  blender::ed::outliner::CollectionObjectsSelectData
 
struct  blender::ed::outliner::CollectionDuplicateData
 
struct  blender::ed::outliner::OutlinerHideEditData
 

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::outliner
 

Functions

void ED_outliner_selected_objects_get (const bContext *C, ListBase *objects)
 
bool ED_outliner_collections_editor_poll (bContext *C)
 
static bool blender::ed::outliner::outliner_view_layer_collections_editor_poll (bContext *C)
 
static bool blender::ed::outliner::collection_edit_in_active_scene_poll (bContext *C)
 
static bool blender::ed::outliner::collection_new_poll (bContext *C)
 
Utility API
bool blender::ed::outliner::outliner_is_collection_tree_element (const TreeElement *te)
 
Collectionblender::ed::outliner::outliner_collection_from_tree_element (const TreeElement *te)
 
TreeTraversalAction blender::ed::outliner::outliner_collect_selected_collections (TreeElement *te, void *customdata)
 
TreeTraversalAction blender::ed::outliner::outliner_collect_selected_objects (TreeElement *te, void *customdata)
 
New Collection
static TreeTraversalAction blender::ed::outliner::collection_find_selected_to_add (TreeElement *te, void *customdata)
 
static int blender::ed::outliner::collection_new_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_new (wmOperatorType *ot)
 
Delete Collection
static TreeTraversalAction blender::ed::outliner::collection_collect_data_to_edit (TreeElement *te, void *customdata)
 
void blender::ed::outliner::outliner_collection_delete (bContext *C, Main *bmain, Scene *scene, ReportList *reports, bool do_hierarchy)
 
static int blender::ed::outliner::collection_hierarchy_delete_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_hierarchy_delete (wmOperatorType *ot)
 
Select/Deselect Collection Objects
static TreeTraversalAction blender::ed::outliner::outliner_find_first_selected_layer_collection (TreeElement *te, void *customdata)
 
static LayerCollectionblender::ed::outliner::outliner_active_layer_collection (bContext *C)
 
static int blender::ed::outliner::collection_objects_select_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_objects_select (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_objects_deselect (wmOperatorType *ot)
 
Duplicate Collection
static TreeTraversalAction blender::ed::outliner::outliner_find_first_selected_collection (TreeElement *te, void *customdata)
 
static TreeElementblender::ed::outliner::outliner_active_collection (bContext *C)
 
static int blender::ed::outliner::collection_duplicate_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_duplicate_linked (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_duplicate (wmOperatorType *ot)
 
Link Collection
static int blender::ed::outliner::collection_link_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_link (wmOperatorType *ot)
 
Instance Collection
static int blender::ed::outliner::collection_instance_exec (bContext *C, wmOperator *)
 
void blender::ed::outliner::OUTLINER_OT_collection_instance (wmOperatorType *ot)
 
Exclude Collection
static TreeTraversalAction blender::ed::outliner::layer_collection_collect_data_to_edit (TreeElement *te, void *customdata)
 
static bool blender::ed::outliner::collections_view_layer_poll (bContext *C, bool clear, int flag)
 
static bool blender::ed::outliner::collections_exclude_set_poll (bContext *C)
 
static bool blender::ed::outliner::collections_exclude_clear_poll (bContext *C)
 
static bool blender::ed::outliner::collections_holdout_set_poll (bContext *C)
 
static bool blender::ed::outliner::collections_holdout_clear_poll (bContext *C)
 
static bool blender::ed::outliner::collections_indirect_only_set_poll (bContext *C)
 
static bool blender::ed::outliner::collections_indirect_only_clear_poll (bContext *C)
 
static int blender::ed::outliner::collection_view_layer_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_exclude_set (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_exclude_clear (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_holdout_set (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_holdout_clear (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_indirect_only_set (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_indirect_only_clear (wmOperatorType *ot)
 
Visibility for Collection Operators
static int blender::ed::outliner::collection_isolate_exec (bContext *C, wmOperator *op)
 
static int blender::ed::outliner::collection_isolate_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::outliner::OUTLINER_OT_collection_isolate (wmOperatorType *ot)
 
static bool blender::ed::outliner::collection_show_poll (bContext *C)
 
static bool blender::ed::outliner::collection_hide_poll (bContext *C)
 
static bool blender::ed::outliner::collection_inside_poll (bContext *C)
 
static int blender::ed::outliner::collection_visibility_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_show (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_hide (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_show_inside (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_hide_inside (wmOperatorType *ot)
 
Enable/Disable Collection Operators
static bool blender::ed::outliner::collection_flag_poll (bContext *C, bool clear, int flag)
 
static bool blender::ed::outliner::collection_enable_poll (bContext *C)
 
static bool blender::ed::outliner::collection_disable_poll (bContext *C)
 
static bool blender::ed::outliner::collection_enable_render_poll (bContext *C)
 
static bool blender::ed::outliner::collection_disable_render_poll (bContext *C)
 
static int blender::ed::outliner::collection_flag_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_enable (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_disable (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_enable_render (wmOperatorType *ot)
 
void blender::ed::outliner::OUTLINER_OT_collection_disable_render (wmOperatorType *ot)
 
Visibility for Collection & Object Operators
static TreeTraversalAction blender::ed::outliner::outliner_hide_collect_data_to_edit (TreeElement *te, void *customdata)
 
static int blender::ed::outliner::outliner_hide_exec (bContext *C, wmOperator *)
 
void blender::ed::outliner::OUTLINER_OT_hide (wmOperatorType *ot)
 
static int blender::ed::outliner::outliner_unhide_all_exec (bContext *C, wmOperator *)
 
void blender::ed::outliner::OUTLINER_OT_unhide_all (wmOperatorType *ot)
 
Collection Color Tags
static int blender::ed::outliner::outliner_color_tag_set_exec (bContext *C, wmOperator *op)
 
void blender::ed::outliner::OUTLINER_OT_collection_color_tag_set (wmOperatorType *ot)
 

Function Documentation

◆ ED_outliner_collections_editor_poll()

◆ ED_outliner_selected_objects_get()

void ED_outliner_selected_objects_get ( const bContext * C,
ListBase * objects )

Populates the

Parameters
objectsListBase with all the outliner selected objects We store it as (Object *)LinkData->data
objectsexpected to be empty

Definition at line 129 of file outliner_collections.cc.

References BLI_addtail(), BLI_freelistN(), BLI_genericNodeN(), CTX_wm_space_outliner(), Object::id, LISTBASE_FOREACH, SpaceOutliner::tree, TREESTORE, and TSE_SELECTED.

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