BRL-CAD
libpc (Parametrics and Constraints)
Collaboration diagram for libpc (Parametrics and Constraints):

Modules

 Constraint Solution
 
 EBNF Parser
 
 Database Input/Output/Updation
 

Files

file  pc.h
 

Data Structures

struct  pc_param
 
struct  pc_constraint_fp
 
struct  pc_constrnt
 
struct  pc_pc_set
 

Macros

#define PC_PCSET_PUSHP(_pcsp, _par)   BU_LIST_PUSH(&(_pcsp->ps->l),&(_par->l));
 
#define PC_PCSET_PUSHC(_pcsp, _con)   BU_LIST_PUSH(&(_pcsp->cs->l),&(_con->l));
 
#define PC_DB_FASTF_T   1
 
#define PC_DB_POINT_T   2
 
#define PC_DB_VECTOR_T   3
 
#define PC_DB_BYSTRUCT   1
 
#define PC_DB_BYEXPR   2
 

Functions

void pc_init_pcset (struct pc_pc_set *pcs)
 
void pc_free_pcset (struct pc_pc_set *pcs)
 
void pc_free_constraint (struct pc_constrnt *c)
 
void pc_getparameter (struct pc_param **p, int t)
 
void pc_pushparam_expr (struct pc_pc_set *pcsp, const char *name, const char *str)
 
void pc_pushparam_struct (struct pc_pc_set *pcs, const char *name, int type, void *ptr)
 
void pc_getconstraint_expr (struct pc_constrnt **c)
 
void pc_getconstraint_struct (struct pc_constrnt **c, int nargs)
 
void pc_pushconstraint_expr (struct pc_pc_set *pcsp, const char *name, const char *str)
 
void pc_pushconstraint_struct (struct pc_pc_set *pcs, const char *name, int nargs, int dimension, int(*fp)(double **args), const char **args)
 
void pc_pushconstraint_struct1 (struct pc_pc_set *pcs, struct pc_constrnt *c)
 
void pc_pushconstraint (struct pc_pc_set *pcs, const char *str)
 
int pc_isperpendicular (double **v)
 
void pc_mk_isperpendicular (struct pc_constrnt **c, const char *name, const char **args)
 
int pc_ismodpositive (double **v)
 
void pc_mk_ismodpositive (struct pc_constrnt **c, const char *name, const char **args)
 

Detailed Description

Macro Definition Documentation

#define PC_PCSET_PUSHP (   _pcsp,
  _par 
)    BU_LIST_PUSH(&(_pcsp->ps->l),&(_par->l));

Definition at line 56 of file pc.h.

#define PC_PCSET_PUSHC (   _pcsp,
  _con 
)    BU_LIST_PUSH(&(_pcsp->cs->l),&(_con->l));

Definition at line 58 of file pc.h.

#define PC_DB_FASTF_T   1

Definitions for data storage and transfer type information

Definition at line 62 of file pc.h.

Referenced by main().

#define PC_DB_POINT_T   2

Definition at line 63 of file pc.h.

Referenced by main().

#define PC_DB_VECTOR_T   3

Definition at line 64 of file pc.h.

Referenced by main().

#define PC_DB_BYSTRUCT   1

Definition at line 66 of file pc.h.

#define PC_DB_BYEXPR   2

Definition at line 67 of file pc.h.

Function Documentation

void pc_init_pcset ( struct pc_pc_set pcs)

Referenced by main().

void pc_free_pcset ( struct pc_pc_set pcs)

Referenced by main().

void pc_free_constraint ( struct pc_constrnt c)

Referenced by main().

void pc_getparameter ( struct pc_param **  p,
int  t 
)
void pc_pushparam_expr ( struct pc_pc_set pcsp,
const char *  name,
const char *  str 
)
void pc_pushparam_struct ( struct pc_pc_set pcs,
const char *  name,
int  type,
void *  ptr 
)

Referenced by main().

void pc_getconstraint_expr ( struct pc_constrnt **  c)
void pc_getconstraint_struct ( struct pc_constrnt **  c,
int  nargs 
)
void pc_pushconstraint_expr ( struct pc_pc_set pcsp,
const char *  name,
const char *  str 
)

Referenced by main().

void pc_pushconstraint_struct ( struct pc_pc_set pcs,
const char *  name,
int  nargs,
int  dimension,
int(*)(double **args)  fp,
const char **  args 
)

Referenced by main().

void pc_pushconstraint_struct1 ( struct pc_pc_set pcs,
struct pc_constrnt c 
)
void pc_pushconstraint ( struct pc_pc_set pcs,
const char *  str 
)
int pc_isperpendicular ( double **  v)

Referenced by main().

void pc_mk_isperpendicular ( struct pc_constrnt **  c,
const char *  name,
const char **  args 
)

Referenced by main().

int pc_ismodpositive ( double **  v)
void pc_mk_ismodpositive ( struct pc_constrnt **  c,
const char *  name,
const char **  args 
)