Krita Source Code Documentation
Loading...
Searching...
No Matches
bspline_base.h File Reference
#include "local_definitions.h"
#include <complex.h>

Go to the source code of this file.

Classes

struct  BCtype_c
 
struct  BCtype_d
 
struct  BCtype_s
 
struct  BCtype_z
 
struct  Bspline
 
struct  Ugrid
 

Typedefs

typedef complex double complex_double
 
typedef complex float complex_float
 

Enumerations

enum  bc_code {
  PERIODIC , DERIV1 , DERIV2 , FLAT ,
  NATURAL , ANTIPERIODIC
}
 
enum  spline_code {
  U1D , U2D , U3D , NU1D ,
  NU2D , NU3D , MULTI_U1D , MULTI_U2D ,
  MULTI_U3D , MULTI_NU1D , MULTI_NU2D , MULTI_NU3D
}
 
enum  type_code { SINGLE_REAL , DOUBLE_REAL , SINGLE_COMPLEX , DOUBLE_COMPLEX }
 

Functions

void destroy_Bspline (void *spline)
 

Typedef Documentation

◆ complex_double

typedef complex double complex_double

Definition at line 34 of file bspline_base.h.

◆ complex_float

typedef complex float complex_float

Definition at line 33 of file bspline_base.h.

Enumeration Type Documentation

◆ bc_code

enum bc_code
Enumerator
PERIODIC 
DERIV1 
DERIV2 
FLAT 
NATURAL 
ANTIPERIODIC 

Definition at line 50 of file bspline_base.h.

bc_code
@ FLAT
@ NATURAL
@ DERIV1
@ ANTIPERIODIC
@ DERIV2
@ PERIODIC

◆ spline_code

Enumerator
U1D 
U2D 
U3D 
NU1D 
NU2D 
NU3D 
MULTI_U1D 
MULTI_U2D 
MULTI_U3D 
MULTI_NU1D 
MULTI_NU2D 
MULTI_NU3D 

Definition at line 51 of file bspline_base.h.

51 { U1D , U2D , U3D ,
52 NU1D , NU2D , NU3D ,
spline_code
@ MULTI_NU1D
@ NU1D
@ MULTI_NU2D
@ U1D
@ NU2D
@ MULTI_U1D
@ MULTI_U2D
@ MULTI_U3D
@ MULTI_NU3D
@ U2D
@ U3D
@ NU3D

◆ type_code

enum type_code
Enumerator
SINGLE_REAL 
DOUBLE_REAL 
SINGLE_COMPLEX 
DOUBLE_COMPLEX 

Definition at line 55 of file bspline_base.h.

@ DOUBLE_REAL
@ SINGLE_REAL
@ DOUBLE_COMPLEX
@ SINGLE_COMPLEX

Function Documentation

◆ destroy_Bspline()

void destroy_Bspline ( void * spline)

Definition at line 1872 of file bspline_create.cpp.

1873{
1874 Bspline *sp = (Bspline *)spline;
1875 if (sp->sp_code <= U3D)
1876 destroy_UBspline (sp);
1877 else if (sp->sp_code <= NU3D)
1878 destroy_NUBspline (sp);
1879 else if (sp->sp_code <= MULTI_U3D)
1881 else
1882 fprintf (stderr, "Error in destroy_Bspline: invalid spline code %d.\n",
1883 sp->sp_code);
1884}
void destroy_UBspline(Bspline *spline)
void destroy_NUBspline(Bspline *spline)
void destroy_multi_UBspline(Bspline *spline)
spline_code sp_code

References destroy_multi_UBspline(), destroy_NUBspline(), destroy_UBspline(), MULTI_U3D, NU3D, Bspline::sp_code, and U3D.