This class represents a window which can display CImg images and handles mouse and keyboard events. More...
#include <CImg.h>
Public Member Functions | |
Overloaded Operators | |
template<typename t > | |
CImgDisplay & | operator= (const CImg< t > &img) |
template<typename t > | |
CImgDisplay & | operator= (const CImgList< t > &list) |
CImgDisplay & | operator= (const CImgDisplay &disp) |
Operator=(). More... | |
operator bool () const | |
Return true if display is not empty. More... | |
Instance Checking | |
bool | is_empty () const |
Return true is display is empty. More... | |
bool | is_key (const bool remove=false) |
Test if any key has been pressed. More... | |
bool | is_key (const unsigned int key1, const bool remove) |
Test if a key has been pressed. More... | |
bool | is_key (const unsigned int key1, const unsigned int key2, const bool remove) |
Test if a key sequence has been typed. More... | |
bool | is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const bool remove) |
Test if a key sequence has been typed. More... | |
bool | is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const bool remove) |
Test if a key sequence has been typed. More... | |
bool | is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const bool remove) |
Test if a key sequence has been typed. More... | |
bool | is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const unsigned int key6, const bool remove) |
Test if a key sequence has been typed. More... | |
bool | is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const unsigned int key6, const unsigned int key7, const bool remove) |
Test if a key sequence has been typed. More... | |
bool | is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const unsigned int key6, const unsigned int key7, const unsigned int key8, const bool remove) |
Test if a key sequence has been typed. More... | |
bool | is_key (const unsigned int key1, const unsigned int key2, const unsigned int key3, const unsigned int key4, const unsigned int key5, const unsigned int key6, const unsigned int key7, const unsigned int key8, const unsigned int key9, const bool remove) |
Test if a key sequence has been typed. More... | |
bool | is_key (const unsigned int *const keyseq, const unsigned int N, const bool remove=true) |
Test if a key sequence has been typed. More... | |
void | _update_iskey (const unsigned int key, const bool pressed=true) |
Public Attributes | |
unsigned int | width |
Width of the display. More... | |
unsigned int | height |
Height of the display. More... | |
volatile unsigned int | window_width |
Width of the underlying window. More... | |
volatile unsigned int | window_height |
Height of the underlying window. More... | |
volatile int | window_x |
X-pos of the display on the screen. More... | |
volatile int | window_y |
Y-pos of the display on the screen. More... | |
volatile int | mouse_x |
X-coordinate of the mouse pointer on the display. More... | |
volatile int | mouse_y |
Y-coordinate of the mouse pointer on the display. More... | |
unsigned int | normalization |
Normalization type used for the display. More... | |
char * | title |
Display title. More... | |
volatile unsigned int | buttons [512] |
Button state of the mouse. More... | |
volatile unsigned int & | button |
volatile int | wheel |
Wheel state of the mouse. More... | |
volatile unsigned int & | key |
Key value if pressed. More... | |
volatile unsigned int | keys [512] |
volatile unsigned int & | released_key |
Key value if released. More... | |
volatile unsigned int | released_keys [512] |
volatile bool | is_closed |
Closed state of the window. More... | |
volatile bool | is_resized |
Resized state of the window. More... | |
volatile bool | is_moved |
Moved state of the window. More... | |
volatile bool | is_event |
Event state of the window. More... | |
volatile bool | is_keyESC |
Current state of the corresponding key (exists for all referenced keys). More... | |
volatile bool | is_keyF1 |
volatile bool | is_keyF2 |
volatile bool | is_keyF3 |
volatile bool | is_keyF4 |
volatile bool | is_keyF5 |
volatile bool | is_keyF6 |
volatile bool | is_keyF7 |
volatile bool | is_keyF8 |
volatile bool | is_keyF9 |
volatile bool | is_keyF10 |
volatile bool | is_keyF11 |
volatile bool | is_keyF12 |
volatile bool | is_keyPAUSE |
volatile bool | is_key1 |
volatile bool | is_key2 |
volatile bool | is_key3 |
volatile bool | is_key4 |
volatile bool | is_key5 |
volatile bool | is_key6 |
volatile bool | is_key7 |
volatile bool | is_key8 |
volatile bool | is_key9 |
volatile bool | is_key0 |
volatile bool | is_keyBACKSPACE |
volatile bool | is_keyINSERT |
volatile bool | is_keyHOME |
volatile bool | is_keyPAGEUP |
volatile bool | is_keyTAB |
volatile bool | is_keyQ |
volatile bool | is_keyW |
volatile bool | is_keyE |
volatile bool | is_keyR |
volatile bool | is_keyT |
volatile bool | is_keyY |
volatile bool | is_keyU |
volatile bool | is_keyI |
volatile bool | is_keyO |
volatile bool | is_keyP |
volatile bool | is_keyDELETE |
volatile bool | is_keyEND |
volatile bool | is_keyPAGEDOWN |
volatile bool | is_keyCAPSLOCK |
volatile bool | is_keyA |
volatile bool | is_keyS |
volatile bool | is_keyD |
volatile bool | is_keyF |
volatile bool | is_keyG |
volatile bool | is_keyH |
volatile bool | is_keyJ |
volatile bool | is_keyK |
volatile bool | is_keyL |
volatile bool | is_keyENTER |
volatile bool | is_keySHIFTLEFT |
volatile bool | is_keyZ |
volatile bool | is_keyX |
volatile bool | is_keyC |
volatile bool | is_keyV |
volatile bool | is_keyB |
volatile bool | is_keyN |
volatile bool | is_keyM |
volatile bool | is_keySHIFTRIGHT |
volatile bool | is_keyARROWUP |
volatile bool | is_keyCTRLLEFT |
volatile bool | is_keyAPPLEFT |
volatile bool | is_keyALT |
volatile bool | is_keySPACE |
volatile bool | is_keyALTGR |
volatile bool | is_keyAPPRIGHT |
volatile bool | is_keyMENU |
volatile bool | is_keyCTRLRIGHT |
volatile bool | is_keyARROWLEFT |
volatile bool | is_keyARROWDOWN |
volatile bool | is_keyARROWRIGHT |
volatile bool | is_keyPAD0 |
volatile bool | is_keyPAD1 |
volatile bool | is_keyPAD2 |
volatile bool | is_keyPAD3 |
volatile bool | is_keyPAD4 |
volatile bool | is_keyPAD5 |
volatile bool | is_keyPAD6 |
volatile bool | is_keyPAD7 |
volatile bool | is_keyPAD8 |
volatile bool | is_keyPAD9 |
volatile bool | is_keyPADADD |
volatile bool | is_keyPADSUB |
volatile bool | is_keyPADMUL |
volatile bool | is_keyPADDIV |
bool | is_fullscreen |
Fullscreen state of the display. More... | |
float | fps_fps |
float | min |
float | max |
unsigned long | timer |
unsigned long | fps_frames |
unsigned long | fps_timer |
Constructors / Destructor / Instance Management | |
~CImgDisplay () | |
Destructor. More... | |
CImgDisplay () | |
Create an empty display window. More... | |
CImgDisplay (const unsigned int dimw, const unsigned int dimh, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) | |
Create a display window with a specified size pwidth x height . More... | |
template<typename T > | |
CImgDisplay (const CImg< T > &img, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) | |
Create a display window from an image. More... | |
template<typename T > | |
CImgDisplay (const CImgList< T > &list, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) | |
Create a display window from an image list. More... | |
CImgDisplay (const CImgDisplay &disp) | |
Create a display window by copying another one. More... | |
CImgDisplay & | assign () |
In-place version of the destructor. More... | |
CImgDisplay & | assign (const unsigned int dimw, const unsigned int dimh, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
In-place version of the previous constructor. More... | |
template<typename T > | |
CImgDisplay & | assign (const CImg< T > &img, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
In-place version of the previous constructor. More... | |
template<typename T > | |
CImgDisplay & | assign (const CImgList< T > &list, const char *title=0, const unsigned int normalization_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
In-place version of the previous constructor. More... | |
CImgDisplay & | assign (const CImgDisplay &disp) |
In-place version of the previous constructor. More... | |
static CImgDisplay & | empty () |
Return a reference to an empty display. More... | |
static unsigned int | _fitscreen (const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const int dmin=128, const int dmax=-85, const bool return_last=false) |
Instance Characteristics | |
int | dimx () const |
Return display width. More... | |
int | dimy () const |
Return display height. More... | |
int | window_dimx () const |
Return display window width. More... | |
int | window_dimy () const |
Return display window height. More... | |
int | window_posx () const |
Return X-coordinate of the window. More... | |
int | window_posy () const |
Return Y-coordinate of the window. More... | |
float | frames_per_second () |
Return the frame per second rate. More... | |
static int | screen_dimx () |
Return the width of the screen resolution. More... | |
static int | screen_dimy () |
Return the height of the screen resolution. More... | |
Display Manipulation | |
template<typename T > | |
CImgDisplay & | display (const CImg< T > &img) |
Display an image in a window. More... | |
template<typename T > | |
CImgDisplay & | display (const CImgList< T > &list, const char axis='x', const char align='p') |
Display an image list CImgList<T> into a display window. More... | |
template<typename T > | |
CImgDisplay & | resize (const CImg< T > &img, const bool redraw=true) |
Resize a display window with the size of an image. More... | |
CImgDisplay & | resize (const CImgDisplay &disp, const bool redraw=true) |
Resize a display window using the size of the given display disp . More... | |
CImgDisplay & | resize (const bool redraw=true) |
Resize a display window in its current size. More... | |
CImgDisplay & | resize (const int width, const int height, const bool redraw=true) |
Resize window. More... | |
CImgDisplay & | fullscreen (const bool redraw=true) |
Set fullscreen mode. More... | |
CImgDisplay & | normalscreen (const bool redraw=true) |
Set normal screen mode. More... | |
CImgDisplay & | toggle_fullscreen (const bool redraw=true) |
Toggle fullscreen mode. More... | |
CImgDisplay & | show () |
Show a closed display. More... | |
CImgDisplay & | close () |
Close a visible display. More... | |
CImgDisplay & | move (const int posx, const int posy) |
Move window. More... | |
CImgDisplay & | show_mouse () |
Show mouse pointer. More... | |
CImgDisplay & | hide_mouse () |
Hide mouse pointer. More... | |
CImgDisplay & | set_mouse (const int posx, const int posy) |
Move mouse pointer to a specific location. More... | |
CImgDisplay & | set_title (const char *format,...) |
Set the window title. More... | |
template<typename T > | |
CImgDisplay & | render (const CImg< T > &img) |
Render image buffer into GDI native image format. More... | |
CImgDisplay & | paint () |
Re-paint image content in window. More... | |
template<typename T > | |
const CImgDisplay & | snapshot (CImg< T > &img) const |
Take a snapshot of the display in the specified image. More... | |
CImgDisplay & | flush () |
Clear all events of the current display. More... | |
CImgDisplay & | wait (const unsigned int milliseconds) |
Synchronized waiting function. Same as cimg::wait(). More... | |
CImgDisplay & | wait () |
Wait for an event occuring on the current display. More... | |
template<typename t , typename T > | |
static void | _render_resize (const T *ptrs, const unsigned int ws, const unsigned int hs, t *ptrd, const unsigned int wd, const unsigned int hd) |
static void | wait (CImgDisplay &disp1) |
Wait for any event occuring on the display disp1 . More... | |
static void | wait (CImgDisplay &disp1, CImgDisplay &disp2) |
Wait for any event occuring either on the display disp1 or disp2 . More... | |
static void | wait (CImgDisplay &disp1, CImgDisplay &disp2, CImgDisplay &disp3) |
Wait for any event occuring either on the display disp1 , disp2 or disp3 . More... | |
static void | wait (CImgDisplay &disp1, CImgDisplay &disp2, CImgDisplay &disp3, CImgDisplay &disp4) |
Wait for any event occuring either on the display disp1 , disp2 , disp3 or disp4 . More... | |
static void | wait_all () |
Wait for a window event in any CImg window. More... | |
This class represents a window which can display CImg images and handles mouse and keyboard events.
Creating a CImgDisplay
instance opens a window that can be used to display a CImg<T>
image of a CImgList<T>
image list inside. When a display is created, associated window events (such as mouse motion, keyboard and window size changes) are handled and can be easily detected by testing specific CImgDisplay
data fields. See cimg_displays for a complete tutorial on using the CImgDisplay
class.
|
inline |
Destructor.
Definition at line 6313 of file CImg.h.
References CImgDisplay::assign().
|
inline |
Create an empty display window.
Definition at line 6318 of file CImg.h.
|
inline |
Create a display window with a specified size pwidth
x height
.
dimw | Width of the display window. |
dimh | Height of the display window. |
title | Title of the display window. |
normalization_type | Normalization type of the display window (0=none, 1=always, 2=once). |
fullscreen_flag | : Fullscreen mode. |
closed_flag | : Initially visible mode. A black image will be initially displayed in the display window. |
Definition at line 6332 of file CImg.h.
References CImgDisplay::assign(), and CImgDisplay::title.
|
inlineexplicit |
Create a display window from an image.
img | : Image that will be used to create the display window. |
title | : Title of the display window |
normalization_type | : Normalization type of the display window. |
fullscreen_flag | : Fullscreen mode. |
closed_flag | : Initially visible mode. |
Definition at line 6349 of file CImg.h.
References CImgDisplay::assign(), and CImgDisplay::title.
|
inlineexplicit |
Create a display window from an image list.
list | : The list of images to display. |
title | : Title of the display window |
normalization_type | : Normalization type of the display window. |
fullscreen_flag | : Fullscreen mode. |
closed_flag | : Initially visible mode. |
Definition at line 6366 of file CImg.h.
References CImgDisplay::assign(), and CImgDisplay::title.
|
inline |
Create a display window by copying another one.
disp | : Display window to copy. |
Definition at line 6379 of file CImg.h.
References CImgDisplay::assign().
|
inlinestatic |
Definition at line 6437 of file CImg.h.
References dy, CImgDisplay::screen_dimx(), and CImgDisplay::screen_dimy().
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), and CImg< uintT >::get_select_graph().
|
inlinestatic |
Definition at line 6742 of file CImg.h.
|
inline |
Definition at line 6586 of file CImg.h.
References _cimg_iskey_case, A, GridConversion::TestFixture::F1(), and GridConversion::TestFixture::F2().
|
inline |
In-place version of the destructor.
Definition at line 6388 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImgDisplay::assign(), CImgDisplay::CImgDisplay(), CImg< uintT >::display_graph(), CImgDisplay::empty(), CImg< uintT >::get_select_graph(), CImgDisplay::operator=(), and CImgDisplay::~CImgDisplay().
|
inline |
In-place version of the previous constructor.
Definition at line 6393 of file CImg.h.
References CImgDisplay::title.
|
inline |
In-place version of the previous constructor.
Definition at line 6404 of file CImg.h.
References CImgDisplay::assign(), CImgDisplay::title, and CImg< T >::width.
|
inline |
In-place version of the previous constructor.
Definition at line 6415 of file CImg.h.
References CImgDisplay::assign(), CImgDisplay::title, and CImgList< T >::width.
|
inline |
In-place version of the previous constructor.
Definition at line 6425 of file CImg.h.
References CImgDisplay::assign(), CImgDisplay::height, and CImgDisplay::width.
|
inline |
|
inline |
Return display width.
Definition at line 6623 of file CImg.h.
References CImgDisplay::width.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), cimg_library::cimg::dialog(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().
|
inline |
Return display height.
Definition at line 6628 of file CImg.h.
References CImgDisplay::height.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), cimg_library::cimg::dialog(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().
|
inline |
Display an image in a window.
Definition at line 6689 of file CImg.h.
References CImg< T >::width.
Referenced by CImg< uintT >::_get_select(), CImgDisplay::display(), CImg< uintT >::display(), and CImgDisplay::operator=().
|
inline |
Display an image list CImgList<T> into a display window.
First, all images of the list are appended into a single image used for visualization, then this image is displayed in the current display window.
list | : The list of images to display. |
axis | : The axis used to append the image for visualization. Can be 'x' (default),'y','z' or 'v'. |
align | : Defines the relative alignment of images when displaying images of different sizes. Can be 'c' (centered, which is the default), 'p' (top alignment) and 'n' (bottom aligment). |
Definition at line 6705 of file CImg.h.
References CImgDisplay::display(), and CImgList< T >::get_append().
|
inlinestatic |
Return a reference to an empty display.
Definition at line 6431 of file CImg.h.
References CImgDisplay::assign().
|
inline |
Clear all events of the current display.
Definition at line 6848 of file CImg.h.
References CImgDisplay::buttons, CImgDisplay::fps_fps, CImgDisplay::fps_frames, CImgDisplay::fps_timer, CImgDisplay::is_event, CImgDisplay::is_key0, CImgDisplay::is_key1, CImgDisplay::is_key2, CImgDisplay::is_key3, CImgDisplay::is_key4, CImgDisplay::is_key5, CImgDisplay::is_key6, CImgDisplay::is_key7, CImgDisplay::is_key8, CImgDisplay::is_key9, CImgDisplay::is_keyA, CImgDisplay::is_keyALT, CImgDisplay::is_keyALTGR, CImgDisplay::is_keyAPPLEFT, CImgDisplay::is_keyAPPRIGHT, CImgDisplay::is_keyARROWDOWN, CImgDisplay::is_keyARROWLEFT, CImgDisplay::is_keyARROWRIGHT, CImgDisplay::is_keyARROWUP, CImgDisplay::is_keyB, CImgDisplay::is_keyBACKSPACE, CImgDisplay::is_keyC, CImgDisplay::is_keyCAPSLOCK, CImgDisplay::is_keyCTRLLEFT, CImgDisplay::is_keyCTRLRIGHT, CImgDisplay::is_keyD, CImgDisplay::is_keyDELETE, CImgDisplay::is_keyE, CImgDisplay::is_keyEND, CImgDisplay::is_keyENTER, CImgDisplay::is_keyESC, CImgDisplay::is_keyF, CImgDisplay::is_keyF1, CImgDisplay::is_keyF10, CImgDisplay::is_keyF11, CImgDisplay::is_keyF12, CImgDisplay::is_keyF2, CImgDisplay::is_keyF3, CImgDisplay::is_keyF4, CImgDisplay::is_keyF5, CImgDisplay::is_keyF6, CImgDisplay::is_keyF7, CImgDisplay::is_keyF8, CImgDisplay::is_keyF9, CImgDisplay::is_keyG, CImgDisplay::is_keyH, CImgDisplay::is_keyHOME, CImgDisplay::is_keyI, CImgDisplay::is_keyINSERT, CImgDisplay::is_keyJ, CImgDisplay::is_keyK, CImgDisplay::is_keyL, CImgDisplay::is_keyM, CImgDisplay::is_keyMENU, CImgDisplay::is_keyN, CImgDisplay::is_keyO, CImgDisplay::is_keyP, CImgDisplay::is_keyPAD0, CImgDisplay::is_keyPAD1, CImgDisplay::is_keyPAD2, CImgDisplay::is_keyPAD3, CImgDisplay::is_keyPAD4, CImgDisplay::is_keyPAD5, CImgDisplay::is_keyPAD6, CImgDisplay::is_keyPAD7, CImgDisplay::is_keyPAD8, CImgDisplay::is_keyPAD9, CImgDisplay::is_keyPADADD, CImgDisplay::is_keyPADDIV, CImgDisplay::is_keyPADMUL, CImgDisplay::is_keyPADSUB, CImgDisplay::is_keyPAGEDOWN, CImgDisplay::is_keyPAGEUP, CImgDisplay::is_keyPAUSE, CImgDisplay::is_keyQ, CImgDisplay::is_keyR, CImgDisplay::is_keyS, CImgDisplay::is_keySHIFTLEFT, CImgDisplay::is_keySHIFTRIGHT, CImgDisplay::is_keySPACE, CImgDisplay::is_keyT, CImgDisplay::is_keyTAB, CImgDisplay::is_keyU, CImgDisplay::is_keyV, CImgDisplay::is_keyW, CImgDisplay::is_keyX, CImgDisplay::is_keyY, CImgDisplay::is_keyZ, CImgDisplay::is_moved, CImgDisplay::is_resized, CImgDisplay::keys, CImgDisplay::mouse_x, CImgDisplay::mouse_y, CImgDisplay::released_keys, CImgDisplay::timer, and CImgDisplay::wheel.
Referenced by CImg< uintT >::_display_object3d(), and CImg< uintT >::display_graph().
|
inline |
Return the frame per second rate.
Definition at line 6667 of file CImg.h.
References CImgDisplay::fps_fps, CImgDisplay::fps_frames, CImgDisplay::fps_timer, and cimg_library::cimg::time().
|
inline |
Set fullscreen mode.
Definition at line 6765 of file CImg.h.
References CImgDisplay::is_empty(), CImgDisplay::is_fullscreen, and CImgDisplay::toggle_fullscreen().
|
inline |
|
inline |
Return true is display is empty.
Definition at line 6493 of file CImg.h.
References CImgDisplay::height, and CImgDisplay::width.
Referenced by CImgDisplay::fullscreen(), CImgDisplay::normalscreen(), CImgDisplay::operator bool(), and CImgDisplay::wait().
|
inline |
Test if any key has been pressed.
Definition at line 6498 of file CImg.h.
References CImgDisplay::keys.
Referenced by CImgDisplay::is_key().
|
inline |
|
inline |
Test if a key sequence has been typed.
Definition at line 6510 of file CImg.h.
References CImgDisplay::is_key(), and cimg_library::cimg::key1.
|
inline |
Test if a key sequence has been typed.
Definition at line 6516 of file CImg.h.
References CImgDisplay::is_key(), cimg_library::cimg::key1, and cimg_library::cimg::key2.
|
inline |
Test if a key sequence has been typed.
Definition at line 6522 of file CImg.h.
References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, and cimg_library::cimg::key3.
|
inline |
Test if a key sequence has been typed.
Definition at line 6529 of file CImg.h.
References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, and cimg_library::cimg::key4.
|
inline |
Test if a key sequence has been typed.
Definition at line 6536 of file CImg.h.
References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, cimg_library::cimg::key4, and cimg_library::cimg::key5.
|
inline |
Test if a key sequence has been typed.
Definition at line 6543 of file CImg.h.
References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, cimg_library::cimg::key4, cimg_library::cimg::key5, and cimg_library::cimg::key6.
|
inline |
Test if a key sequence has been typed.
Definition at line 6551 of file CImg.h.
References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, cimg_library::cimg::key4, cimg_library::cimg::key5, cimg_library::cimg::key6, and cimg_library::cimg::key7.
|
inline |
Test if a key sequence has been typed.
Definition at line 6559 of file CImg.h.
References CImgDisplay::is_key(), cimg_library::cimg::key1, cimg_library::cimg::key2, cimg_library::cimg::key3, cimg_library::cimg::key4, cimg_library::cimg::key5, cimg_library::cimg::key6, cimg_library::cimg::key7, and cimg_library::cimg::key8.
|
inline |
|
inline |
Move window.
Definition at line 6796 of file CImg.h.
Referenced by cimg_library::cimg::dialog().
|
inline |
Set normal screen mode.
Definition at line 6771 of file CImg.h.
References CImgDisplay::is_empty(), CImgDisplay::is_fullscreen, and CImgDisplay::toggle_fullscreen().
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), and CImg< uintT >::get_select_graph().
|
inline |
Return true if display is not empty.
Definition at line 6481 of file CImg.h.
References CImgDisplay::is_empty().
|
inline |
Definition at line 6465 of file CImg.h.
References CImgDisplay::display().
|
inline |
Definition at line 6471 of file CImg.h.
References CImgDisplay::display().
|
inline |
Operator=().
Definition at line 6476 of file CImg.h.
References CImgDisplay::assign().
|
inline |
|
inline |
Render image buffer into GDI native image format.
Definition at line 6828 of file CImg.h.
References CImg< T >::width.
|
inline |
Resize a display window with the size of an image.
img | : Input image. image.width and image.height give the new dimensions of the display window. |
redraw | : If true (default), the current displayed image in the display window will be bloc-interpolated to fit the new dimensions. If false , a black image will be drawn in the resized window. |
Definition at line 6715 of file CImg.h.
References CImg< T >::height, and CImg< T >::width.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), CImg< uintT >::get_select_graph(), and CImgDisplay::resize().
|
inline |
Resize a display window using the size of the given display disp
.
Definition at line 6720 of file CImg.h.
References CImgDisplay::height, CImgDisplay::resize(), and CImgDisplay::width.
|
inline |
Resize a display window in its current size.
Definition at line 6725 of file CImg.h.
References CImgDisplay::resize(), CImgDisplay::window_height, and CImgDisplay::window_width.
|
inline |
|
inlinestatic |
Return the width of the screen resolution.
Definition at line 6655 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImgDisplay::_fitscreen(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), and CImg< uintT >::get_select_graph().
|
inlinestatic |
Return the height of the screen resolution.
Definition at line 6660 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImgDisplay::_fitscreen(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), and CImg< uintT >::get_select_graph().
|
inline |
|
inline |
Set the window title.
Definition at line 6820 of file CImg.h.
Referenced by CImg< uintT >::_display().
|
inline |
Show a closed display.
Definition at line 6786 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().
|
inline |
|
inline |
Take a snapshot of the display in the specified image.
Definition at line 6841 of file CImg.h.
References CImg< T >::assign(), CImgDisplay::height, and CImgDisplay::width.
Referenced by CImg< uintT >::assign(), CImg< uintT >::CImg(), and CImg< uintT >::operator=().
|
inline |
Toggle fullscreen mode.
Definition at line 6779 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d(), CImgDisplay::fullscreen(), and CImgDisplay::normalscreen().
|
inline |
Synchronized waiting function. Same as cimg::wait().
Definition at line 6870 of file CImg.h.
References cimg_library::cimg::_sleep(), and CImgDisplay::timer.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), and CImg< uintT >::get_select_graph().
|
inline |
Wait for an event occuring on the current display.
Definition at line 6876 of file CImg.h.
References CImgDisplay::is_empty().
|
inlinestatic |
Wait for any event occuring on the display disp1
.
Definition at line 6882 of file CImg.h.
References CImgDisplay::is_event, and CImgDisplay::wait_all().
|
inlinestatic |
Wait for any event occuring either on the display disp1
or disp2
.
Definition at line 6888 of file CImg.h.
References CImgDisplay::is_event, and CImgDisplay::wait_all().
|
inlinestatic |
Wait for any event occuring either on the display disp1
, disp2
or disp3
.
Definition at line 6894 of file CImg.h.
References CImgDisplay::is_event, and CImgDisplay::wait_all().
|
inlinestatic |
Wait for any event occuring either on the display disp1
, disp2
, disp3
or disp4
.
Definition at line 6900 of file CImg.h.
References CImgDisplay::is_event, and CImgDisplay::wait_all().
|
inlinestatic |
Wait for a window event in any CImg window.
Definition at line 6908 of file CImg.h.
Referenced by CImgDisplay::wait().
|
inline |
Return display window width.
Definition at line 6633 of file CImg.h.
References CImgDisplay::window_width.
|
inline |
Return display window height.
Definition at line 6638 of file CImg.h.
References CImgDisplay::window_height.
|
inline |
Return X-coordinate of the window.
Definition at line 6643 of file CImg.h.
References CImgDisplay::window_x.
|
inline |
Return Y-coordinate of the window.
Definition at line 6648 of file CImg.h.
References CImgDisplay::window_y.
volatile unsigned int& button |
Definition at line 6148 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), and CImg< uintT >::get_select_graph().
volatile unsigned int buttons[512] |
Button state of the mouse.
Definition at line 6147 of file CImg.h.
Referenced by CImgDisplay::flush().
float fps_fps |
Definition at line 6267 of file CImg.h.
Referenced by CImgDisplay::flush(), and CImgDisplay::frames_per_second().
unsigned long fps_frames |
Definition at line 6268 of file CImg.h.
Referenced by CImgDisplay::flush(), and CImgDisplay::frames_per_second().
unsigned long fps_timer |
Definition at line 6268 of file CImg.h.
Referenced by CImgDisplay::flush(), and CImgDisplay::frames_per_second().
unsigned int height |
Height of the display.
Definition at line 6120 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImgDisplay::assign(), CImgDisplay::dimy(), CImg< uintT >::get_resize(), CImg< uintT >::get_select_graph(), CImgDisplay::is_empty(), CImg< uintT >::is_sameY(), CImgDisplay::resize(), CImg< uintT >::resize(), and CImgDisplay::snapshot().
volatile bool is_closed |
Closed state of the window.
Definition at line 6162 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().
volatile bool is_event |
Event state of the window.
Definition at line 6171 of file CImg.h.
Referenced by CImgDisplay::flush(), and CImgDisplay::wait().
bool is_fullscreen |
Fullscreen state of the display.
Definition at line 6264 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d(), CImgDisplay::fullscreen(), and CImgDisplay::normalscreen().
volatile bool is_key0 |
Definition at line 6197 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key1 |
Definition at line 6188 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key2 |
Definition at line 6189 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key3 |
Definition at line 6190 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key4 |
Definition at line 6191 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key5 |
Definition at line 6192 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key6 |
Definition at line 6193 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key7 |
Definition at line 6194 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key8 |
Definition at line 6195 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_key9 |
Definition at line 6196 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyA |
Definition at line 6217 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyALT |
Definition at line 6239 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_get_select(), and CImgDisplay::flush().
volatile bool is_keyALTGR |
Definition at line 6241 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyAPPLEFT |
Definition at line 6238 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyAPPRIGHT |
Definition at line 6242 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyARROWDOWN |
Definition at line 6246 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyARROWLEFT |
Definition at line 6245 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyARROWRIGHT |
Definition at line 6247 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyARROWUP |
Definition at line 6236 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyB |
Definition at line 6232 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyBACKSPACE |
Definition at line 6198 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyC |
Definition at line 6230 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyCAPSLOCK |
Definition at line 6216 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyCTRLLEFT |
Definition at line 6237 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImg< uintT >::display_graph(), CImgDisplay::flush(), and CImg< uintT >::get_select_graph().
volatile bool is_keyCTRLRIGHT |
Definition at line 6244 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyD |
Definition at line 6219 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyDELETE |
Definition at line 6213 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyE |
Definition at line 6205 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyEND |
Definition at line 6214 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyENTER |
Definition at line 6226 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyESC |
Current state of the corresponding key (exists for all referenced keys).
Definition at line 6174 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF |
Definition at line 6220 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF1 |
Definition at line 6175 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF10 |
Definition at line 6184 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF11 |
Definition at line 6185 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF12 |
Definition at line 6186 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF2 |
Definition at line 6176 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF3 |
Definition at line 6177 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF4 |
Definition at line 6178 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF5 |
Definition at line 6179 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF6 |
Definition at line 6180 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF7 |
Definition at line 6181 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF8 |
Definition at line 6182 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyF9 |
Definition at line 6183 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyG |
Definition at line 6221 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyH |
Definition at line 6222 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyHOME |
Definition at line 6200 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyI |
Definition at line 6210 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyINSERT |
Definition at line 6199 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyJ |
Definition at line 6223 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyK |
Definition at line 6224 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyL |
Definition at line 6225 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyM |
Definition at line 6234 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyMENU |
Definition at line 6243 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyN |
Definition at line 6233 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyO |
Definition at line 6211 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyP |
Definition at line 6212 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD0 |
Definition at line 6248 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD1 |
Definition at line 6249 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD2 |
Definition at line 6250 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD3 |
Definition at line 6251 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD4 |
Definition at line 6252 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD5 |
Definition at line 6253 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD6 |
Definition at line 6254 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD7 |
Definition at line 6255 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD8 |
Definition at line 6256 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAD9 |
Definition at line 6257 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPADADD |
Definition at line 6258 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPADDIV |
Definition at line 6261 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPADMUL |
Definition at line 6260 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPADSUB |
Definition at line 6259 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAGEDOWN |
Definition at line 6215 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAGEUP |
Definition at line 6201 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyPAUSE |
Definition at line 6187 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyQ |
Definition at line 6203 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyR |
Definition at line 6206 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyS |
Definition at line 6218 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keySHIFTLEFT |
Definition at line 6227 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_get_select(), and CImgDisplay::flush().
volatile bool is_keySHIFTRIGHT |
Definition at line 6235 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keySPACE |
Definition at line 6240 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyT |
Definition at line 6207 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyTAB |
Definition at line 6202 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyU |
Definition at line 6209 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyV |
Definition at line 6231 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyW |
Definition at line 6204 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyX |
Definition at line 6229 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyY |
Definition at line 6208 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_keyZ |
Definition at line 6228 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_moved |
Moved state of the window.
Definition at line 6168 of file CImg.h.
Referenced by CImgDisplay::flush().
volatile bool is_resized |
Resized state of the window.
Definition at line 6165 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), CImgDisplay::flush(), and CImg< uintT >::get_select_graph().
volatile unsigned int& key |
Key value if pressed.
Definition at line 6154 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().
volatile unsigned int keys[512] |
Definition at line 6155 of file CImg.h.
Referenced by CImgDisplay::flush(), and CImgDisplay::is_key().
volatile int mouse_x |
X-coordinate of the mouse pointer on the display.
Definition at line 6135 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), CImg< uintT >::display_graph(), CImgDisplay::flush(), and CImg< uintT >::get_select_graph().
volatile int mouse_y |
Y-coordinate of the mouse pointer on the display.
Definition at line 6138 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), cimg_library::cimg::dialog(), CImg< uintT >::display_graph(), CImgDisplay::flush(), and CImg< uintT >::get_select_graph().
unsigned int normalization |
Normalization type used for the display.
Definition at line 6141 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImg< uintT >::display_graph(), and CImg< uintT >::get_select_graph().
volatile unsigned int released_keys[512] |
Definition at line 6159 of file CImg.h.
Referenced by CImgDisplay::flush().
unsigned long timer |
Definition at line 6268 of file CImg.h.
Referenced by CImgDisplay::flush(), and CImgDisplay::wait().
char* title |
Display title.
Definition at line 6144 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImgDisplay::assign(), CImgDisplay::CImgDisplay(), and CImgList< uintT >::display().
volatile int wheel |
Wheel state of the mouse.
Definition at line 6151 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImg< uintT >::display_graph(), CImgDisplay::flush(), and CImg< uintT >::get_select_graph().
unsigned int width |
Width of the display.
Definition at line 6117 of file CImg.h.
Referenced by CImg< uintT >::_display(), CImg< uintT >::_display_object3d(), CImg< uintT >::_get_select(), CImgDisplay::assign(), CImgDisplay::dimx(), CImg< uintT >::get_resize(), CImg< uintT >::get_select_graph(), CImgDisplay::is_empty(), CImg< uintT >::is_sameX(), CImgDisplay::resize(), CImg< uintT >::resize(), and CImgDisplay::snapshot().
volatile unsigned int window_height |
Height of the underlying window.
Definition at line 6126 of file CImg.h.
Referenced by CImgDisplay::resize(), and CImgDisplay::window_dimy().
volatile unsigned int window_width |
Width of the underlying window.
Definition at line 6123 of file CImg.h.
Referenced by CImgDisplay::resize(), and CImgDisplay::window_dimx().
volatile int window_x |
X-pos of the display on the screen.
Definition at line 6129 of file CImg.h.
Referenced by CImgDisplay::window_posx().
volatile int window_y |
Y-pos of the display on the screen.
Definition at line 6132 of file CImg.h.
Referenced by CImgDisplay::window_posy().