[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference

INITIALIZE VALUATOR 3 (PHOP,WSOP,*,*)

Purpose

Use Initialize Valuator 3 to initialize the specified valuator device.

The Initialize Valuator subroutine stores the initial value, prompt/echo type, echo volume, and valuator data record in the workstation state list for the specified workstation.

For all valuator prompt/echo types a low value and a high value specify the range for input from that valuator. The graPHIGS API scales the values from the physical device linearly to the specified range. This function supports the following prompt/echo types:

  • Type One designates the current valuator value using a workstation-dependent technique.

  • Type Three displays a numerical representation of the current valuator value within the echo volume.

    Note:

    The valuator device must be in Request mode.

    Language Bindings

  • C

    pinit_val3 (ws_id, val_num, init_value, pet, echo_vol, val_data)

    Input Parameters

    Pint ws_id
    Workstation identifier.

    Pint val_num
    Valuator device number (>=1).

    Pfloat init_value
    Initial value.

    Pint pet
    Prompt and echo type.

    const Plimit3 *echo_vol
    Echo volume in DC.

    const Pval_data3 *val_data
    Data record.

    FORTRAN

    PINVL3 (wkid, vldnr, ival, pet, evol, ldr, datrec)

    Input Parameters

    integer wkid
    Workstation identifier.

    integer vldnr
    Valuator device number (>=1).

    real ival
    Initial value.

    integer pet
    Prompt and echo type.

    real evol(6)
    Echo volume in DC (XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX).

    integer ldr
    Dimension of the data record array.

    character*80 datrec(ldr)
    Data record.

    The pprec parameters used to build the valuator input data record are as follows: (IL=0, IA=(), RL=2, RA=low value of valuator range, high value of valuator range, SL=0, LSTR=(), STR=()).

    Errors

    3
    Function Requires State (PHOP,WSOP,*,*)
    54
    Specified Workstation Is Not Open
    61
    Specified Workstation Is Not Of Category Input Or Outin
    250
    Specified Device Not Available On Workstation
    251
    Function Requires Input Device To Be In Request Mode
    254
    Invalid Echo Area/Volume: XMIN>=XMAX, YMIN>=YMAX OR ZMIN>ZMAX
    255
    Echo Area/Volume Boundary Point(s) Outside Device Range
    253
    Prompt/Echo Type Not Available On Specified Workstation
    260
    Input Device Data Record Field Is In Error
    263
    Length Of Initial String > Buffer Size
    261
    Initial Value Is Invalid

    Related Subroutines

  • Inquire Valuator Device State 3

  • Inquire Default Valuator Device Data

  • Inquire Display Space Size

  • Inquire Number Of Available Logical Input Devices

  • Pack Data Record

  • Set Valuator Mode


  • [ Previous | Next | Contents | Glossary | Home | Search ]