Blender  V2.93
ED_curve.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2009 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct BPoint;
31 struct Base;
32 struct BezTriple;
33 struct Curve;
34 struct EditNurb;
35 struct Main;
36 struct Nurb;
37 struct Object;
38 struct Text;
39 struct UndoType;
40 struct View3D;
41 struct bContext;
42 struct wmKeyConfig;
43 struct wmOperator;
44 
45 /* curve_ops.c */
46 void ED_operatortypes_curve(void);
47 void ED_operatormacros_curve(void);
48 void ED_keymap_curve(struct wmKeyConfig *keyconf);
49 
50 /* editcurve.c */
51 struct ListBase *object_editcurve_get(struct Object *ob);
52 
53 void ED_curve_editnurb_load(struct Main *bmain, struct Object *obedit);
54 void ED_curve_editnurb_make(struct Object *obedit);
55 void ED_curve_editnurb_free(struct Object *obedit);
56 
58  struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle);
59 
61  struct bContext *C, struct Object *obedit, float mat[4][4], int type, int newob);
62 
63 bool ED_curve_nurb_select_check(struct View3D *v3d, struct Nurb *nu);
64 int ED_curve_nurb_select_count(struct View3D *v3d, struct Nurb *nu);
65 bool ED_curve_nurb_select_all(const struct Nurb *nu);
66 bool ED_curve_nurb_deselect_all(const struct Nurb *nu);
67 
68 int ED_curve_join_objects_exec(struct bContext *C, struct wmOperator *op);
69 
70 /* editcurve_select.c */
71 bool ED_curve_select_check(struct View3D *v3d, struct EditNurb *editnurb);
72 bool ED_curve_deselect_all(struct EditNurb *editnurb);
73 bool ED_curve_deselect_all_multi_ex(struct Base **bases, int bases_len);
75 bool ED_curve_select_all(struct EditNurb *editnurb);
76 bool ED_curve_select_swap(struct EditNurb *editnurb, bool hide_handles);
77 int ED_curve_select_count(struct View3D *v3d, struct EditNurb *editnurb);
78 
79 /* editcurve_undo.c */
80 void ED_curve_undosys_type(struct UndoType *ut);
81 
82 /* editfont.c */
83 void ED_curve_editfont_load(struct Object *obedit);
84 void ED_curve_editfont_make(struct Object *obedit);
85 void ED_curve_editfont_free(struct Object *obedit);
86 
87 void ED_text_to_object(struct bContext *C, const struct Text *text, const bool split_lines);
88 
89 void ED_curve_beztcpy(struct EditNurb *editnurb,
90  struct BezTriple *dst,
91  struct BezTriple *src,
92  int count);
93 void ED_curve_bpcpy(struct EditNurb *editnurb, struct BPoint *dst, struct BPoint *src, int count);
94 
95 int ED_curve_updateAnimPaths(struct Main *bmain, struct Curve *cu);
96 
97 bool ED_curve_active_center(struct Curve *cu, float center[3]);
98 
100  struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle);
101 
102 /* editfont_undo.c */
103 void ED_font_undosys_type(struct UndoType *ut);
104 
105 #if 0
106 /* debug only */
107 void printknots(struct Object *obedit);
108 #endif
109 
110 #ifdef __cplusplus
111 }
112 #endif
void ED_font_undosys_type(struct UndoType *ut)
bool ED_curve_nurb_deselect_all(const struct Nurb *nu)
void ED_curve_bpcpy(struct EditNurb *editnurb, struct BPoint *dst, struct BPoint *src, int count)
Definition: editcurve.c:7016
int ED_curve_join_objects_exec(struct bContext *C, struct wmOperator *op)
Definition: editcurve.c:6824
void ED_text_to_object(struct bContext *C, const struct Text *text, const bool split_lines)
bool ED_curve_nurb_select_check(struct View3D *v3d, struct Nurb *nu)
void ED_operatortypes_curve(void)
Definition: curve_ops.c:42
bool ED_curve_deselect_all_multi(struct bContext *C)
void ED_curve_editfont_load(struct Object *obedit)
Definition: editfont.c:1910
void ED_keymap_curve(struct wmKeyConfig *keyconf)
Definition: curve_ops.c:160
bool ED_curve_editfont_select_pick(struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle)
Definition: editfont.c:2214
int ED_curve_nurb_select_count(struct View3D *v3d, struct Nurb *nu)
struct ListBase * object_editcurve_get(struct Object *ob)
Definition: editcurve.c:89
bool ED_curve_editnurb_select_pick(struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle)
Definition: editcurve.c:4769
bool ED_curve_nurb_select_all(const struct Nurb *nu)
void ED_curve_editnurb_free(struct Object *obedit)
Definition: editcurve.c:1334
void ED_curve_beztcpy(struct EditNurb *editnurb, struct BezTriple *dst, struct BezTriple *src, int count)
Definition: editcurve.c:7010
int ED_curve_select_count(struct View3D *v3d, struct EditNurb *editnurb)
bool ED_curve_deselect_all_multi_ex(struct Base **bases, int bases_len)
void ED_curve_undosys_type(struct UndoType *ut)
bool ED_curve_select_check(struct View3D *v3d, struct EditNurb *editnurb)
struct Nurb * ED_curve_add_nurbs_primitive(struct bContext *C, struct Object *obedit, float mat[4][4], int type, int newob)
void ED_curve_editfont_free(struct Object *obedit)
Definition: editfont.c:1940
void ED_curve_editnurb_load(struct Main *bmain, struct Object *obedit)
Definition: editcurve.c:1251
int ED_curve_updateAnimPaths(struct Main *bmain, struct Curve *cu)
Definition: editcurve.c:1078
bool ED_curve_select_swap(struct EditNurb *editnurb, bool hide_handles)
bool ED_curve_select_all(struct EditNurb *editnurb)
void ED_operatormacros_curve(void)
Definition: curve_ops.c:136
bool ED_curve_active_center(struct Curve *cu, float center[3])
void ED_curve_editnurb_make(struct Object *obedit)
Definition: editcurve.c:1289
void ED_curve_editfont_make(struct Object *obedit)
Definition: editfont.c:1874
bool ED_curve_deselect_all(struct EditNurb *editnurb)
NSNotificationCenter * center
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
#define C
Definition: RandGen.cpp:39
int count
Definition: BKE_main.h:116