./
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
- _extra set
- _ref_extra get init
- column init
- debugevent get set init
- mbar init
- nodraw init
- row init
- title init
- xsize init
- ysize init
Properties in pp_gui_example
- _extra init
Fields
Fields in pp_gui
- VALUES obj_new()
- VERBOSE 0B
Fields in TOPLEVELBASE
- _CENTERTLB 0L
- _REGISTER_NAME ''
- _TLB_FRAME_ATTR 0S
Fields in BASEWIDGET
- _BASETITLE ''
- _MAP 0L
Fields in WIDGETATOM
- _GROUP_LEADER obj_new()
- _HELPLINE ''
- _ID 0L
- _INVISIBLE 0B
- _KILLNOTIFY 0L
- _NOTIFYREALIZE 0B
- _SENSITIVE 0B
Fields in CATATOM
- _CONTROLPANEL obj_new()
- _ERRORLEVEL 0B
- _EVENT_METHOD ''
- _EVENT_OBJECTS obj_new()
- _EXCL_EVENT_OBJECT obj_new()
- _MESSAGERECIPIENTS obj_new()
- _REPORTLEVEL 0B
- _TRASH obj_new()
- _UVALUE ptr_new()
Fields in CATCONTAINER
- _AUTODESTROY 0B
- _INDEXED 0B
- _MEMORYMANAGEMENT 0B
- _NAME ''
- _PARENTS obj_new()
Fields in IDL_CONTAINER
- IDLCONTAINERVERSION 0S
- IDL_CONTAINER_BOTTOM 0LL
- IDL_CONTAINER_TOP 0LL
- NLIST 0L
- PHEAD ptr_new()
- PTAIL ptr_new()
Fields in IDLITCOMPONENT
- DESCRIPTION ''
- HELP ''
- ICON ''
- IDENTIFIER ''
- IDLITCOMPONENTVERSION 0S
- IDLITCOMPONENT_BOTTOM 0LL
- IDLITCOMPONENT_TOP 0LL
- NAME ''
- PROPERTYDESCRIPTORS obj_new()
- TOOL obj_new()
- UVALUE ptr_new()
- _FLAGS 0L
- _PARENT obj_new()
- _PROXY obj_new()
Fields in pp_gui_example
- DATA ptr_new()
- NBANDS 0L
Routines
Methods inherited from pp_gui
pp_gui::creategui
pp_gui::updatewindow
result = pp_gui::init( [debugevent=debugevent] [, _ref_extra=_ref_extra] [, xsize=xsize] [, ysize=ysize] [, title=title] [, row=row] [, column=column], mbar=mbar, nodraw=nodraw)
pp_gui::eventhandler, event
pp_gui::setproperty [, _extra=_extra] [, debugevent=debugevent]
pp_gui::getproperty [, _ref_extra=_ref_extra] [, debugevent=debugevent]
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 |
File attributes
Modification date: | Wed Mar 7 17:08:26 2018 |
Lines: | 30 |
Docformat: | rst rst |