Blender V4.3
grease_pencil_select.cc File Reference
#include "BKE_attribute.hh"
#include "BKE_context.hh"
#include "BKE_curves.hh"
#include "BKE_grease_pencil.hh"
#include "BLI_enumerable_thread_specific.hh"
#include "BLI_offset_indices.hh"
#include "BLI_task.hh"
#include "DNA_object_types.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "ED_curves.hh"
#include "ED_grease_pencil.hh"
#include "ED_screen.hh"
#include "ED_select_utils.hh"
#include "ED_view3d.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "WM_api.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::greasepencil
 

Enumerations

enum class  blender::ed::greasepencil::SelectSimilarMode {
  blender::ed::greasepencil::LAYER , blender::ed::greasepencil::MATERIAL , blender::ed::greasepencil::VERTEX_COLOR , blender::ed::greasepencil::RADIUS ,
  blender::ed::greasepencil::OPACITY
}
 

Functions

static int blender::ed::greasepencil::select_all_exec (bContext *C, wmOperator *op)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_select_all (wmOperatorType *ot)
 
static int blender::ed::greasepencil::select_more_exec (bContext *C, wmOperator *)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_select_more (wmOperatorType *ot)
 
static int blender::ed::greasepencil::select_less_exec (bContext *C, wmOperator *)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_select_less (wmOperatorType *ot)
 
static int blender::ed::greasepencil::select_linked_exec (bContext *C, wmOperator *)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_select_linked (wmOperatorType *ot)
 
static int blender::ed::greasepencil::select_random_exec (bContext *C, wmOperator *op)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_select_random (wmOperatorType *ot)
 
static int blender::ed::greasepencil::select_alternate_exec (bContext *C, wmOperator *op)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_select_alternate (wmOperatorType *ot)
 
template<typename T >
void blender::ed::greasepencil::insert_selected_values (const bke::CurvesGeometry &curves, const bke::AttrDomain domain, const StringRef attribute_id, blender::Set< T > &r_value_set)
 
template<typename T , typename DistanceFn >
static void blender::ed::greasepencil::select_similar_by_value (Scene *scene, Object *object, GreasePencil &grease_pencil, const bke::AttrDomain domain, const StringRef attribute_id, float threshold, DistanceFn distance_fn)
 
static void blender::ed::greasepencil::select_similar_by_layer (Scene *scene, Object *object, GreasePencil &grease_pencil, bke::AttrDomain domain)
 
static int blender::ed::greasepencil::select_similar_exec (bContext *C, wmOperator *op)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_select_similar (wmOperatorType *ot)
 
static int blender::ed::greasepencil::select_ends_exec (bContext *C, wmOperator *op)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_select_ends (wmOperatorType *ot)
 
static int blender::ed::greasepencil::select_set_mode_exec (bContext *C, wmOperator *op)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_set_selection_mode (wmOperatorType *ot)
 
static int blender::ed::greasepencil::grease_pencil_material_select_exec (bContext *C, wmOperator *op)
 
static void blender::ed::greasepencil::GREASE_PENCIL_OT_material_select (wmOperatorType *ot)
 
blender::bke::AttrDomain ED_grease_pencil_edit_selection_domain_get (const ToolSettings *tool_settings)
 
blender::bke::AttrDomain ED_grease_pencil_sculpt_selection_domain_get (const ToolSettings *tool_settings)
 
blender::bke::AttrDomain ED_grease_pencil_vertex_selection_domain_get (const ToolSettings *tool_settings)
 
blender::bke::AttrDomain ED_grease_pencil_selection_domain_get (const ToolSettings *tool_settings, const Object *object)
 
bool ED_grease_pencil_edit_segment_selection_enabled (const ToolSettings *tool_settings)
 
bool ED_grease_pencil_sculpt_segment_selection_enabled (const ToolSettings *tool_settings)
 
bool ED_grease_pencil_vertex_segment_selection_enabled (const ToolSettings *tool_settings)
 
bool ED_grease_pencil_segment_selection_enabled (const ToolSettings *tool_settings, const Object *object)
 
void ED_operatortypes_grease_pencil_select ()
 
Selection Utility Functions
int blender::ed::greasepencil::clamp_range (const IndexRange range, const int index)
 
template<typename Fn >
static int blender::ed::greasepencil::foreach_curve_segment (const CurveSegmentsData &segment_data, const int curve_index, const IndexRange points, Fn &&fn)
 
bool blender::ed::greasepencil::apply_mask_as_selection (bke::CurvesGeometry &curves, const IndexMask &selection_mask, const bke::AttrDomain selection_domain, const StringRef attribute_name, const GrainSize grain_size, const eSelectOp sel_op)
 
bool blender::ed::greasepencil::apply_mask_as_segment_selection (bke::CurvesGeometry &curves, const IndexMask &point_selection_mask, const StringRef attribute_name, const Curves2DBVHTree &tree_data, const IndexRange tree_data_range, const GrainSize grain_size, const eSelectOp sel_op)
 
bool blender::ed::greasepencil::selection_update (const ViewContext *vc, const eSelectOp sel_op, SelectionUpdateFunc select_operation)
 

Variables

static const EnumPropertyItem blender::ed::greasepencil::select_similar_mode_items []
 

Function Documentation

◆ ED_grease_pencil_edit_segment_selection_enabled()

bool ED_grease_pencil_edit_segment_selection_enabled ( const ToolSettings * tool_settings)

True if segment selection is enabled.

Definition at line 1058 of file grease_pencil_select.cc.

References GP_SELECTMODE_SEGMENT, and ToolSettings::gpencil_selectmode_edit.

Referenced by ED_grease_pencil_segment_selection_enabled().

◆ ED_grease_pencil_edit_selection_domain_get()

◆ ED_grease_pencil_sculpt_segment_selection_enabled()

bool ED_grease_pencil_sculpt_segment_selection_enabled ( const ToolSettings * tool_settings)

◆ ED_grease_pencil_sculpt_selection_domain_get()

◆ ED_grease_pencil_segment_selection_enabled()

◆ ED_grease_pencil_selection_domain_get()

◆ ED_grease_pencil_vertex_segment_selection_enabled()

bool ED_grease_pencil_vertex_segment_selection_enabled ( const ToolSettings * tool_settings)

◆ ED_grease_pencil_vertex_selection_domain_get()

◆ ED_operatortypes_grease_pencil_select()

void ED_operatortypes_grease_pencil_select ( )

Definition at line 1088 of file grease_pencil_select.cc.

References WM_operatortype_append().

Referenced by ED_operatortypes_grease_pencil().