Download Three-dimensional computer graphics visualization of target detection

Transcript
XtSetArg(wargs[n],XmNleftAttachment, XmATTACH_FORM); n++;
XtSetArg(wargs[n],XmNrightAttachment, XmATTACHFORM); n++;
XtSetArg(wargs[n],XmNorientation, XmHORIZONTAL); n++;
XtSetArg (wargs[n], XmNnumColumns, 1); n++;
XtSetArg (wargs[nj, XmNpacking, XmPACK_TIGHT); n++;
Widget SensorRowColumn5 = XmCreateRowColumn(parent,
"SensorRowColumn5", wargs, n);
// This is the Relative Aperture gadget.
XtVaCreateManagedWidget("Optical Transmittance :",xmLabelGadgetClass,
SensorRowColumn5,XmNorientation,XmHORIZONTAL,NULL);
// Create the text widget for the Optical Transmittance.
Widget TextWidget4 = XtVaCreateManagedWidget("TextWidget4",
xmTextWidgetClass ,SensorRowColumn5 ,NULL);
// Add Callbacks to the TextWidget4 widget.
XtAddCallback(TextWidget4,XmNmodifyVerifyCallback,
OpticalTransmittanceCB.NULL);
// Now manage the parent RowColumn Widget.
XtManageChild(SensorRowColumn5);
// This the rowcolumn that holds Ein. Band Width widget under it.
n = 0;
XtSetArg(wargs[n],XmNtopAttachment, XmATTACH_WIDGET); n++;
XtSetArg(wargs[n],XmNtopWidget,SensorRowColumn5);n++;
XtSetArg(wargs[n],XmNleftAttachment, XmATTACH_FORM); n++;
XtSetArg(wargs[n],XmNrightAttachment, XmATTACH_FORM); n++;
XtSetArg(wargs[n],XmNorientation, XmHORIZONTAL); n++;
XtSetArg (wargsfn], XmNnumColumns, 1); n++;
XtSetArg (wargs[n], XmNpacking, XmPACKTIGHT); n++;
Widget SensorRowColumn6 = XmCreateRowColumn(parent,
"SensorRowColumn6", wargs, n);
// This is the Relative Aperture gadget.
XtVaCreateManagedWidget("Eln. Band Width
:",xmLabelGadgetClass,
SensorRowColunm6,XrnNorientation,XmHORIZONTAL,NULL);
// Create the text widget for the Ein. Band Width.
Widget TextWidget5 = XtVaCreateManagedWidget("TextWidget5",
xmTextWidgetClass ,SensorRowColumn6 ,NULL);
// Add Callbacks to the TextWidget5 widget.
XtAddCallback(TextWidget5,XmNmodifyVerifyCallback,
ElectronicBandwidthCB,NTJLL);
// Now manage the parent RowColumn Widget.
XtManageChild(SensorRowColumn6);
74