Blender  V2.93
Classes | Macros | Typedefs | Enumerations
DNA_curveprofile_types.h File Reference
#include "DNA_vec_types.h"

Go to the source code of this file.

Classes

struct  CurveProfilePoint
 
struct  CurveProfile
 

Macros

#define PROF_TABLE_MAX   512
 
#define PROF_RESOL   16
 
#define PROF_TABLE_LEN(n_pts)   min_ii(PROF_TABLE_MAX, (((n_pts - 1)) * PROF_RESOL) + 1)
 

Typedefs

typedef struct CurveProfilePoint CurveProfilePoint
 
typedef struct CurveProfile CurveProfile
 
typedef enum eCurveProfilePresets eCurveProfilePresets
 

Enumerations

enum  { PROF_SELECT = (1 << 0) , PROF_H1_SELECT = (1 << 1) , PROF_H2_SELECT = (1 << 2) }
 
enum  { PROF_USE_CLIP = (1 << 0) , PROF_SAMPLE_STRAIGHT_EDGES = (1 << 2) , PROF_SAMPLE_EVEN_LENGTHS = (1 << 3) , PROF_DIRTY_PRESET = (1 << 4) }
 
enum  eCurveProfilePresets {
  PROF_PRESET_LINE = 0 , PROF_PRESET_SUPPORTS = 1 , PROF_PRESET_CORNICE = 2 , PROF_PRESET_CROWN = 3 ,
  PROF_PRESET_STEPS = 4
}
 

Macro Definition Documentation

◆ PROF_RESOL

#define PROF_RESOL   16

Number of table points per control point.

Definition at line 35 of file DNA_curveprofile_types.h.

◆ PROF_TABLE_LEN

#define PROF_TABLE_LEN (   n_pts)    min_ii(PROF_TABLE_MAX, (((n_pts - 1)) * PROF_RESOL) + 1)

Dynamic size of widget's high resolution table. Input should be profile->totpoint.

Definition at line 37 of file DNA_curveprofile_types.h.

◆ PROF_TABLE_MAX

#define PROF_TABLE_MAX   512

Number of points in high resolution table is dynamic up to a maximum.

Definition at line 33 of file DNA_curveprofile_types.h.

Typedef Documentation

◆ CurveProfile

typedef struct CurveProfile CurveProfile

Defines a profile.

◆ CurveProfilePoint

Each control point that makes up the profile.

Note
The flags use the same enum as Bezier curves, but they aren't guaranteed to have identical functionality, and all types aren't implemented.

◆ eCurveProfilePresets

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

CurveProfilePoint.flag

Enumerator
PROF_SELECT 
PROF_H1_SELECT 
PROF_H2_SELECT 

Definition at line 61 of file DNA_curveprofile_types.h.

◆ anonymous enum

anonymous enum

CurveProfile.flag

Enumerator
PROF_USE_CLIP 
PROF_SAMPLE_STRAIGHT_EDGES 
PROF_SAMPLE_EVEN_LENGTHS 
PROF_DIRTY_PRESET 

Definition at line 90 of file DNA_curveprofile_types.h.

◆ eCurveProfilePresets

Enumerator
PROF_PRESET_LINE 
PROF_PRESET_SUPPORTS 
PROF_PRESET_CORNICE 
PROF_PRESET_CROWN 
PROF_PRESET_STEPS 

Definition at line 98 of file DNA_curveprofile_types.h.