|
Blender V5.0
|
#include "DNA_vec_types.h"Go to the source code of this file.
Classes | |
| struct | GP_SpaceConversion |
Macros | |
| #define | DEPTH_INVALID 1.0f |
| #define | GP_STROKE_BUFFER_CHUNK 2048 |
Enumerations | |
| enum | eGPencil_PaintModes { GP_PAINTMODE_DRAW = 0 , GP_PAINTMODE_ERASER , GP_PAINTMODE_DRAW_STRAIGHT , GP_PAINTMODE_DRAW_POLY , GP_PAINTMODE_SET_CP } |
Functions | |
| bool | gpencil_stroke_inside_circle (const float mval[2], int rad, int x0, int y0, int x1, int y1) |
| void | gpencil_point_to_xy (const GP_SpaceConversion *gsc, const bGPDstroke *gps, const bGPDspoint *pt, int *r_x, int *r_y) |
| void | GPENCIL_OT_annotate (wmOperatorType *ot) |
| void | GPENCIL_OT_annotation_add (wmOperatorType *ot) |
| void | GPENCIL_OT_data_unlink (wmOperatorType *ot) |
| void | GPENCIL_OT_layer_annotation_add (wmOperatorType *ot) |
| void | GPENCIL_OT_layer_annotation_remove (wmOperatorType *ot) |
| void | GPENCIL_OT_layer_annotation_move (wmOperatorType *ot) |
| void | GPENCIL_OT_annotation_active_frame_delete (wmOperatorType *ot) |
| #define DEPTH_INVALID 1.0f |
Definition at line 13 of file gpencil_intern.hh.
| #define GP_STROKE_BUFFER_CHUNK 2048 |
Definition at line 117 of file gpencil_intern.hh.
Referenced by ED_gpencil_sbuffer_ensure().
| enum eGPencil_PaintModes |
| Enumerator | |
|---|---|
| GP_PAINTMODE_DRAW | |
| GP_PAINTMODE_ERASER | |
| GP_PAINTMODE_DRAW_STRAIGHT | |
| GP_PAINTMODE_DRAW_POLY | |
| GP_PAINTMODE_SET_CP | |
Definition at line 108 of file gpencil_intern.hh.
| void GPENCIL_OT_annotate | ( | wmOperatorType * | ot | ) |
Definition at line 2760 of file annotate_paint.cc.
References annotation_draw_cancel(), annotation_draw_exec(), annotation_draw_invoke(), annotation_draw_modal(), annotation_draw_poll(), arrow_types, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, prop_gpencil_drawmodes, PROP_HIDDEN, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_collection_runtime(), RNA_def_enum(), RNA_def_float(), RNA_def_int(), RNA_def_property_flag(), and RNA_def_property_subtype().
Referenced by ED_operatortypes_gpencil_legacy().
| void GPENCIL_OT_annotation_active_frame_delete | ( | wmOperatorType * | ot | ) |
Definition at line 93 of file gpencil_edit.cc.
References annotation_actframe_delete_poll(), gpencil_actframe_delete_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_gpencil_legacy().
| void GPENCIL_OT_annotation_add | ( | wmOperatorType * | ot | ) |
Definition at line 100 of file gpencil_data.cc.
References gpencil_data_add_exec(), gpencil_data_add_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_gpencil_legacy().
| void GPENCIL_OT_data_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 152 of file gpencil_data.cc.
References gpencil_data_unlink_exec(), gpencil_data_unlink_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_gpencil_legacy().
| void GPENCIL_OT_layer_annotation_add | ( | wmOperatorType * | ot | ) |
Definition at line 208 of file gpencil_data.cc.
References gpencil_add_annotation_poll(), gpencil_layer_add_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_gpencil_legacy().
| void GPENCIL_OT_layer_annotation_move | ( | wmOperatorType * | ot | ) |
Definition at line 324 of file gpencil_data.cc.
References GP_LAYER_MOVE_DOWN, GP_LAYER_MOVE_UP, gpencil_active_layer_annotation_poll(), gpencil_layer_move_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_enum().
Referenced by ED_operatortypes_gpencil_legacy().
| void GPENCIL_OT_layer_annotation_remove | ( | wmOperatorType * | ot | ) |
Definition at line 283 of file gpencil_data.cc.
References gpencil_active_layer_annotation_poll(), gpencil_layer_remove_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_gpencil_legacy().
| void gpencil_point_to_xy | ( | const GP_SpaceConversion * | gsc, |
| const bGPDstroke * | gps, | ||
| const bGPDspoint * | pt, | ||
| int * | r_x, | ||
| int * | r_y ) |
Convert a Grease Pencil coordinate (i.e. can be 2D or 3D) to screen-space (2D)
| [out] | r_x | The screen-space x-coordinate of the point |
| [out] | r_y | The screen-space y-coordinate of the point |
Definition at line 220 of file gpencil_utils.cc.
References GP_SpaceConversion::area, BLI_assert, BLI_rctf_size_x(), BLI_rctf_size_y(), ED_view3d_project_int_global(), bGPDstroke::flag, GP_STROKE_2DSPACE, GP_STROKE_3DSPACE, GP_SpaceConversion::mat, mul_m4_v3(), GP_SpaceConversion::region, SPACE_VIEW3D, ScrArea::spacetype, GP_SpaceConversion::subrect, UI_view2d_view_to_region_clip(), GP_SpaceConversion::v2d, V2D_IS_CLIPPED, V3D_PROJ_RET_OK, V3D_PROJ_TEST_NOP, ARegion::winx, ARegion::winy, bGPDspoint::x, rctf::xmin, bGPDspoint::y, and rctf::ymin.
Referenced by annotation_stroke_eraser_dostroke().
| bool gpencil_stroke_inside_circle | ( | const float | mval[2], |
| int | rad, | ||
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1 ) |
Check whether a given stroke segment is inside a circular brush
| mval | The current screen-space coordinates (midpoint) of the brush |
| rad | The radius of the brush |
| x0,y0 | The screen-space x and y coordinates of the start of the stroke segment |
| x1,y1 | The screen-space x and y coordinates of the end of the stroke segment |
Definition at line 176 of file gpencil_utils.cc.
References edge_inside_circle(), and float.
Referenced by annotation_stroke_eraser_dostroke().