|
Blender V5.0
|
#include <fmt/format.h>#include <cstring>#include "BKE_attribute.hh"#include "BKE_brush.hh"#include "BKE_colortools.hh"#include "BKE_context.hh"#include "BKE_curves.hh"#include "BKE_grease_pencil.hh"#include "BKE_material.hh"#include "BKE_paint.hh"#include "BKE_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "DEG_depsgraph.hh"#include "DNA_brush_types.h"#include "DNA_material_types.h"#include "ED_grease_pencil.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "ED_view3d.hh"#include "BLI_array_utils.hh"#include "BLI_math_matrix.hh"#include "BLI_rand.hh"#include "BLI_vector.hh"#include "BLT_translation.hh"#include "GPU_immediate.hh"#include "GPU_state.hh"#include "UI_resources.hh"Go to the source code of this file.
Classes | |
| struct | blender::ed::greasepencil::PrimitiveToolOperation |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::greasepencil |
Variables | |
| static constexpr float | blender::ed::greasepencil::ui_primary_point_draw_size_px = 8.0f |
| static constexpr float | blender::ed::greasepencil::ui_secondary_point_draw_size_px = 5.0f |
| static constexpr float | blender::ed::greasepencil::ui_tertiary_point_draw_size_px = 3.0f |
| static constexpr float | blender::ed::greasepencil::ui_point_hit_size_px = 20.0f |
| static constexpr float | blender::ed::greasepencil::ui_point_max_hit_size_px = 600.0f |
| static constexpr int | blender::ed::greasepencil::control_point_first = 0 |
| static constexpr int | blender::ed::greasepencil::control_point_center = 1 |
| static constexpr int | blender::ed::greasepencil::control_point_last = 2 |
Operators for creating new Grease Pencil primitives (boxes, circles, ...).
Definition in file grease_pencil_primitive.cc.
| void ED_operatortypes_grease_pencil_primitives | ( | ) |
Definition at line 1695 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::GREASE_PENCIL_OT_primitive_arc(), blender::ed::greasepencil::GREASE_PENCIL_OT_primitive_box(), blender::ed::greasepencil::GREASE_PENCIL_OT_primitive_circle(), blender::ed::greasepencil::GREASE_PENCIL_OT_primitive_curve(), blender::ed::greasepencil::GREASE_PENCIL_OT_primitive_line(), blender::ed::greasepencil::GREASE_PENCIL_OT_primitive_polyline(), and WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_primitivetool_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1706 of file grease_pencil_primitive.cc.
References blender::ed::greasepencil::Cancel, blender::ed::greasepencil::ChangeOpacity, blender::ed::greasepencil::ChangeRadius, blender::ed::greasepencil::Confirm, blender::ed::greasepencil::DecreaseSubdivision, blender::ed::greasepencil::Extrude, blender::ed::greasepencil::Grab, blender::ed::greasepencil::IncreaseSubdivision, wmKeyMap::modal_items, blender::ed::greasepencil::Panning, blender::ed::greasepencil::Rotate, blender::ed::greasepencil::Scale, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_grease_pencil().