Blender V4.3
rna_curves.cc File Reference
#include <cstdlib>
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "rna_internal.hh"
#include "DNA_curves_types.h"
#include "BKE_attribute.h"
#include "WM_types.hh"

Go to the source code of this file.

Functions

static void rna_def_curves_point (BlenderRNA *brna)
 
static void rna_def_read_only_float_vector (BlenderRNA *brna)
 
static void rna_def_curves_curve (BlenderRNA *brna)
 
static void rna_def_curves (BlenderRNA *brna)
 
void RNA_def_curves (BlenderRNA *brna)
 

Variables

const EnumPropertyItem rna_enum_curves_type_items []
 
const EnumPropertyItem rna_enum_curves_handle_type_items []
 
const EnumPropertyItem rna_enum_curve_normal_mode_items []
 

Function Documentation

◆ RNA_def_curves()

void RNA_def_curves ( BlenderRNA * brna)

Definition at line 564 of file rna_curves.cc.

References rna_def_curves(), rna_def_curves_curve(), and rna_def_curves_point().

◆ rna_def_curves()

◆ rna_def_curves_curve()

◆ rna_def_curves_point()

◆ rna_def_read_only_float_vector()

Variable Documentation

◆ rna_enum_curve_normal_mode_items

const EnumPropertyItem rna_enum_curve_normal_mode_items[]
Initial value:
= {
"MINIMUM_TWIST",
ICON_NONE,
"Minimum Twist",
"Calculate normals with the smallest twist around the curve tangent across the whole curve"},
"Z_UP",
ICON_NONE,
"Z Up",
"Calculate normals perpendicular to the Z axis and the curve tangent. If a series of points "
"is vertical, the X axis is used."},
"FREE",
ICON_NONE,
"Free",
"Use the stored custom normal attribute as the final normals"},
{0, nullptr, 0, nullptr, nullptr},
}
@ NORMAL_MODE_MINIMUM_TWIST
@ NORMAL_MODE_FREE
@ NORMAL_MODE_Z_UP

Definition at line 54 of file rna_curves.cc.

Referenced by blender::nodes::node_geo_set_curve_normal_cc::node_rna().

◆ rna_enum_curves_handle_type_items

const EnumPropertyItem rna_enum_curves_handle_type_items[]
Initial value:
= {
"FREE",
0,
"Free",
"The handle can be moved anywhere, and doesn't influence the point's other handle"},
"AUTO",
0,
"Auto",
"The location is automatically calculated to be smooth"},
"VECTOR",
0,
"Vector",
"The location is calculated to point to the next/previous control point"},
"ALIGN",
0,
"Align",
"The location is constrained to point in the opposite direction as the other handleW"},
{0, nullptr, 0, nullptr, nullptr},
}
@ BEZIER_HANDLE_FREE
@ BEZIER_HANDLE_ALIGN
@ BEZIER_HANDLE_VECTOR
@ BEZIER_HANDLE_AUTO

Definition at line 30 of file rna_curves.cc.

Referenced by blender::ed::curves::CURVES_OT_handle_type_set(), and blender::ed::greasepencil::GREASE_PENCIL_OT_set_handle_type().

◆ rna_enum_curves_type_items

const EnumPropertyItem rna_enum_curves_type_items[]
Initial value:
= {
{CURVE_TYPE_CATMULL_ROM, "CATMULL_ROM", 0, "Catmull Rom", ""},
{CURVE_TYPE_POLY, "POLY", 0, "Poly", ""},
{CURVE_TYPE_BEZIER, "BEZIER", 0, "Bézier", ""},
{CURVE_TYPE_NURBS, "NURBS", 0, "NURBS", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ CURVE_TYPE_BEZIER
@ CURVE_TYPE_NURBS
@ CURVE_TYPE_POLY
@ CURVE_TYPE_CATMULL_ROM

Definition at line 22 of file rna_curves.cc.

Referenced by blender::ed::curves::CURVES_OT_curve_type_set(), blender::io::usd::USDCurvesWriter::do_write(), blender::ed::greasepencil::GREASE_PENCIL_OT_set_curve_type(), and blender::nodes::node_geo_curve_spline_type_cc::node_rna().