::mdlTempCollector

This command will be used to create a collector widget used to resolve a reference, but this widget will not be attached to any entity data members. Instead, it will set and retrieve the reference value from a Tcl variable. Like the mdlCollector widget, this widget will let the user pick an entity of the allowed type either graphically or from a tree.

Syntax

::model::mdlTempCollector frmPath variable text pickType

Application

MotionView Tcl

Description

This command will be used to create a collector widget used to resolve a reference, but this widget will not be attached to any entity data members. Instead, it will set and retrieve the reference value from a Tcl variable. Like the mdlCollector widget, this widget will let the user pick an entity of the allowed type either graphically or from a tree.

Inputs

frmPath
The frame on which the mdlTempCollector widget will be created is passed as an argument.
variable
We need to pass the name of the variable. The variable will hold the varname of the entity to which the collector is resolved.
text
This argument contains the name that is to be displayed in the mdlTempCollector widget.
pickType
The entity type that is allowed to be selected by the user to resolve this reference.

Example

set selected_point ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set point_col [::model::mdlTempCollector $colFrm.ptcol ::selected_point "Point" "Point" ]
pack $point_col

Errors

On successful execution of the command, it will create a mdlTempCollector widget.