Image-DS9

 view release on metacpan or  search on metacpan

lib/Image/DS9/Grammar/V8_5.pm  view on Meta::CPAN

                args  => [COORDSYS],
                query => QARGS,
                rvals => [ STRING, STRING ],
                cvt   => 0,
            },


        ],

    ],

    #------------------------------------------------------

    pixeltable => [ [ [], { args => [ ENUM( 'open', 'close' ) ] }, { args => [BOOL] }, ], ],

    #------------------------------------------------------>

    plot => TODO,

    #------------------------------------------------------

    png => [ [
            [ ENUM( 'new', 'slice' ) ],
            {
                args  => [STRING],
                query => QNONE,
            },

            # send an existing image as a scalarref
            {
                args   => [SCALARREF],
                query  => QNONE,
                bufarg => 1,
                cvt    => 0,
                chomp  => 0,
            },
        ],

        [
            [],

            # load image from file
            { args => [FILENAME], query => QNONE },

            # return image in buffer
            { rvals => [STRING], query => QONLY },

            # send => load image from buffer
            {
                args   => [SCALARREF],
                query  => QNONE,
                bufarg => 1,
                cvt    => 0,
                chomp  => 0,
            },
        ],
    ],

    #------------------------------------------------------>

    prefs => TODO,

    #------------------------------------------------------

    preserve => [ [ [ ENUM( 'pan', 'regions' ) ], { args => [BOOL] }, ], ],

    #------------------------------------------------------>

    # ALIASED BELOW: psprint

    #------------------------------------------------------

    print => [

        [
            ['destination'],
            { args => [ ENUM( PRINT_DESTINATIONS ) ], rvals => [ STRING( '<destination>' ) ], },
        ],

        [ ['command'], { args => [STRING] }, ],

        [ ['filename'], { args => [STRING] }, ],

        [ ['color'], { args => [ ENUM( PRINT_COLORS ) ], rvals => [ STRING( '<color>' ) ], }, ],

        [ ['level'], { args => [ ENUM( PRINT_LEVELS ) ], rvals => [ INT( '<level>' ) ], }, ],

        [
            ['resolution'],
            {
                args  => [ ENUM( \'PRINT_RESOLUTIONS', PRINT_RESOLUTIONS ) ],
                rvals => [ STRING( '<resolution>' ) ],
            },
        ],

        [ [], { query => QNONE } ],

    ],

    #------------------------------------------------------>

    prism => TODO,

    #------------------------------------------------------

    quit => [ [ [], { query => QNONE }, ] ],


    #------------------------------------------------------

    raise => [ [ [], { query => QNONE }, ] ],


    #------------------------------------------------------

    region => [

        [ [ ENUM( qw( movefront moveback selectall selectnone deleteall ) ) ], { query => QNONE }, ],


        [ [ ENUM( qw( load save ) ) ], { args => [FILENAME], query => QNONE }, ],



( run in 0.639 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )