Blender V5.3
ED_select_utils.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <string>
12
13#include "BLI_compiler_attrs.hh"
14
15namespace blender {
16
17struct PointerRNA;
18struct wmOperatorType;
19
20template<typename CoordT> struct KDTree;
21template<typename T, int Size> struct VecBase;
22
23enum {
28};
29
36
45
52
53#define SEL_OP_USE_OUTSIDE(sel_op) (ELEM(sel_op, SEL_OP_AND))
54#define SEL_OP_USE_PRE_DESELECT(sel_op) (ELEM(sel_op, SEL_OP_SET))
55#define SEL_OP_CAN_DESELECT(sel_op) (!ELEM(sel_op, SEL_OP_ADD))
56
61int ED_select_op_action(eSelectOp sel_op, bool is_select, bool is_inside);
68int ED_select_op_action_deselected(eSelectOp sel_op, bool is_select, bool is_inside);
69
70bool ED_select_similar_compare_float(float delta, float thresh, eSimilarCmp compare);
71bool ED_select_similar_compare_float_tree(const KDTree<float> *tree,
72 float length,
73 float thresh,
74 eSimilarCmp compare);
75
79eSelectOp ED_select_op_modal(eSelectOp sel_op, bool is_first);
80
100
105
111
118
119} // namespace blender
float length(VecOp< float, D >) RET
BMesh Iterators.
std::string ED_select_circle_get_name(wmOperatorType *ot, PointerRNA *ptr)
int ED_select_op_action(eSelectOp sel_op, bool is_select, bool is_inside)
eSelectOp ED_select_op_from_operator(PointerRNA *ptr) ATTR_WARN_UNUSED_RESULT
eSelectOp ED_select_op_modal(eSelectOp sel_op, bool is_first)
bool ED_select_similar_compare_float_tree(const KDTree< float > *tree, float length, float thresh, eSimilarCmp compare)
int ED_select_op_action_deselected(eSelectOp sel_op, bool is_select, bool is_inside)
bool ED_select_similar_compare_float(float delta, float thresh, eSimilarCmp compare)
bool ATTR_WARN_UNUSED_RESULT
void ATTR_NONNULL(1, 2)
SelectPick_Params ED_select_pick_params_from_operator(PointerRNA *ptr) ATTR_NONNULL(1)
std::string ED_select_pick_get_name(wmOperatorType *ot, PointerRNA *ptr)
signed char int8_t
Definition BKE_text.h:76