<< prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

objectwidget/

mgtilejp2__define.pro

Last modification:
Wed Jun 14 10:36:28 2006
Simple JPEG2000 viewer which uses tiling capability of IDLgrImage. Click and drag or use arrows to scroll, Page Up and Page Down to zoom in/out. Object widget version of the JPEG 2000 tiling demo.

Routine summary

mgtilejp2::setvp, vp

Set the viewplace_rect of the IDLgrView and refresh the graphics display.

mgtilejp2::move, loc

Move view of image.

mgtilejp2::zoom, incLevel

Zoom in/out by an increment.

mgtilejp2::refresh

Refresh the graphics display, including loading any new tile data if necessary.

mgtilejp2::draw, event

Handles draw events.

mgtilejp2::resize, event

Handle resize events.

mgtilejp2::handleEvents, event

Handles all the events of our widget program.

mgtilejp2::cleanup

Cleanup resources when XMANAGER shuts down our widget program.

mgtilejp2::cleanupWidgets, tlb

Called when the widget program is being destroyed.

result = mgtilejp2::init([jp2filename])

Widget creation/initialization routine for JPEG2000 tile viewer.

mgtilejp2__define

Define member variables (these used to be the fields of the state variable).

topmgtilejp2::setvp

mgtilejp2::setvp, vp

Set the viewplace_rect of the IDLgrView and refresh the graphics display.

Parameters

vp        in required type: fltarr(4)

viewplane_rect for the IDLgrView

Statistics

McCabe cyclic 1
McCabe essential 1
McCabe modular design 1

topmgtilejp2::move

mgtilejp2::move, loc

Move view of image.

Parameters

loc        in required type: lonarr(2)

location of lower-left corner of image to move to

Statistics

McCabe cyclic 1
McCabe essential 1
McCabe modular design 1

topmgtilejp2::zoom

mgtilejp2::zoom, incLevel

Zoom in/out by an increment.

Parameters

incLevel        in required type: integer

amount to increment zoom level

Statistics

McCabe cyclic 1
McCabe essential 1
McCabe modular design 1

topmgtilejp2::refresh

mgtilejp2::refresh

Refresh the graphics display, including loading any new tile data if necessary.

Statistics

McCabe cyclic 3
McCabe essential 1
McCabe modular design 1

topmgtilejp2::draw

mgtilejp2::draw, event

Handles draw events.

Parameters

event        in required type: structure

draw event

Statistics

McCabe cyclic 20
McCabe essential 1
McCabe modular design 1

topmgtilejp2::resize

mgtilejp2::resize, event

Handle resize events.

Parameters

event        in required type: structure

resize event

Statistics

McCabe cyclic 1
McCabe essential 1
McCabe modular design 1

topmgtilejp2::handleEvents

mgtilejp2::handleEvents, event

Handles all the events of our widget program.

Parameters

event        in required type: structure

event structure from any widget in our hierarchy that generates events

Statistics

McCabe cyclic 3
McCabe essential 1
McCabe modular design 1

topmgtilejp2::cleanup

mgtilejp2::cleanup

Cleanup resources when XMANAGER shuts down our widget program.

Statistics

McCabe cyclic 1
McCabe essential 1
McCabe modular design 1

topmgtilejp2::cleanupWidgets

mgtilejp2::cleanupWidgets, tlb

Called when the widget program is being destroyed.

Parameters

tlb        in required type: long

widget ID for the top-level base

Statistics

McCabe cyclic 1
McCabe essential 1
McCabe modular design 1

topmgtilejp2::init object graphics, tiling, object widgets

result = mgtilejp2::init([jp2filename])

Widget creation/initialization routine for JPEG2000 tile viewer.

Parameters

jp2filename        in optional type: str

filename of a JPEG2000 file

Version history

Author

Michael Galloy, 2006

Other attributes

Requires IDL version

IDL 6.2

Statistics

McCabe cyclic 3
McCabe essential 1
McCabe modular design 1

topmgtilejp2__define

mgtilejp2__define

Define member variables (these used to be the fields of the state variable).

Statistics

McCabe cyclic 1
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0 on Wed Apr 25 22:45:40 2007.