BRL-CAD
constraint.c File Reference
#include "common.h"
#include "bu/cmd.h"
#include "ged.h"
Include dependency graph for constraint.c:

Go to the source code of this file.

Functions

HIDDEN int constraint_set (void *datap, int argc, const char *argv[])
 
HIDDEN int constraint_get (void *datap, int argc, const char *argv[])
 
HIDDEN int constraint_show (void *datap, int argc, const char *argv[])
 
HIDDEN int constraint_eval (void *datap, int argc, const char *argv[])
 
HIDDEN void constraint_usage (struct bu_vls *vp, const char *argv0)
 
HIDDEN int constraint_help (void *datap, int argc, const char *argv[])
 
int ged_constraint (struct ged *gedp, int argc, const char *argv[])
 

Function Documentation

HIDDEN int constraint_set ( void *  datap,
int  argc,
const char *  argv[] 
)

Definition at line 29 of file constraint.c.

References BRLCAD_ERROR, BRLCAD_OK, bu_avs_add(), bu_avs_free(), BU_AVS_INIT_ZERO, bu_vls_addr(), bu_vls_free(), bu_vls_from_argv(), BU_VLS_INIT_ZERO, bu_vls_printf(), directory::d_namep, db5_get_attributes(), db5_update_attributes(), db_lookup(), rt_wdb::dbip, GED_CHECK_READ_ONLY, GED_ERROR, ged::ged_result_str, ged::ged_wdbp, and LOOKUP_QUIET.

Referenced by ged_constraint().

Here is the call graph for this function:

HIDDEN int constraint_get ( void *  datap,
int  argc,
const char *  argv[] 
)

Definition at line 70 of file constraint.c.

References bu_attribute_value_set::avp, BRLCAD_ERROR, BRLCAD_OK, bu_avs_free(), bu_avs_init_empty(), bu_vls_printf(), bu_attribute_value_set::count, directory::d_namep, db5_get_attributes(), db_lookup(), rt_wdb::dbip, ged::ged_result_str, ged::ged_wdbp, LOOKUP_QUIET, bu_attribute_value_pair::name, RT_DIR_NULL, and bu_attribute_value_pair::value.

Referenced by ged_constraint().

Here is the call graph for this function:

HIDDEN int constraint_show ( void *  datap,
int  argc,
const char *  argv[] 
)

Definition at line 112 of file constraint.c.

References bu_attribute_value_set::avp, BRLCAD_ERROR, BRLCAD_OK, bu_avs_free(), bu_avs_init_empty(), bu_vls_printf(), bu_attribute_value_set::count, directory::d_namep, db5_get_attributes(), db_lookup(), rt_wdb::dbip, ged::ged_result_str, ged::ged_wdbp, LOOKUP_QUIET, bu_attribute_value_pair::name, RT_DIR_NULL, and bu_attribute_value_pair::value.

Referenced by ged_constraint().

Here is the call graph for this function:

HIDDEN int constraint_eval ( void *  datap,
int  argc,
const char *  argv[] 
)

Definition at line 155 of file constraint.c.

References bu_attribute_value_set::avp, BRLCAD_ERROR, BRLCAD_OK, bu_avs_free(), bu_avs_init_empty(), bu_vls_printf(), bu_attribute_value_set::count, directory::d_namep, db5_get_attributes(), db_lookup(), rt_wdb::dbip, GED_CHECK_READ_ONLY, GED_ERROR, ged::ged_result_str, ged::ged_wdbp, LOOKUP_QUIET, bu_attribute_value_pair::name, RT_DIR_NULL, and bu_attribute_value_pair::value.

Referenced by ged_constraint().

Here is the call graph for this function:

HIDDEN void constraint_usage ( struct bu_vls vp,
const char *  argv0 
)

Definition at line 200 of file constraint.c.

References bu_vls_printf().

Referenced by constraint_help(), and ged_constraint().

Here is the call graph for this function:

HIDDEN int constraint_help ( void *  datap,
int  argc,
const char *  argv[] 
)

Definition at line 212 of file constraint.c.

References BRLCAD_ERROR, BRLCAD_OK, bu_vls_printf(), constraint_usage(), and ged::ged_result_str.

Referenced by ged_constraint().

Here is the call graph for this function:

int ged_constraint ( struct ged gedp,
int  argc,
const char *  argv[] 
)

create, update, remove, and list geometric and dimensional constraints.

Definition at line 294 of file constraint.c.

References BRLCAD_OK, bu_cmd(), BU_CMD_NULL, BU_STR_EQUIV, bu_vls_printf(), bu_vls_trunc(), constraint_eval(), constraint_get(), constraint_help(), constraint_set(), constraint_show(), constraint_usage(), db_version(), rt_wdb::dbip, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, and ged::ged_wdbp.

Here is the call graph for this function: