Blender V4.3
rna_curve.cc File Reference
#include <cstdlib>
#include "DNA_curve_types.h"
#include "DNA_key_types.h"
#include "DNA_scene_types.h"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "rna_internal.hh"
#include "WM_types.hh"

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 *, StructRNA *srna)
 
static void rna_def_nurbs (BlenderRNA *, StructRNA *)
 
static void rna_def_font (BlenderRNA *, 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()

◆ rna_def_bpoint()

◆ rna_def_charinfo()

◆ RNA_def_curve()

◆ rna_def_curve()

static void rna_def_curve ( BlenderRNA * brna)
static

Definition at line 1566 of file rna_curve.cc.

References CU_3D, 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_TEXSPACE_FLAG_AUTO, CU_TWIST_MINIMUM, CU_TWIST_TANGENT, CU_TWIST_Z_UP, curve3d_fill_mode_items, FLT_MAX, NC_OBJECT, ND_DRAW, 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_nurb()

◆ rna_def_curve_spline_bezpoints()

◆ rna_def_curve_spline_points()

◆ rna_def_curve_splines()

◆ rna_def_font()

◆ rna_def_nurbs()

static void rna_def_nurbs ( BlenderRNA * ,
StructRNA *  )
static

Definition at line 1090 of file rna_curve.cc.

Referenced by rna_def_surface(), and rna_def_text().

◆ rna_def_path()

◆ 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()

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, nullptr, 0, nullptr, nullptr},
}
@ HD_VECT
@ HD_FREE
@ HD_AUTO
@ HD_ALIGN

Definition at line 30 of file rna_curve.cc.

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, nullptr, 0, nullptr, nullptr},
}
@ CU_FRONT
@ CU_BACK

Definition at line 133 of file rna_curve.cc.

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, "Bézier", ""},
{CU_NURBS, "NURBS", 0, "Ease", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ CU_BEZIER
@ CU_POLY
@ CU_NURBS

Definition at line 125 of file rna_curve.cc.

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[]

◆ 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, nullptr, 0, nullptr, nullptr},
}
@ HD_AUTO_ANIM

Definition at line 39 of file rna_curve.cc.

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 884 of file rna_curve.cc.

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