Public Member Functions |
| CImgDisplay () |
| Create an empty display window.
|
| CImgDisplay (const unsigned int dimw, const unsigned int dimh, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
| Create a display window with a specified size pwidth x height .
|
template<typename T > |
| CImgDisplay (const CImg< T > &img, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
| Create a display window from an image.
|
template<typename T > |
| CImgDisplay (const CImgList< T > &list, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
| Create a display window from an image list.
|
| CImgDisplay (const CImgDisplay &disp) |
| Create a display window by copying another one.
|
| ~CImgDisplay () |
| Destructor.
|
CImgDisplay & | operator= (const CImgDisplay &disp) |
| Assignment operator.
|
bool | is_empty () const |
| Return true is display is empty.
|
| operator bool () const |
| Return false if display is empty.
|
int | dimx () const |
| Return display width.
|
int | dimy () const |
| Return display height.
|
int | window_dimx () const |
| Return display window width.
|
int | window_dimy () const |
| Return display window height.
|
int | window_posx () const |
| Return X-coordinate of the window.
|
int | window_posy () const |
| Return Y-coordinate of the window.
|
CImgDisplay & | wait (const unsigned int milliseconds) |
| Synchronized waiting function. Same as cimg::wait().
|
CImgDisplay & | wait () |
| Wait for an event occuring on the current display.
|
float | frames_per_second () |
| Return the frame per second rate.
|
template<typename T > |
CImgDisplay & | display (const CImgList< T > &list, const char axe='x', const char align='c') |
| Display an image list CImgList<T> into a display window.
|
template<typename T > |
CImgDisplay & | operator<< (const CImg< T > &img) |
| Display an image CImg<T> into a display window.
|
template<typename T > |
CImgDisplay & | operator<< (const CImgList< T > &list) |
| Display an image CImg<T> into a display window.
|
template<typename T > |
CImgDisplay & | resize (const CImg< T > &img, const bool redraw=true) |
| Resize a display window with the size of an image.
|
CImgDisplay & | resize (const CImgDisplay &disp, const bool redraw=true) |
| Resize a display window using the size of the given display disp .
|
CImgDisplay & | resize (const bool redraw=true) |
| Resize a display window in its current size.
|
template<typename tp , typename tf , typename tc , typename to > |
CImgDisplay & | display_object3d (const tp &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, const to &opacities, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, const float ambient_light=0.05f, const bool display_axes=true, float *const pose_matrix=0) |
| Display a 3d object.
|
template<typename tp , typename tf , typename tc > |
CImgDisplay & | display_object3d (const tp &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, const float ambient_light=0.05f, const bool display_axes=true, float *const pose_matrix=0, const float opacity=1.0f) |
| Display a 3D object.
|
CImgDisplay & | toggle_fullscreen () |
| Toggle fullscreen mode.
|
CImgDisplay & | flush () |
| Clear mouse and key states of the current display.
|
bool | is_key (const bool remove=false) |
| Test if any key has been pressed.
|
bool | is_key (const unsigned int key1, const bool remove) |
| Test if a key has been pressed.
|
bool | is_key (const unsigned int key1, const unsigned int key2, const bool remove) |
| Test if a key sequence has been typed.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
bool | is_key (const unsigned int *const keyseq, const unsigned int N, const bool remove=true) |
| Test if a key sequence has been typed.
|
CImgDisplay & | assign () |
| In-place version of the destructor.
|
CImgDisplay & | assign (const unsigned int dimw, const unsigned int dimh, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
| In-place version of the previous constructor.
|
template<typename T > |
CImgDisplay & | assign (const CImg< T > &img, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
| In-place version of the previous constructor.
|
template<typename T > |
CImgDisplay & | assign (const CImgList< T > &list, const char *title=0, const unsigned int normalization_type=3, const unsigned int events_type=3, const bool fullscreen_flag=false, const bool closed_flag=false) |
| In-place version of the previous constructor.
|
CImgDisplay & | assign (const CImgDisplay &disp) |
| In-place version of the previous constructor.
|
template<typename T > |
CImgDisplay & | display (const CImg< T > &img) |
| Display an image in a window.
|
CImgDisplay & | resize (const int width, const int height, const bool redraw=true) |
| Resize window.
|
CImgDisplay & | move (const int posx, const int posy) |
| Move window.
|
CImgDisplay & | set_mouse (const int posx, const int posy) |
| Move mouse pointer to a specific location.
|
CImgDisplay & | hide_mouse () |
| Hide mouse pointer.
|
CImgDisplay & | show_mouse () |
| Show mouse pointer.
|
CImgDisplay & | show () |
| Show a closed display.
|
CImgDisplay & | close () |
| Close a visible display.
|
CImgDisplay & | set_title (const char *format,...) |
| Set the window title.
|
CImgDisplay & | paint () |
| Re-paint image content in window.
|
template<typename T > |
CImgDisplay & | render (const CImg< T > &img) |
| Render image buffer into GDI native image format.
|
template<typename T > |
const CImgDisplay & | snapshot (CImg< T > &img) const |
| Take a snapshot of the display in the specified image.
|
Static Public Member Functions |
static void | wait (CImgDisplay &disp1) |
| Wait for any event occuring on the display disp1 .
|
static void | wait (CImgDisplay &disp1, CImgDisplay &disp2) |
| Wait for any event occuring either on the display disp1 or disp2 .
|
static void | wait (CImgDisplay &disp1, CImgDisplay &disp2, CImgDisplay &disp3) |
| Wait for any event occuring either on the display disp1 , disp2 or disp3 .
|
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 .
|
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 int | screen_dimx () |
| Return the width of the screen resolution.
|
static int | screen_dimy () |
| Return the height of the screen resolution.
|
static void | wait_all () |
| Wait for a window event in any CImg window.
|
Public Attributes |
unsigned int | width |
| Width of the display.
|
unsigned int | height |
| Height of the display.
|
unsigned int | normalization |
| Normalization type used for the display.
|
unsigned int | events |
| Range of events detected by the display.
|
char * | title |
| Display title.
|
volatile int | window_x |
| X-pos of the display on the screen.
|
volatile int | window_y |
| Y-pos of the display on the screen.
|
volatile unsigned int | window_width |
| Width of the underlying window.
|
volatile unsigned int | window_height |
| Height of the underlying window.
|
volatile int | mouse_x |
| X-coordinate of the mouse pointer on the display.
|
volatile int | mouse_y |
| Y-coordinate of the mouse pointer on the display.
|
volatile unsigned int | buttons [512] |
| Button state of the mouse.
|
volatile unsigned int & | button |
volatile int | wheel |
| Wheel state of the mouse.
|
volatile unsigned int & | key |
| Key value if pressed.
|
volatile unsigned int | keys [512] |
volatile unsigned int & | released_key |
| Key value if released.
|
volatile unsigned int | released_keys [512] |
volatile bool | is_closed |
| Closed state of the window.
|
volatile bool | is_resized |
| Resized state of the window.
|
volatile bool | is_moved |
| Moved state of the window.
|
volatile bool | is_event |
| Event state of the window.
|
bool | is_fullscreen |
| Fullscreen state of the display.
|
float | fps_fps |
float | min |
float | max |
unsigned long | timer |
unsigned long | fps_frames |
unsigned long | fps_timer |