| Bsoft 2.0.5 Bernard's software package

Functions | Variables
tcltk_bmodel.cpp File Reference

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

`#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"`

Go to the source code of this file.

## 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. More...
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

## ◆ component_color()

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

Definition at line 1245 of file tcltk_bmodel.cpp.

## ◆ component_count()

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

Definition at line 860 of file tcltk_bmodel.cpp.

## ◆ component_count_selected()

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

Definition at line 877 of file tcltk_bmodel.cpp.

## ◆ component_create()

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

Definition at line 1181 of file tcltk_bmodel.cpp.

## ◆ component_delete()

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

Definition at line 1219 of file tcltk_bmodel.cpp.

## ◆ component_distance()

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

Definition at line 938 of file tcltk_bmodel.cpp.

## ◆ component_fom()

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

Definition at line 1028 of file tcltk_bmodel.cpp.

## ◆ component_ids()

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

Definition at line 894 of file tcltk_bmodel.cpp.

## ◆ component_img_coords()

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

Definition at line 966 of file tcltk_bmodel.cpp.

## ◆ component_location()

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

Definition at line 915 of file tcltk_bmodel.cpp.

## ◆ component_move()

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

Definition at line 1155 of file tcltk_bmodel.cpp.

## ◆ component_radius()

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

Definition at line 1057 of file tcltk_bmodel.cpp.

## ◆ component_select()

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

Definition at line 1086 of file tcltk_bmodel.cpp.

## ◆ comptype_count()

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

Definition at line 606 of file tcltk_bmodel.cpp.

## ◆ comptype_count_selected()

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

Definition at line 621 of file tcltk_bmodel.cpp.

## ◆ comptype_create_update()

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

Definition at line 670 of file tcltk_bmodel.cpp.

## ◆ comptype_deselect()

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

Definition at line 720 of file tcltk_bmodel.cpp.

## ◆ comptype_first_selected()

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

Definition at line 745 of file tcltk_bmodel.cpp.

## ◆ comptype_ids()

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

Definition at line 636 of file tcltk_bmodel.cpp.

## ◆ comptype_list()

Tcl_Obj * comptype_list | ( | Bmodel * | model | ) |

Definition at line 652 of file tcltk_bmodel.cpp.

## ◆ comptype_select()

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

Definition at line 695 of file tcltk_bmodel.cpp.

## ◆ do_component()

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

Definition at line 797 of file tcltk_bmodel.cpp.

## ◆ do_component_type()

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

Definition at line 556 of file tcltk_bmodel.cpp.

## ◆ do_components_to_particles()

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

Definition at line 411 of file tcltk_bmodel.cpp.

## ◆ do_create_shell()

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

Definition at line 494 of file tcltk_bmodel.cpp.

## ◆ do_delete()

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

Definition at line 391 of file tcltk_bmodel.cpp.

## ◆ do_delete_non_selected()

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

Definition at line 404 of file tcltk_bmodel.cpp.

## ◆ do_extract_segments()

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

Definition at line 462 of file tcltk_bmodel.cpp.

## ◆ do_find()

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

Definition at line 209 of file tcltk_bmodel.cpp.

## ◆ do_get()

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

Definition at line 234 of file tcltk_bmodel.cpp.

## ◆ do_link()

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

Definition at line 1318 of file tcltk_bmodel.cpp.

## ◆ do_set()

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

Definition at line 323 of file tcltk_bmodel.cpp.

## ◆ link_count()

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

Definition at line 1365 of file tcltk_bmodel.cpp.

## ◆ link_count_selected()

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

Definition at line 1382 of file tcltk_bmodel.cpp.

## ◆ link_create()

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

Definition at line 1532 of file tcltk_bmodel.cpp.

## ◆ link_delete()

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

Definition at line 1560 of file tcltk_bmodel.cpp.

## ◆ link_ids()

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

Definition at line 1399 of file tcltk_bmodel.cpp.

## ◆ link_img_coords()

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

Definition at line 1421 of file tcltk_bmodel.cpp.

## ◆ link_select()

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

Definition at line 1491 of file tcltk_bmodel.cpp.

## ◆ model_processing()

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.

## ◆ set_component_radius()

int set_component_radius | ( | Bmodel * | model,
|  | float | radius
| ) |  |

Definition at line 293 of file tcltk_bmodel.cpp.

## ◆ set_link_radius()

int set_link_radius | ( | Bmodel * | model,
|  | float | radius
| ) |  |

Definition at line 308 of file tcltk_bmodel.cpp.

## Variable Documentation

## ◆ imglist

Bimage* imglist

Definition at line 30 of file bshow.cpp.

## ◆ model

Bmodel* model

Definition at line 32 of file bshow.cpp.

## ◆ project

Bproject* project

Definition at line 31 of file bshow.cpp.

## ◆ verbose

int verbose