The CW_ORIENT function creates a compound widget that provides a means to interactively adjust the three-dimensional drawing transformation and resets the
This routine is written in the IDL language. Its source code can be found in the file cw_orient.pro in the lib subdirectory of the IDL distribution.
Result = CW_ORIENT( Parent [, AX=degrees] [, AZ=degrees] [, /FRAME] [, TITLE=string] [, UNAME=string] [, UVALUE=value] [, XSIZE=width] [, YSIZE=height] )
This function returns the widget ID of the newly-created orientation-adjustment widget.
The widget ID of the parent widget.
The initial rotation in the X direction. The default is 30 degrees.
The initial rotation in the Z direction. The default is 30 degrees.
Set this keyword to draw a frame around the widget.
The title of the widget.
Set this keyword to a string that can be used to identify the widget in your code. You can associate a name with each widget in a specific hierarchy, and then use that name to query the widget hierarchy and get the correct widget ID.
To query the widget hierarchy, use the WIDGET_INFO function with the FIND_BY_UNAME keyword. The UNAME should be unique to the widget hierarchy because the FIND_BY_UNAME keyword returns the ID of the first widget with the specified name.
The "user value" to be assigned to the widget.
Determines the width of the widget. The default is 100.
Determines the height of the widget. The default is 100.
The widget ID returned by most compound widgets is actually the ID of the compound widget's base widget. This means that many keywords to the WIDGET_CONTROL and WIDGET_INFO routines that affect or return information on base widgets can be used with compound widgets.
See Compound Widgets for a more complete discussion of controlling compound widgets using WIDGET_CONTROL and WIDGET_INFO.
CW_ORIENT only returns events when the three dimensional drawing transformation has been altered. The
Introduced: Pre 4.0