/Users/bernard/b20/bsoft/tcltk/tcltk_bmodel.cpp(3)

NAME
/Users/bernard/b20/bsoft/tcltk/tcltk_bmodel.cpp - A shared object to load Bsoft model files in TCL/Tk.

SYNOPSIS

#include <tk.h>
#include 'tcltk_bmodel.h'
#include 'rwmodel.h'
#include 'rwimg.h'
#include 'model_create.h'
#include 'model_map.h'
#include 'model_select.h'
#include 'model_mask.h'
#include 'model_color.h'
#include 'model_views.h'
#include 'mg_processing.h'
#include 'Vector3.h'
#include 'linked_list.h'
#include 'Color.h'
#include 'utilities.h'

  Functions
Tcl_Obj * do_find (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * do_get (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
int do_set (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
int do_delete (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
int do_delete_non_selected (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
int do_components_to_particles (Bmodel *model, Bproject *project, int objc, Tcl_Obj *CONST objv[])
int do_extract_segments (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
int do_create_shell (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * do_component_type (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * do_component (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * do_link (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * comptype_count (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * comptype_count_selected (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * comptype_ids (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * comptype_list (Bmodel *model)
Tcl_Obj * comptype_create_update (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * comptype_select (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * comptype_deselect (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * comptype_first_selected (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_count (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_count_selected (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_ids (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_location (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_distance (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_img_coords (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_fom (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_radius (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_select (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_move (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_create (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_delete (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * component_color (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * link_count (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * link_count_selected (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * link_ids (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * link_img_coords (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * link_select (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * link_create (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
Tcl_Obj * link_delete (Bmodel *model, int objc, Tcl_Obj *CONST objv[])
int model_processing (Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
Implements the 'Bmodel' command in Tcl/Tk to access model parameter files through Bsoft.
int set_component_radius (Bmodel *model, float radius)
int set_link_radius (Bmodel *model, float radius)

  Variables
int verbose
Bimage * imglist
Bmodel * model
Bproject * project

Detailed Description

A shared object to load Bsoft model files in TCL/Tk.

Author:
    Bernard Heymann

Date:
    Created: 20071002

    Modified: 20191010

Definition in file tcltk_bmodel.cpp.

Function Documentation

  Tcl_Obj * component_color (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1245 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_count (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 860 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_count_selected (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 877 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_create (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1181 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_delete (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1219 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_distance (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 938 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_fom (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1028 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_ids (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 894 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_img_coords (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 966 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_location (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 915 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_move (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1155 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_radius (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1057 of file tcltk_bmodel.cpp.

  Tcl_Obj * component_select (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1086 of file tcltk_bmodel.cpp.

  Tcl_Obj * comptype_count (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 606 of file tcltk_bmodel.cpp.

  Tcl_Obj * comptype_count_selected (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 621 of file tcltk_bmodel.cpp.

  Tcl_Obj * comptype_create_update (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 670 of file tcltk_bmodel.cpp.

  Tcl_Obj * comptype_deselect (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 720 of file tcltk_bmodel.cpp.

  Tcl_Obj * comptype_first_selected (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 745 of file tcltk_bmodel.cpp.

  Tcl_Obj * comptype_ids (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 636 of file tcltk_bmodel.cpp.

  Tcl_Obj * comptype_list (Bmodel * model)

Definition at line 652 of file tcltk_bmodel.cpp.

  Tcl_Obj * comptype_select (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 695 of file tcltk_bmodel.cpp.

  Tcl_Obj * do_component (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 797 of file tcltk_bmodel.cpp.

  Tcl_Obj * do_component_type (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 556 of file tcltk_bmodel.cpp.

  int do_components_to_particles (Bmodel * model, Bproject * project, int objc, Tcl_Obj *CONST objv[])

Definition at line 411 of file tcltk_bmodel.cpp.

  int do_create_shell (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 494 of file tcltk_bmodel.cpp.

  int do_delete (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 391 of file tcltk_bmodel.cpp.

  int do_delete_non_selected (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 404 of file tcltk_bmodel.cpp.

  int do_extract_segments (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 462 of file tcltk_bmodel.cpp.

  Tcl_Obj * do_find (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 209 of file tcltk_bmodel.cpp.

  Tcl_Obj * do_get (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 234 of file tcltk_bmodel.cpp.

  Tcl_Obj * do_link (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1318 of file tcltk_bmodel.cpp.

  int do_set (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 323 of file tcltk_bmodel.cpp.

  Tcl_Obj * link_count (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1365 of file tcltk_bmodel.cpp.

  Tcl_Obj * link_count_selected (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1382 of file tcltk_bmodel.cpp.

  Tcl_Obj * link_create (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1532 of file tcltk_bmodel.cpp.

  Tcl_Obj * link_delete (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1560 of file tcltk_bmodel.cpp.

  Tcl_Obj * link_ids (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1399 of file tcltk_bmodel.cpp.

  Tcl_Obj * link_img_coords (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1421 of file tcltk_bmodel.cpp.

  Tcl_Obj * link_select (Bmodel * model, int objc, Tcl_Obj *CONST objv[])

Definition at line 1491 of file tcltk_bmodel.cpp.

  int model_processing (Tcl_Interp * interp, int objc, Tcl_Obj *CONST objv[])

Implements the 'Bmodel' command in Tcl/Tk to access model parameter files through Bsoft.

Parameters:
    *interp a Tcl interpreter within Tcl.
    objc number of arguments passed (+1).
    *objv[] arguments passed as Tcl objects.

Returns:
    int Tcl result.

    Bmodel command syntax:
        Bmodel <action> <arguments>.
        where:
            action          "create", "exists", "read", "write", "kill", "get", "set", "delete"
                            "delete_non_selected", "components_to_particles", "extract_segments",
                            "comptype", "component", "link"
            arguments           action-specific arguments:
                "create"        <id>
                "read"          <filename>
                "write"         <filename>
                "get"           <property> [arguments]
                "set"           <property> <value>
                "delete"        <property>
                "delete_non_selected"   <property> <selection>
                "components_to_particles"
                "extract_segments"  <filename> [multilevel]
                "comptype"      [arguments]
                "component"     [arguments]
                "link"          [arguments]
                where:
                    property    "id <string>"
                                "map <string> <value>"
                                "number <value>"
                                "radius <value>"
                                "linkradius <value>"
    Return values:
        Each action may have a return value:
            "create"    (none)
            "exists"    0=no, 1=yes
            "read"      model id
            "write"     (none)
            "kill"      (none)
            "get"       return value based on property
            "set"       modify model property

Definition at line 120 of file tcltk_bmodel.cpp.

  int set_component_radius (Bmodel * model, float radius)

Definition at line 293 of file tcltk_bmodel.cpp.

  int set_link_radius (Bmodel * model, float radius)

Definition at line 308 of file tcltk_bmodel.cpp.

Variable Documentation

  Bimage* imglist

Definition at line 30 of file bshow.cpp.

  Bmodel* model

Definition at line 32 of file bshow.cpp.

  Bproject* project

Definition at line 31 of file bshow.cpp.

  int verbose

Author

Generated automatically by Doxygen for Bsoft from the source code.