Track Widget Class


Overview

The Track widget class provides support for the display and editing of graphic objects that comprise a well log track. The Track widget class provides resources for tailoring the look and feel of a well log track.

Complex well log displays are easily created using one or more Track widgets along with a WellLog widget and multiple Axis widgets.

The Track widget class inherits the behavior of the EditObject class. All resources and actions defined in that widget class also are available in the Track widget.


Inherited Behavior and Resources

The Track widget inherits behavior and resources from the Core, Composite, Constraint, Motif Manager and EditObject classes.
The following resources are defined by the Track widget class:
NameTypeDefaultAccess
XmNauxAxisCountint0CSG
XmNauxAxisListWidget *NULLCSG
XmNbottomfloat *100.0CSG
XmNcolorPixelforegroundCSG
XmNdepthAxisWidgetNULLCSG
XmNdepthResizePolicyintXintRESIZE_FIXEDCSG
XmNdepthScalefloat *5.0CSG
XmNdepthUnitintXintFEET_PER_INCHCSG
XmNframeintXintFRAMECSG
XmNframeStyleintXintFRAME_SOLIDCSG
XmNframeThicknessint2CSG
XmNgridBelowBooleanTrueCSG
XmNhorizontalAxisWidgetNULLCSG
XmNhorizontalAuxGridBooleanTrueCSG
XmNhorizontalMajorGridBooleanTrueCSG
XmNhorizontalMinorGridBooleanFalseCSG
XmNtopfloat *0.0CSG
XmNvaluePercentint100CSG
XmNvalueResizePolicyintXintRESIZE_SCALEDCSG
XmNverticalAuxGridBooleanTrueCSG
XmNverticalAxisWidgetNULLCSG
XmNverticalMajorGridBooleanTrueCSG
XmNverticalMinorGridBooleanFalseCSG


XmNauxAxisCount

Specifies the number of Axis widgets specified with the resource XmNauxAxisList.

XmNauxAxisList

A Track widget draws its grid lines at the locations specified by the Axis widgets defined in resources XmNverticalAxis and XmNhorizontalAxis. Resource XmNauxAxisList allows the application to specify a list of additional Axis widgets which are used to draw additional grid lines. This resource can be used to draw multiple grid lines with different scales or colors.

XmNbottom

If resource XmNdepthAxis is NULL at creation time, the Track widget will automatically create a depth Axis. Resource XmNbottom specifies the ending value of the Axis widget that will be created. This value represents the bottom value of the Track.

XmNcolor

Specifies the pixel color used to draw the frame if resource XmNframeStyle is set to XintFRAME_SOLID, XintFRAME_DASHED or XintFRAME_DOUBLE_DASHED.

XmNdepthAxis

Specifies the ID of an Axis widget that defines the default coordinates system in the depth direction for the Track widget. This resource is equivalent to resource XmNverticalAxis when the Track widget is oriented vertically. When the Track widget is oriented horizontally, XmNdepthAxis is equivalent to resource XmNhorizontalAxis. If this resource is not specified, a depth Axis widget will automatically be created using the end values and scale specified by resources XmNtop, XmNbottom and XmNdepthScale.

XmNdepthResizePolicy

Specifies how a resize of the Track widget in the depth direction is handled. You can specify one of the following constants:

Resource ValueDescription
XintRESIZE_NONEThe Track widget will not resize in the depth direction.
XintRESIZE_FIXED (default)The Track widget will resize in the depth direction and keep the same scale so that more or less data will be seen.
XintRESIZE_SCALEDThe Track widget will resize in the depth direction and always display the same amount of data. The depth scale will be adjusted accordingly.


XmNdepthScale

Specifies the scale, in the depth direction, of the Track widget using the unit system specified in resource XmNdepthUnit. This resource only applies if resource XmNdepthAxis is set to NULL at creation time.

XmNdepthUnit

Specifies the unit system used by the Track widget in the depth direction, if resource XmNdepthAxis is NULL at creation time. You can specify one of the following constants:

Resource ValueDescription
XintINCHES_PER_SECONDThe depth scale is specified in inches per second.
XintCM_PER_SECONDThe depth scale is specified in centimeters per second.
XintFEET_PER_INCH (default)The depth scale is specified in feet per inch.
XintMETERS_PER_CMThe depth scale is specified in meters per centimeter.


XmNframe

Specifies whether a frame or a portion of a frame is drawn inside the widget window. Specify one of the following constants as the value of this resource:

Defined ConstantDescription
XintFRAME (default)Draws a complete frame inside the widget window.
XintFRAME_NONENo frame will be drawn.
XintFRAME_LEFTDraws the left portion of the frame.
XintFRAME_RIGHTDraws the right portion of the frame.
XintFRAME_TOPDraws the top portion of the frame.
XintFRAME_BOTTOMDraws the bottom portion of the frame.

The last four constants can be added together to form various combinations (e.g. specify XintFRAME_TOP + XintFRAME_BOTTOM to have the widget draw the top and bottom portions of the frame).


XmNframeStyle

Specifies the style of line used to draw the Track widget frame. Specify one of the following constants as the value of this resource:

Defined ConstantDescription
XintFRAME_SOLID (default)Frame is drawn with a solid line.
XintFRAME_DASHEDFrame is drawn with a dashed line.
XintFRAME_DOUBLE_DASHEDFrame is drawn with a double dashed line.


XmNframeThickness

Specifies the width of the line used to draw the Track widget frame.

XmNgridBelow

Specifies whether the grid lines are displayed above or below Graphic objects drawn inside the Track widget.

XmNhorizontalAxis

Specifies a widget of class Axis that defines the Track widget horizontal coordinate system and controls the drawing of horizontal grid lines in the Track viewport window. If this resource is set to NULL, the default coordinate system (from 0 to 100) defined in superclass EditObject will be used.

XmNhorizontalAuxGrid

Specifies whether horizontal auxiliary grid lines from the widget specified in resource XmNhorizontalAxis are drawn or not. Attributes of the line are specified using resources defined in the Axis widget class.

XmNhorizontalMajorGrid

Specifies whether horizontal major grid lines, from the widget specified in resource XmNhorizontalAxis, are drawn or not. Attributes of the line are specified using resources defined in the Axis widget class.

XmNhorizontalMinorGrid

Specifies whether horizontal minor grid lines, from the widget specified in resource XmNhorizontalAxis, are drawn or not. Attributes of the line are specified using resources defined in the Axis widget class.

XmNtop

If resource XmNdepthAxis is NULL at creation time, the Track widget will create a depth Axis automatically. Resource XmNtop specifies the starting value of the Axis widget that will be created. This value represents the top value of the Track.

XmNvaluePercent

Specifies how much of the value Axis widget is visible as a percentage of the track widget's length. A value of 100 means that the entire value Axis widget is visible. A value of 50 means that half of the value space is visible and that the value Axis is scrollable.

XmNvalueResizePolicy

Specifies how a resize of the Track widget in the value direction is handled. You can specify one of the following constants:

Resource ValueDescription
XintRESIZE_NONEThe Track widget will not resize in the value direction.
XintRESIZE_FIXEDThe Track widget will resize in the value direction and keep the same scale so that more or less data will be seen.
XintRESIZE_SCALED (default)The Track widget will resize in the value direction and always show the same amount of data. The scale will be adjusted accordingly.


XmNverticalAuxGrid

Specifies whether vertical auxiliary grid lines, from the widget specified in resource XmNverticalAxis, are drawn or not. Attributes of the line are specified using resources defined in the Axis widget class.

XmNverticalAxis

Specifies a widget of class Axis that controls the drawing of vertical grid lines in the VirtualGrid window. If this resource is set to NULL, the default coordinate system (from 0 to 100), defined in superclass EditObject, will be used.

XmNverticalMajorGrid

Specifies whether vertical major grid lines, from the widget specified in resource XmNverticalAxis, are drawn or not. Attributes of the line are specified using the resources defined in the Axis widget class.

XmNverticalMinorGrid

Specifies whether vertical minor grid lines, from the widget specified in resource XmNverticalAxis, are drawn or not. Attributes of the line are specified using the resources defined in the Axis widget class.