::GetFirstCollectorType

This command will be used to get the type of the first collector within the orientation widget “mdlCollector/mdlListCollector”.

Syntax

::model::mdlOrientation::GetFirstCollectorType argFrm

Application

MotionView Tcl

Description

This command will be used to get the type of the first collector within the orientation widget “mdlCollector/mdlListCollector”.

Inputs

argFrm
We need to pass the path of the mdlOrientation widget as the above argument, from which we need to get the type of the first collector.

Example

::model::GetClientHandle client
client GetModelHandle mod
mod InterpretEntity mrk Marker mrk_0 "\"Marker 0\"" "" ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set ornt [::model::mdlOrientation $colFrm.ornt mrk]
pack $ornt
client ReleaseHandle
mod ReleaseHandle
mrk ReleaseHandle
set colType [::model::_private::mdlOrientation::GetFirstCollectorType  .test.tmpFrm1.ornt]
tk_messageBox -message "First collector type: $colType"

Errors

On successful execution of the command, it will return the type of the first collector widget.