Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: viewer.release - Function Up: viewer - Tool Previous: viewer.newdatamanager - Function


viewer.newdisplaypanel - Function



Package display
Module viewer
Tool viewer


Create and show a new Viewerdisplaypanel tool on the screen


Synopsis
newdisplaypanel(parent, width, height, nx, nx, maptype, newcmap, mincolors, maxcolors, autoregister, holdsdata, show, hasgui, guihasmenubar, guihascontrolbox, guihasanimator, guihasbuttons, hasdismiss, hasdone, isolationmode, widgetset, slicepanel)


Arguments

parent   parent frame in which to place the Viewerdisplaypanel tool
    Allowed: agent or F
    Default: F
width   width of the drawing area on screen
    Allowed: Integer
    Default: 400
height   height of the drawing area on screen
    Allowed: Integer
    Default: 300
nx   number of panels in x
    Allowed: Integer
    Default: 1
nx   number of panels in y
    Allowed: Integer
    Default: 1
maptype   how colors will be addressed on this Viewerdisplaypanel tool
    Allowed: 'index' 'rgb' 'hsv'
    Default: 'index'
newcmap   install a private colormap?
    Allowed: Boolean or unset
    Default: unset
mincolors   minimum number of colors to allocate
    Allowed: Integer or unset
    Default: unset
maxcolors   maximum number of colors to allocate
    Allowed: Integer or unset
    Default: unset
autoregister   accept auto-register data on this Viewerdisplaypanel tool?
    Allowed: Boolean
    Default: F
holdsdata   is this Viewerdisplaypanel tool going to hold data?
    Allowed: Boolean
    Default: T
show   show the Viewerdisplaypanel tool?
    Allowed: Boolean
    Default: T
hasgui   adorn the Viewerdisplaypanel tool with elements of a graphical user interface?
    Allowed: unset or Boolean
    Default: unset
guihasmenubar   add the menubar if a GUI is added?
    Allowed: Boolean
    Default: T
guihascontrolbox   add the controlbox if a GUI is added?
    Allowed: Boolean
    Default: T
guihasanimator   add the animator tapedeck if a GUI is added?
    Allowed: Boolean
    Default: T
guihasbuttons   add the button bar if a GUI is added?
    Allowed: Boolean
    Default: T
hasdismiss   add a "Dismiss" button to the GUI?
    Allowed: unset or boolean
    Default: unset
hasdone   add a "Done" button to the GUI?
    Allowed: unset or boolean
    Default: unset
isolationmode   prevent user accessing other components of this Viewer tool via the GUI?
    Allowed: boolean
    Default: F
widgetset   Widgetserver tool to use to build the GUI
    Allowed: Widgetserver tool or unset
    Default: unset
slicepanel   create a 3d slice panel?
    Allowed: Boolean
    Default: F


Returns
Viewerdisplaypanel tool


Description

This function is generally used to place a new Viewerdisplaypanel tool on the screen. By judicious use of the parent, hasdismiss and hasdone arguments the appearance of the Viewerdisplaypanel tool can be contolled quite carefully. The guihas* arguments control the adornment of the Viewerdisplaypanel tool with various graphical user interface components. The hasdismiss and hasdone arguments can be used to specify what type of ``Dismiss'' button is placed on the Viewerdisplaypanel tool, if any. For further information, see the documentation on the Viewerdisplaypanel tool constructor, and its addgui function.

The newcmap argument is particular to this function, and parsed before it is passed on to the Viewerdisplaypanel tool constructor. If it is unset, and a parent frame is not given, (ie. parent=F), then this function will first attempt to construct a Viewerdisplaypanel tool using (``sharing'') the system colormap, and if that fails, it will try again with a private colormap. If the newcmap argument is a boolean, then that is passed directly to the Viewerdisplaypanel tool constructor. The last argument slicepanel controls if the new tool should be a slicepanel to enable 3D slicing.





next up previous contents index
Next: viewer.release - Function Up: viewer - Tool Previous: viewer.newdatamanager - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15