Blender V2.61 - r43446
Enumerations | Functions | Variables

gpencil_edit.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_curve_types.h"
#include "DNA_object_types.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "DNA_gpencil_types.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_gpencil.h"
#include "BKE_library.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "UI_view2d.h"
#include "ED_gpencil.h"
#include "ED_view3d.h"
#include "ED_clip.h"
#include "gpencil_intern.h"

Go to the source code of this file.

Enumerations

enum  { GP_STROKECONVERT_PATH = 1, GP_STROKECONVERT_CURVE }

Functions

bGPdata ** gpencil_data_get_pointers (bContext *C, PointerRNA *ptr)
bGPdatagpencil_data_get_active (bContext *C)
bGPdatagpencil_data_get_active_v3d (Scene *scene)
static int gp_add_poll (bContext *C)
static int gp_data_add_exec (bContext *C, wmOperator *op)
void GPENCIL_OT_data_add (wmOperatorType *ot)
static int gp_data_unlink_poll (bContext *C)
static int gp_data_unlink_exec (bContext *C, wmOperator *op)
void GPENCIL_OT_data_unlink (wmOperatorType *ot)
static int gp_layer_add_exec (bContext *C, wmOperator *op)
void GPENCIL_OT_layer_add (wmOperatorType *ot)
static int gp_actframe_delete_poll (bContext *C)
static int gp_actframe_delete_exec (bContext *C, wmOperator *op)
void GPENCIL_OT_active_frame_delete (wmOperatorType *ot)
static void gp_strokepoint_convertcoords (bContext *C, bGPDstroke *gps, bGPDspoint *pt, float p3d[3], rctf *subrect)
static void gp_stroke_to_path (bContext *C, bGPDlayer *gpl, bGPDstroke *gps, Curve *cu, rctf *subrect)
static int gp_camera_view_subrect (bContext *C, rctf *subrect)
static void gp_stroke_to_bezier (bContext *C, bGPDlayer *gpl, bGPDstroke *gps, Curve *cu, rctf *subrect)
static void gp_layer_to_curve (bContext *C, bGPdata *gpd, bGPDlayer *gpl, short mode)
static int gp_convert_poll (bContext *C)
static int gp_convert_layer_exec (bContext *C, wmOperator *op)
void GPENCIL_OT_convert (wmOperatorType *ot)

Variables

static EnumPropertyItem prop_gpencil_convertmodes []

Detailed Description

Definition in file gpencil_edit.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
GP_STROKECONVERT_PATH 
GP_STROKECONVERT_CURVE 

Definition at line 366 of file gpencil_edit.c.


Function Documentation

static int gp_actframe_delete_exec ( bContext C,
wmOperator op 
) [static]
static int gp_actframe_delete_poll ( bContext C) [static]
static int gp_add_poll ( bContext C) [static]

Definition at line 182 of file gpencil_edit.c.

References gpencil_data_get_pointers(), and NULL.

Referenced by GPENCIL_OT_data_add(), and GPENCIL_OT_layer_add().

static int gp_camera_view_subrect ( bContext C,
rctf subrect 
) [static]
static int gp_convert_layer_exec ( bContext C,
wmOperator op 
) [static]
static int gp_convert_poll ( bContext C) [static]
static int gp_data_add_exec ( bContext C,
wmOperator op 
) [static]
static int gp_data_unlink_exec ( bContext C,
wmOperator op 
) [static]
static int gp_data_unlink_poll ( bContext C) [static]

Definition at line 229 of file gpencil_edit.c.

References gpencil_data_get_pointers(), and NULL.

Referenced by GPENCIL_OT_data_unlink().

static int gp_layer_add_exec ( bContext C,
wmOperator op 
) [static]
static void gp_layer_to_curve ( bContext C,
bGPdata gpd,
bGPDlayer gpl,
short  mode 
) [static]
static void gp_stroke_to_bezier ( bContext C,
bGPDlayer gpl,
bGPDstroke gps,
Curve cu,
rctf subrect 
) [static]
static void gp_stroke_to_path ( bContext C,
bGPDlayer gpl,
bGPDstroke gps,
Curve cu,
rctf subrect 
) [static]
static void gp_strokepoint_convertcoords ( bContext C,
bGPDstroke gps,
bGPDspoint pt,
float  p3d[3],
rctf subrect 
) [static]
bGPdata* gpencil_data_get_active ( bContext C) [read]
bGPdata* gpencil_data_get_active_v3d ( Scene scene) [read]

Definition at line 172 of file gpencil_edit.c.

References Scene::basact, Scene::gpd, Object::gpd, NULL, and Base::object.

Referenced by draw_gpencil_view3d().

bGPdata** gpencil_data_get_pointers ( bContext C,
PointerRNA ptr 
) [read]
void GPENCIL_OT_active_frame_delete ( wmOperatorType ot)
void GPENCIL_OT_convert ( wmOperatorType ot)
void GPENCIL_OT_data_add ( wmOperatorType ot)
void GPENCIL_OT_data_unlink ( wmOperatorType ot)
void GPENCIL_OT_layer_add ( wmOperatorType ot)

Variable Documentation

Initial value:
 {
    {GP_STROKECONVERT_PATH, "PATH", 0, "Path", ""},
    {GP_STROKECONVERT_CURVE, "CURVE", 0, "Bezier Curve", ""},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 372 of file gpencil_edit.c.