Blender  V3.3
Functions | Variables
rna_curve.c File Reference
#include <stdlib.h>
#include "DNA_curve_types.h"
#include "DNA_key_types.h"
#include "DNA_material_types.h"
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_vfont.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "WM_types.h"

Go to the source code of this file.

Functions

static void rna_def_bpoint (BlenderRNA *brna)
 
static void rna_def_beztriple (BlenderRNA *brna)
 
static void rna_def_path (BlenderRNA *UNUSED(brna), StructRNA *srna)
 
static void rna_def_nurbs (BlenderRNA *UNUSED(brna), StructRNA *UNUSED(srna))
 
static void rna_def_font (BlenderRNA *UNUSED(brna), StructRNA *srna)
 
static void rna_def_textbox (BlenderRNA *brna)
 
static void rna_def_charinfo (BlenderRNA *brna)
 
static void rna_def_surface (BlenderRNA *brna)
 
static void rna_def_text (BlenderRNA *brna)
 
static void rna_def_curve_spline_points (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_curve_spline_bezpoints (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_curve_splines (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_curve (BlenderRNA *brna)
 
static void rna_def_curve_nurb (BlenderRNA *brna)
 
void RNA_def_curve (BlenderRNA *brna)
 

Variables

static const EnumPropertyItem beztriple_handle_type_items []
 
const EnumPropertyItem rna_enum_keyframe_handle_type_items []
 
const EnumPropertyItem rna_enum_beztriple_interpolation_mode_items []
 
static const EnumPropertyItem curve_type_items []
 
static const EnumPropertyItem curve3d_fill_mode_items []
 
static const float tilt_limit = DEG2RADF(21600.0f)
 

Function Documentation

◆ rna_def_beztriple()

static void rna_def_beztriple ( BlenderRNA brna)
static

◆ rna_def_bpoint()

static void rna_def_bpoint ( BlenderRNA brna)
static

◆ rna_def_charinfo()

static void rna_def_charinfo ( BlenderRNA brna)
static

◆ rna_def_curve()

static void rna_def_curve ( BlenderRNA brna)
static

Definition at line 1500 of file rna_curve.c.

References CU_3D, CU_AUTOSPACE, CU_BEV_MODE_CURVE_PROFILE, CU_BEV_MODE_OBJECT, CU_BEV_MODE_ROUND, CU_BEVFAC_MAP_RESOLU, CU_BEVFAC_MAP_SEGMENT, CU_BEVFAC_MAP_SPLINE, CU_FILL_CAPS, CU_MAP_TAPER, CU_TAPER_RADIUS_ADD, CU_TAPER_RADIUS_MULTIPLY, CU_TAPER_RADIUS_OVERRIDE, CU_TWIST_MINIMUM, CU_TWIST_TANGENT, CU_TWIST_Z_UP, curve3d_fill_mode_items, NC_OBJECT, ND_DRAW, NULL, PROP_ANIMATABLE, PROP_BOOLEAN, PROP_COLLECTION, PROP_EDITABLE, PROP_ENUM, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_NONE, PROP_POINTER, PROP_PROPORTIONAL, PROP_PTR_NO_OWNERSHIP, PROP_TIME, PROP_TRANSLATION, PROP_UNIT_LENGTH, PROP_XYZ, PROPOVERRIDE_OVERRIDABLE_LIBRARY, RNA_api_curve(), rna_def_animdata_common(), rna_def_curve_splines(), rna_def_path(), RNA_def_property(), RNA_def_property_array(), RNA_def_property_boolean_funcs(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_collection_funcs(), RNA_def_property_collection_sdna(), RNA_def_property_editable_func(), RNA_def_property_enum_bitflag_sdna(), RNA_def_property_enum_funcs(), RNA_def_property_enum_items(), RNA_def_property_enum_sdna(), RNA_def_property_flag(), RNA_def_property_float_funcs(), RNA_def_property_float_sdna(), RNA_def_property_int_sdna(), RNA_def_property_override_flag(), RNA_def_property_pointer_funcs(), RNA_def_property_pointer_sdna(), RNA_def_property_range(), RNA_def_property_srna(), RNA_def_property_struct_type(), RNA_def_property_ui_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_refine_func(), RNA_def_struct_ui_icon(), RNA_def_struct_ui_text(), and RNA_TRANSLATION_PREC_DEFAULT.

Referenced by RNA_def_curve().

◆ RNA_def_curve()

void RNA_def_curve ( BlenderRNA brna)

◆ rna_def_curve_nurb()

static void rna_def_curve_nurb ( BlenderRNA brna)
static

◆ rna_def_curve_spline_bezpoints()

static void rna_def_curve_spline_bezpoints ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_curve_spline_points()

static void rna_def_curve_spline_points ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_curve_splines()

static void rna_def_curve_splines ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_font()

static void rna_def_font ( BlenderRNA UNUSEDbrna,
StructRNA srna 
)
static

◆ rna_def_nurbs()

static void rna_def_nurbs ( BlenderRNA UNUSEDbrna,
StructRNA UNUSEDsrna 
)
static

Definition at line 1049 of file rna_curve.c.

Referenced by rna_def_surface(), and rna_def_text().

◆ rna_def_path()

static void rna_def_path ( BlenderRNA UNUSEDbrna,
StructRNA srna 
)
static

◆ rna_def_surface()

static void rna_def_surface ( BlenderRNA brna)
static

◆ rna_def_text()

static void rna_def_text ( BlenderRNA brna)
static

◆ rna_def_textbox()

static void rna_def_textbox ( BlenderRNA brna)
static

Variable Documentation

◆ beztriple_handle_type_items

const EnumPropertyItem beztriple_handle_type_items[]
static
Initial value:
= {
{HD_FREE, "FREE", 0, "Free", ""},
{HD_VECT, "VECTOR", 0, "Vector", ""},
{HD_ALIGN, "ALIGNED", 0, "Aligned", ""},
{HD_AUTO, "AUTO", 0, "Auto", ""},
{0, NULL, 0, NULL, NULL},
}
@ HD_VECT
@ HD_FREE
@ HD_AUTO
@ HD_ALIGN

Definition at line 30 of file rna_curve.c.

Referenced by rna_def_beztriple().

◆ curve3d_fill_mode_items

const EnumPropertyItem curve3d_fill_mode_items[]
static
Initial value:
= {
{0, "FULL", 0, "Full", ""},
{CU_BACK, "BACK", 0, "Back", ""},
{CU_FRONT, "FRONT", 0, "Front", ""},
{CU_FRONT | CU_BACK, "HALF", 0, "Half", ""},
{0, NULL, 0, NULL, NULL},
}
@ CU_FRONT
@ CU_BACK

Definition at line 134 of file rna_curve.c.

Referenced by rna_def_curve().

◆ curve_type_items

const EnumPropertyItem curve_type_items[]
static
Initial value:
= {
{CU_POLY, "POLY", 0, "Poly", ""},
{CU_BEZIER, "BEZIER", 0, "Bezier", ""},
{CU_NURBS, "NURBS", 0, "Ease", ""},
{0, NULL, 0, NULL, NULL},
}
@ CU_BEZIER
@ CU_POLY
@ CU_NURBS

Definition at line 126 of file rna_curve.c.

Referenced by RNA_api_ui_layout(), rna_def_curve_nurb(), rna_def_curve_paint_settings(), and rna_def_curve_splines().

◆ rna_enum_beztriple_interpolation_mode_items

const EnumPropertyItem rna_enum_beztriple_interpolation_mode_items[]
Note
this is a near exact duplicate of gpencil_interpolation_type_items, Changes here will likely apply there too.

Definition at line 68 of file rna_curve.c.

Referenced by ACTION_OT_interpolation_type(), GRAPH_OT_interpolation_type(), rna_def_fkeyframe(), and rna_def_userdef_edit().

◆ rna_enum_keyframe_handle_type_items

const EnumPropertyItem rna_enum_keyframe_handle_type_items[]
Initial value:
= {
{HD_FREE, "FREE", ICON_HANDLE_FREE, "Free", "Completely independent manually set handle"},
"ALIGNED",
ICON_HANDLE_ALIGNED,
"Aligned",
"Manually set handle with rotation locked together with its pair"},
"VECTOR",
ICON_HANDLE_VECTOR,
"Vector",
"Automatic handles that create straight lines"},
"AUTO",
ICON_HANDLE_AUTO,
"Automatic",
"Automatic handles that create smooth curves"},
"AUTO_CLAMPED",
ICON_HANDLE_AUTOCLAMPED,
"Auto Clamped",
"Automatic handles that create smooth curves which only change direction at keyframes"},
{0, NULL, 0, NULL, NULL},
}
@ HD_AUTO_ANIM

Definition at line 39 of file rna_curve.c.

Referenced by ACTION_OT_handle_type(), GRAPH_OT_handle_type(), rna_def_fkeyframe(), and rna_def_userdef_edit().

◆ tilt_limit

const float tilt_limit = DEG2RADF(21600.0f)
static

Definition at line 844 of file rna_curve.c.

Referenced by rna_def_beztriple(), rna_def_bpoint(), and v3d_editvertex_buts().