Documentation for pp_lib

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

pp_gui_example__define.pro


Example application, to show how to use pp_gui (which uses the Catalyst Library)

Mostly, one would use this program just to read the source code, to see how to use pp_gui.

This application displays a 3D array as multiple images, by dragging on a slider to change the image being shown. The array's final dimension must be the band number.

Examples

Load data from IDL's example files, and lanuch this application to visualize them:

fp=filepath('head.dat',subdirectory=['examples','data']) h=read_binary(fp,data_dims=[80,100,57]) g=pp_gui_example(h)

Author information

Author

Paulo Penteado (pp.penteado@gmail.com), Nov/2014

Class description for pp_gui_example

Inheritance

All ancestor classes: pp_gui TOPLEVELBASE BASEWIDGET WIDGETATOM CATATOM CATCONTAINER IDL_CONTAINER IDLITCOMPONENT

Properties

Properties in pp_gui

Properties in pp_gui_example

_extra init

Fields

Fields in pp_gui

Fields in TOPLEVELBASE

Fields in BASEWIDGET

Fields in WIDGETATOM

Fields in CATATOM

Fields in CATCONTAINER

Fields in IDL_CONTAINER

Fields in IDLITCOMPONENT

Fields in pp_gui_example

DATA ptr_new()
NBANDS 0L

Routines

Methods inherited from pp_gui

Routines from pp_gui_example__define.pro

result = pp_gui_example::init(data [, _extra=_extra])

Describe the procedure.

pp_gui_example::creategui

This method is called by init, to populate the interface with the elements the user will want.

pp_gui_example::updatewindow

This method gets called by the event handler after it has finished processing the event.

pp_gui_example__define

Just the class definition for pp_gui_example.

Routine details

top source pp_gui_example::init

result = pp_gui_example::init(data [, _extra=_extra])

Describe the procedure.

Parameters

data in required

A 3D array with several images to be displayed. The images must be contiguous over the first two dimensions. That is, the third dimension must be where the different images are indexed.

Keywords

_extra in optional

Any other parameters are passed on to pp_gui.

Statistics

Lines:
9 lines
Cyclomatic complexity:
4
Modified cyclomatic complexity:
4

top source pp_gui_example::creategui

pp_gui_example::creategui

This method is called by init, to populate the interface with the elements the user will want.

Author information

Author:

Paulo Penteado (http://www.ppenteado.net)

Statistics

Lines:
11 lines
Cyclomatic complexity:
4
Modified cyclomatic complexity:
4

top source pp_gui_example::updatewindow

pp_gui_example::updatewindow

This method gets called by the event handler after it has finished processing the event. We use it to do whatever is necessary to update the widgets. In this case, the only thing to do is to replace the image in the draw widget.

Statistics

Lines:
6 lines
Cyclomatic complexity:
2
Modified cyclomatic complexity:
2

top source pp_gui_example__define

pp_gui_example__define

Just the class definition for pp_gui_example.

Statistics

Lines:
4 lines
Cyclomatic complexity:
2
Modified cyclomatic complexity:
2

File attributes

Modification date: Wed Mar 7 17:08:26 2018
Lines: 30
Docformat: rst rst