The C++ Template Image Processing Library.
Initially developped in the Odyssée Lab, at the INRIA-Sophia Antipolis.

[Introduction]- [Latest News]- [Download]- [Screenshots]- [Tutorial]- [Forums]- [Library Reference]- [SourceForge Repository ]

Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

CImgDisplay Struct Reference

This structure is used to display a CImg<T> image in a window, and interact with mouse and keyboard. More...

List of all members.

Public Member Functions

const CImgDisplaywait_sync (const uint milliseconds) const
 Same as cimg::wait_sync().
template<typename T> CImgDisplaydisplay (const CImgl< T > &list, const char axe='x', const char position='c')
 Create a display window from an image list. Images are appended along the axe axe (can be 'x' or 'y') and centered with the position position (can be 'p','c','n').
template<typename T> CImgDisplayresize (const CImg< T > &img)
 Resize a display window with the dimensions of the image img.
 CImgDisplay (const uint pwidth=320, const uint pheight=256, const char *title=NULL, const uint pnormalize=1, const uint pevent_type=3, const bool visible=false)
 Create a display window with a specified size (pwidth,height).
 CImgDisplay (const CImgDisplay &win, char *title=NULL)
 Create a new display window by copying another one.
template<typename T>  CImgDisplay (const CImg< T > &pimg, const char *title=NULL, const uint pnormalize=1, const uint pevent_type=3, const bool visible=false)
 Create a display window from an image.
template<typename T>  CImgDisplay (const CImgl< T > &plist, const char *title=NULL, const uint pnormalize=1, const uint pevent_type=3, const bool visible=false)
 Create a display window from an image list.
CImgDisplayresize (const int nwidth, const int nheight)
 Resize a display window with new dimensions nwidth and nheight.
 ~CImgDisplay ()
 Destructor. Close and destroy a display.
template<typename T> void render (const CImg< T > &pimg, const uint pymin=0, const uint pymax=-1)
 Fill the pixel data of the window buffer according to the image pimg.
template<typename T> CImgDisplaydisplay (const CImg< T > &img, const uint ymin=0, const uint ymax=-1)
 Display an image in a window.
CImgDisplaywait ()
 Wait for a window event.
CImgDisplayshow ()
 Show a closed display.
CImgDisplayclose ()
 Close a visible display.

Public Attributes

uint width
 Width of the display window.
uint height
 Height of the display window.
uint normalize
 Pixel value normalization (0=no normalization, 1=normalization between [0,255], 2=first-step normalization).
volatile uint event_type
 Type of events handled by the display window (0=no events, 1=resize+close, 2=mouse+key, 3=full events).
volatile int mousex
 When event_type>=2, this variable corresponds to the mouse pointer X-coordinate into the display window.
volatile int mousey
 When event_type>=2, this variable corresponds to the mouse pointer Y-coordinate into the display window.
volatile uint button
 When event_type>=2, these variables corresponds to the mouse button clicked into the display window.
volatile uint key
 When event_type>=2, these variables corresponds to the key pressed into the display window.
volatile bool closed
 When event_type>=1, this variable tells if the window is closed (true) or still visible (false).


Detailed Description

This structure is used to display a CImg<T> image in a window, and interact with mouse and keyboard.


Generated on Tue Aug 10 17:35:47 2004 for The CImg Library by doxygen 1.3.8