Visual Servoing Platform
version 3.6.1 under development (2024-11-21)
|
#include <visp3/gui/vpDisplayGDI.h>
Public Types | |
enum | vpScaleType { SCALE_AUTO , SCALE_1 , SCALE_2 , SCALE_3 , SCALE_4 , SCALE_5 , SCALE_6 , SCALE_7 , SCALE_8 , SCALE_9 , SCALE_10 , SCALE_DEFAULT } |
Public Member Functions | |
vpDisplayGDI () | |
vpDisplayGDI (int winx, int winy, const std::string &title="") | |
vpDisplayGDI (vpImage< unsigned char > &I, vpScaleType type) | |
vpDisplayGDI (vpImage< unsigned char > &I, int winx=-1, int winy=-1, const std::string &title="", vpScaleType type=SCALE_DEFAULT) | |
vpDisplayGDI (vpImage< vpRGBa > &I, vpScaleType type) | |
vpDisplayGDI (vpImage< vpRGBa > &I, int winx=-1, int winy=-1, const std::string &title="", vpScaleType type=SCALE_DEFAULT) | |
void | clearDisplay (const vpColor &color=vpColor::white) VP_OVERRIDE |
void | closeDisplay () VP_OVERRIDE |
void | displayImage (const vpImage< vpRGBa > &I) VP_OVERRIDE |
void | displayImage (const vpImage< unsigned char > &I) VP_OVERRIDE |
void | displayImageROI (const vpImage< unsigned char > &I, const vpImagePoint &iP, unsigned int width, unsigned int height) VP_OVERRIDE |
void | displayImageROI (const vpImage< vpRGBa > &I, const vpImagePoint &iP, unsigned int width, unsigned int height) VP_OVERRIDE |
void | flushDisplay () VP_OVERRIDE |
void | flushDisplayROI (const vpImagePoint &iP, unsigned int width, unsigned int height) VP_OVERRIDE |
void | getImage (vpImage< vpRGBa > &I) VP_OVERRIDE |
unsigned int | getScreenHeight () VP_OVERRIDE |
void | getScreenSize (unsigned int &width, unsigned int &height) VP_OVERRIDE |
unsigned int | getScreenWidth () VP_OVERRIDE |
void | init (vpImage< unsigned char > &I, int winx=-1, int winy=-1, const std::string &title="") VP_OVERRIDE |
void | init (vpImage< vpRGBa > &I, int winx=-1, int winy=-1, const std::string &title="") VP_OVERRIDE |
void | init (unsigned int width, unsigned int height, int winx=-1, int winy=-1, const std::string &title="") VP_OVERRIDE |
void | setFont (const std::string &fontname) VP_OVERRIDE |
void | setDownScalingFactor (unsigned int scale) |
void | setDownScalingFactor (vpScaleType scaleType) |
void | setTitle (const std::string &windowtitle) VP_OVERRIDE |
void | setWindowPosition (int winx, int winy) VP_OVERRIDE |
Inherited functionalities from vpDisplay | |
unsigned int | computeAutoScale (unsigned int width, unsigned int height) |
unsigned int | getDownScalingFactor () |
unsigned int | getHeight () const |
unsigned int | getWidth () const |
int | getWindowXPosition () const |
int | getWindowYPosition () const |
bool | isInitialised () |
Static Public Member Functions | |
Static public vpDisplay functionalities on gray level images. | |
static void | getImage (const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id) |
static void | setFont (const vpImage< unsigned char > &I, const std::string &font) |
static void | setTitle (const vpImage< unsigned char > &I, const std::string &windowtitle) |
static void | setWindowPosition (const vpImage< unsigned char > &I, int winx, int winy) |
static void | displayArrow (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) |
static void | displayArrow (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) |
static void | displayCircle (const vpImage< unsigned char > &I, const vpImageCircle &circle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCircle (const vpImage< unsigned char > &I, const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCircle (const vpImage< unsigned char > &I, int i, int j, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCross (const vpImage< unsigned char > &I, const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1) |
static void | displayCross (const vpImage< unsigned char > &I, int i, int j, unsigned int size, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< unsigned char > &I, const std::list< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1, bool segment=true) |
static void | displayLine (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1, bool segment=true) |
static void | displayLine (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< unsigned char > &I, const std::list< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< unsigned char > &I, const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< unsigned char > &I, int i, int j, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint ¢er, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, int i, int j, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, unsigned int i, unsigned int j, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayText (const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color) |
static void | displayText (const vpImage< unsigned char > &I, int i, int j, const std::string &s, const vpColor &color) |
static bool | getClick (const vpImage< unsigned char > &I, bool blocking=true) |
static bool | getClick (const vpImage< unsigned char > &I, vpImagePoint &ip, bool blocking=true) |
static bool | getClick (const vpImage< unsigned char > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClick (const vpImage< unsigned char > &I, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< unsigned char > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< unsigned char > &I, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, std::string &key, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, char *key, bool blocking=true) |
static bool | getPointerMotionEvent (const vpImage< unsigned char > &I, vpImagePoint &ip) |
static bool | getPointerPosition (const vpImage< unsigned char > &I, vpImagePoint &ip) |
static unsigned int | getDownScalingFactor (const vpImage< unsigned char > &I) |
static void | close (vpImage< unsigned char > &I) |
static void | display (const vpImage< unsigned char > &I) |
static void | displayCamera (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness) |
static void | displayEllipse (const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_normalized_centered_moments, const vpColor &color, unsigned int thickness=1, bool display_center=false, bool display_arc=false) |
static void | displayEllipse (const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, const double &smallalpha, const double &highalpha, bool use_normalized_centered_moments, const vpColor &color, unsigned int thickness=1, bool display_center=false, bool display_arc=false) |
static void | displayFrame (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, const vpImagePoint &offset=vpImagePoint(0, 0), const std::string &frameName="", const vpColor &textColor=vpColor::black, const vpImagePoint &textOffset=vpImagePoint(15, 15)) |
static void | displayPolygon (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1, bool closed=true) |
static void | displayPolygon (const vpImage< unsigned char > &I, const vpPolygon &polygon, const vpColor &color, unsigned int thickness=1, bool closed=true) |
static void | displayROI (const vpImage< unsigned char > &I, const vpRect &roi) |
static void | flush (const vpImage< unsigned char > &I) |
static void | flushROI (const vpImage< unsigned char > &I, const vpRect &roi) |
static void | setBackground (const vpImage< unsigned char > &I, const vpColor &color) |
Protected Member Functions | |
void | displayArrow (const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) VP_OVERRIDE |
void | displayCircle (const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) VP_OVERRIDE |
void | displayCross (const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1) VP_OVERRIDE |
void | displayDotLine (const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) VP_OVERRIDE |
void | displayLine (const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) VP_OVERRIDE |
void | displayPoint (const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1) VP_OVERRIDE |
void | displayRectangle (const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) VP_OVERRIDE |
void | displayRectangle (const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) VP_OVERRIDE |
void | displayRectangle (const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) VP_OVERRIDE |
void | displayText (const vpImagePoint &ip, const std::string &text, const vpColor &color=vpColor::green) VP_OVERRIDE |
bool | getClick (bool blocking=true) VP_OVERRIDE |
bool | getClick (vpImagePoint &ip, bool blocking=true) VP_OVERRIDE |
bool | getClick (vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) VP_OVERRIDE |
bool | getClickUp (vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) VP_OVERRIDE |
bool | getKeyboardEvent (bool blocking=true) VP_OVERRIDE |
bool | getKeyboardEvent (std::string &key, bool blocking) VP_OVERRIDE |
bool | getPointerMotionEvent (vpImagePoint &ip) VP_OVERRIDE |
bool | getPointerPosition (vpImagePoint &ip) VP_OVERRIDE |
void | waitForInit () |
Protected Attributes | |
HANDLE | hThread |
DWORD | threadId |
bool | iStatus |
vpWin32Window | window |
RECT | roi |
Static Protected Attributes | |
static const int | MAX_INIT_DELAY = 5000 |
Static public vpDisplay functionalities on 32 bits color images. | |
bool | m_displayHasBeenInitialized |
int | m_windowXPosition |
int | m_windowYPosition |
unsigned int | m_width |
unsigned int | m_height |
std::string | m_title |
unsigned int | m_scale |
vpScaleType | m_scaleType |
static void | getImage (const vpImage< vpRGBa > &Is, vpImage< vpRGBa > &Id) |
static void | setFont (const vpImage< vpRGBa > &I, const std::string &font) |
static void | setTitle (const vpImage< vpRGBa > &I, const std::string &windowtitle) |
static void | setWindowPosition (const vpImage< vpRGBa > &I, int winx, int winy) |
static void | displayArrow (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) |
static void | displayArrow (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1) |
static void | displayCircle (const vpImage< vpRGBa > &I, const vpImageCircle &circle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCircle (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCircle (const vpImage< vpRGBa > &I, int i, int j, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayCross (const vpImage< vpRGBa > &I, const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1) |
static void | displayCross (const vpImage< vpRGBa > &I, int i, int j, unsigned int size, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< vpRGBa > &I, const std::list< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1, bool segment=true) |
static void | displayLine (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1, bool segment=true) |
static void | displayLine (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< vpRGBa > &I, const std::list< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< vpRGBa > &I, int i, int j, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, int i, int j, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, unsigned int i, unsigned int j, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayText (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color) |
static void | displayText (const vpImage< vpRGBa > &I, int i, int j, const std::string &s, const vpColor &color) |
static bool | getClick (const vpImage< vpRGBa > &I, bool blocking=true) |
static bool | getClick (const vpImage< vpRGBa > &I, vpImagePoint &ip, bool blocking=true) |
static bool | getClick (const vpImage< vpRGBa > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClick (const vpImage< vpRGBa > &I, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< vpRGBa > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< vpRGBa > &I, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, std::string &key, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, char *key, bool blocking=true) |
static bool | getPointerMotionEvent (const vpImage< vpRGBa > &I, vpImagePoint &ip) |
static bool | getPointerPosition (const vpImage< vpRGBa > &I, vpImagePoint &ip) |
static unsigned int | getDownScalingFactor (const vpImage< vpRGBa > &I) |
static void | close (vpImage< vpRGBa > &I) |
static void | display (const vpImage< vpRGBa > &I) |
static void | displayCamera (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness) |
static void | displayEllipse (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_centered_moments, const vpColor &color, unsigned int thickness=1, bool display_center=false, bool display_arc=false) |
static void | displayEllipse (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, const double &theta1, const double &theta2, bool use_centered_moments, const vpColor &color, unsigned int thickness=1, bool display_center=false, bool display_arc=false) |
static void | displayFrame (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, const vpImagePoint &offset=vpImagePoint(0, 0), const std::string &frameName="", const vpColor &textColor=vpColor::black, const vpImagePoint &textOffset=vpImagePoint(15, 15)) |
static void | displayPolygon (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1, bool closed=true) |
static void | displayPolygon (const vpImage< vpRGBa > &I, const vpPolygon &polygon, const vpColor &color, unsigned int thickness=1, bool closed=true) |
static void | displayROI (const vpImage< vpRGBa > &I, const vpRect &roi) |
static void | flush (const vpImage< vpRGBa > &I) |
static void | flushROI (const vpImage< vpRGBa > &I, const vpRect &roi) |
static void | setBackground (const vpImage< vpRGBa > &I, const vpColor &color) |
void | setScale (vpScaleType scaleType, unsigned int width, unsigned int height) |
Display for windows using GDI (available on any windows 32 platform).
GDI stands for Graphics Device Interface and is a core component of Microsoft Windows operating systems used for displaying graphics in a window.
The example below shows how to display an image with this video device.
Definition at line 129 of file vpDisplayGDI.h.
|
inherited |
Values that could be applied to a display to down scale the size of the display.
Enumerator | |
---|---|
SCALE_AUTO | Auto down scaling factor computed fom the screen resolution. |
SCALE_1 | Display and image have the same size. |
SCALE_2 | Display width and height is down scaled by 2 wrt the image size. |
SCALE_3 | Display width and height is down scaled by 3 wrt the image size. |
SCALE_4 | Display width and height is down scaled by 4 wrt the image size. |
SCALE_5 | Display width and height is down scaled by 5 wrt the image size. |
SCALE_6 | Display width and height is down scaled by 6 wrt the image size. |
SCALE_7 | Display width and height is down scaled by 7 wrt the image size. |
SCALE_8 | Display width and height is down scaled by 8 wrt the image size. |
SCALE_9 | Display width and height is down scaled by 9 wrt the image size. |
SCALE_10 | Display width and height is down scaled by 10 wrt the image size. |
SCALE_DEFAULT | Display and image have the same size. Similar to vpDisplay::SCALE_1. |
Definition at line 182 of file vpDisplay.h.
BEGIN_VISP_NAMESPACE vpDisplayGDI::vpDisplayGDI | ( | ) |
Basic constructor.
Definition at line 52 of file vpDisplayGDI.cpp.
vpDisplayGDI::vpDisplayGDI | ( | int | winx, |
int | winy, | ||
const std::string & | title = "" |
||
) |
Constructor : Initialize a display.
winx,winy | The window is set at position x,y (column index, row index). |
title | Window's title. |
Definition at line 62 of file vpDisplayGDI.cpp.
References vpDisplay::m_title, vpDisplay::m_windowXPosition, and vpDisplay::m_windowYPosition.
vpDisplayGDI::vpDisplayGDI | ( | vpImage< unsigned char > & | I, |
vpScaleType | scaleType | ||
) |
Constructor : Initialize a display to visualize a grayscale image (8 bits).
I | Image to be displayed (note that image has to be initialized). |
scaleType | : If this parameter is set to:
|
Definition at line 151 of file vpDisplayGDI.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplayWin32::init(), and vpDisplay::setScale().
vpDisplayGDI::vpDisplayGDI | ( | vpImage< unsigned char > & | I, |
int | winx = -1 , |
||
int | winy = -1 , |
||
const std::string & | title = "" , |
||
vpScaleType | scaleType = SCALE_DEFAULT |
||
) |
Constructor : Initialize a display to visualize a grayscale image (8 bits).
I | Image to be displayed (note that image has to be initialized). |
winx,winy | The window is set at position x,y (column index, row index). |
title | Window's title. |
scaleType | : If this parameter is set to:
|
Definition at line 180 of file vpDisplayGDI.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplayWin32::init(), and vpDisplay::setScale().
vpDisplayGDI::vpDisplayGDI | ( | vpImage< vpRGBa > & | I, |
vpScaleType | scaleType | ||
) |
Constructor : Initialize a display to visualize a RGBa image (32 bits).
I | : image to be displayed (note that image has to be initialized). |
scaleType | : If this parameter is set to:
|
Definition at line 94 of file vpDisplayGDI.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplayWin32::init(), and vpDisplay::setScale().
vpDisplayGDI::vpDisplayGDI | ( | vpImage< vpRGBa > & | I, |
int | winx = -1 , |
||
int | winy = -1 , |
||
const std::string & | title = "" , |
||
vpScaleType | scaleType = SCALE_DEFAULT |
||
) |
Constructor : Initialize a display to visualize a RGBa image (32 bits).
I | : image to be displayed (note that image has to be initialized). |
winx,winy | The window is set at position x,y (column index, row index). |
title | Window's title. |
scaleType | : If this parameter is set to:
|
Definition at line 123 of file vpDisplayGDI.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplayWin32::init(), and vpDisplay::setScale().
|
inherited |
Clears the display.
color | : the color to fill the display with |
Definition at line 852 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Close the display attached to I.
Definition at line 47 of file vpDisplay_uchar.cpp.
Close the display attached to I.
Definition at line 47 of file vpDisplay_rgba.cpp.
|
inherited |
Closes the display. Destroys the window.
Definition at line 863 of file vpDisplayWin32.cpp.
References vpDisplayWin32::hThread, vpDisplayWin32::iStatus, vpDisplay::m_displayHasBeenInitialized, vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
Referenced by vpDisplayWin32::~vpDisplayWin32().
|
inherited |
Computes the down scaling factor that should be applied to the window size to display the image given the resolution of the screen.
width,height | : Image size. |
Definition at line 249 of file vpDisplay.cpp.
Referenced by vpDisplay::setScale().
|
staticinherited |
Display image I.
I | : Image to display. |
Definition at line 830 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::defineDots(), vpWireFrameSimulator::getExternalImage(), vpWireFrameSimulator::getInternalImage(), vpPlot::init(), vpMbGenericTracker::initFromPose(), vpDisplayFactory::impl::makeDisplayGridHelper(), vpDisplayOpenCV::on_mouse(), vpMbDepthDenseTracker::segmentPointCloud(), and vpMbDepthNormalTracker::segmentPointCloud().
Display image I.
I | : Image to display. |
Definition at line 828 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display an arrow from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 57 of file vpDisplay_uchar.cpp.
Referenced by vpMeLine::computeRhoTheta(), vpMbDepthNormalTracker::display(), vpProjectionDisplay::displayCamera(), and vpMbtFaceDepthNormal::displayFeature().
|
staticinherited |
Display an arrow from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | : Initial image point. |
i2,j2 | : Final image point. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 73 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display an arrow from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 57 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display an arrow from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | : Initial image point. |
i2,j2 | : Final image point. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 73 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Display an arrow from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image point. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 839 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Display the projection of an object camera represented by a cone in the image.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object camera. |
color | : Color used to display the camera in the image. |
thickness | : Thickness of the graphics drawing. |
Definition at line 92 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display the projection of an object camera represented by a cone in the image.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object camera. |
color | : Color used to display the camera in the image. |
thickness | : Thickness of the graphics drawing. |
Definition at line 92 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
circle | : Circle to display. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 149 of file vpDisplay_uchar.cpp.
References vpImageCircle::getCenter(), and vpImageCircle::getRadius().
Referenced by vpFeatureSegment::display(), vpProjectionDisplay::display(), vpKeyPoint::displayMatching(), and vpDot2::trackAndDisplay().
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
center | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 167 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
i,j | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 185 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
circle | Circle to display. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 148 of file vpDisplay_rgba.cpp.
References vpImageCircle::getCenter(), and vpImageCircle::getRadius().
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
center | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 166 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
i,j | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 184 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Display a circle.
center | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 796 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Display a cross at the image point ip location.
I | : The image associated to the display. |
ip | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 199 of file vpDisplay_uchar.cpp.
Referenced by vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpMeSite::display(), vpKltOpencv::display(), vpDot::display(), vpDot2::display(), vpMeNurbs::display(), vpKeyPoint::display(), vpCalibration::displayData(), vpMbEdgeTracker::displayFeaturesOnImage(), vpCalibration::displayGrid(), vpMeLine::displayLine(), vpKeyPoint::displayMatching(), vpPose::displayModel(), vpFeatureDisplay::displayPoint(), vpMeSite::getQueryList(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbGenericTracker::initFromPose(), vpMeLine::initTracking(), vpMeNurbs::initTracking(), vpMeEllipse::initTracking(), vpMeEllipse::sample(), vpMeLine::sample(), vpMeLine::seekExtremities(), vpMeNurbs::seekExtremities(), vpDot::track(), and vpDot2::track().
|
staticinherited |
Display a cross at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 213 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a cross at the image point ip location.
I | : The image associated to the display. |
ip | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 198 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a cross at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 212 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Display a cross at the image point ip location.
ip | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 824 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Display dashed lines for the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 281 of file vpDisplay_uchar.cpp.
References vpImagePoint::distance().
|
staticinherited |
Display dashed lines for the list of image points.
I | : The image associated to the display. |
ips | : Vector of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 255 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a dashed line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 226 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::trackAndDisplay().
|
staticinherited |
Display a dashed line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 240 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display the dashed lines formed by the list of image points
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 279 of file vpDisplay_rgba.cpp.
References vpImagePoint::distance().
|
staticinherited |
Display the dashed lines formed by the list of image points
I | : The image associated to the display. |
ips | : Vector of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 254 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a dashed line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 225 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a dashed line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 239 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Display a dashed line from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 714 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_normalized_centered_moments these parameters are:
|
use_normalized_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the normalized centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Ellipse color. |
thickness | : Ellipse thickness. |
display_center | : Display a cross at the center of the ellipse. |
display_arc | : Display a line between the center and the first arc extremity and a line between the center and the second arc extremity. |
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 340 of file vpDisplay_uchar.cpp.
Referenced by vpMbtDistanceCircle::display(), vpMbEdgeTracker::display(), vpMeEllipse::displayEllipse(), vpDisplay::displayEllipse(), and vpFeatureDisplay::displayEllipse().
|
staticinherited |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_normalized_centered_moments these parameters are:
|
smallalpha | : Smallest angle in rad (0 for a complete ellipse). |
highalpha | : Highest angle in rad (2 for a complete ellipse). |
use_normalized_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the normalized centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Ellipse color. |
thickness | : Ellipse thickness. |
display_center | : Display a cross at the center of the ellipse. |
display_arc | : Display a line between the center and the first arc extremity and a line between the center and the second arc extremity. |
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 387 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_normalized_centered_moments these parameters are:
|
use_normalized_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the normalized centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Ellipse color. |
thickness | : Ellipse thickness. |
display_center | : Display a cross at the center of the ellipse. |
display_arc | : Display a line between the center and the first arc extremity and a line between the center and the second arc extremity. |
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 338 of file vpDisplay_rgba.cpp.
References vpDisplay::displayEllipse().
|
staticinherited |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_normalized_centered_moments these parameters are:
|
smallalpha | : Smallest angle in rad (0 for a complete ellipse). |
highalpha | : Highest angle in rad (2 for a complete ellipse). |
use_normalized_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the normalized centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Ellipse color. |
thickness | : Ellipse thickness. |
display_center | : Display a cross at the center of the ellipse. |
display_arc | : Display a line between the center and the first arc extremity and a line between the center and the second arc extremity. |
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 385 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display the projection of an object frame represented by 3 arrows in the image. Red, green and blue arrows correspond to frame X, Y and Z axis respectively.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object frame. |
color | : Color used to display the frame in the image. |
thickness | : the thickness of the line. |
offset | : Offset in pixels applied to the frame origin location in the image. |
frameName | : Text to display along side the origin of the frame. |
textColor | : Color of the text associated to frameName . |
textOffset | : Offset used to shift the text from the origin of the frame. |
Definition at line 413 of file vpDisplay_uchar.cpp.
Referenced by vpPose::display().
|
staticinherited |
Display the projection of an object frame represented by 3 arrows in the image. Red, green and blue arrows correspond to frame X, Y and Z axis respectively.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object frame. |
color | : Color used to display the frame in the image. |
thickness | : the thickness of the line. |
offset | : Offset in pixels applied to the frame origin location in the image. |
frameName | : Text to display along side the origin of the frame. |
textColor | : Color of the text associated to frameName . |
textOffset | : Offset used to shift the text from the origin of the frame. |
Definition at line 411 of file vpDisplay_rgba.cpp.
|
inherited |
Display the gray level image I (8bits).
I | : Image to display. |
Definition at line 244 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
Display the color image I in RGBa format (32bits).
I | : Image to display. |
Definition at line 193 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
inherited |
Display a selection of the gray level image I (8bits).
I | : Image to display. |
iP | : Top left corner of the region of interest |
width | : Width of the region of interest |
height | : Height of the region of interest |
Definition at line 272 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
inherited |
Display a selection of the color image I in RGBa format (32bits).
I | : Image to display. |
iP | : Top left corner of the region of interest |
width | : Width of the region of interest |
height | : Height of the region of interest |
Definition at line 221 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 537 of file vpDisplay_uchar.cpp.
References vpImagePoint::distance().
|
staticinherited |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : Vector of image points. |
closeTheShape | : If true, display a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 512 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
segment | If true (default) display the segment between the two image points. If false, display the line passing through the two image points. |
Definition at line 429 of file vpDisplay_uchar.cpp.
References vpImagePoint::get_i(), and vpImagePoint::get_j().
Referenced by vpFeatureSegment::display(), vpTemplateTrackerZone::display(), vpPolygon::display(), vpHistogram::display(), vpMbtDistanceCylinder::display(), vpMbtDistanceLine::display(), vpMbtFaceDepthDense::display(), vpMbtFaceDepthNormal::display(), vpMbDepthDenseTracker::display(), vpMbDepthNormalTracker::display(), vpMbEdgeTracker::display(), vpWireFrameSimulator::display_scene(), vpMeLine::displayLine(), vpDisplay::displayLine(), vpFeatureDisplay::displayLine(), vpKeyPoint::displayMatching(), vpWireFrameSimulator::displayTrajectory(), vpWireFrameSimulator::getExternalImage(), vpTemplateTrackerZone::initClick(), vpMbDepthDenseTracker::segmentPointCloud(), and vpMbDepthNormalTracker::segmentPointCloud().
|
staticinherited |
Display a line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Line thickness. |
segment | If true (default) display the segment between the two image points. If false, display the line passing through the two image points. |
Definition at line 446 of file vpDisplay_uchar.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), vpImage< Type >::getHeight(), and vpImage< Type >::getWidth().
|
staticinherited |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, draw a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 537 of file vpDisplay_rgba.cpp.
References vpImagePoint::distance().
|
staticinherited |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : Vector of image points. |
closeTheShape | : If true, draw a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 511 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
segment | If true (default) display the segment between the two image points. If false, display the line passing through the two image points. |
Definition at line 427 of file vpDisplay_rgba.cpp.
References vpDisplay::displayLine(), vpImagePoint::get_i(), and vpImagePoint::get_j().
|
staticinherited |
Display a line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Line thickness. |
segment | If true (default) display the segment between the two image points. If false, display the line passing through the two image points. |
Definition at line 444 of file vpDisplay_rgba.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), vpImage< Type >::getHeight(), and vpImage< Type >::getWidth().
|
protectedinherited |
Display a line from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 697 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 567 of file vpDisplay_uchar.cpp.
Referenced by vpDot::display(), vpDot2::display(), vpWireFrameSimulator::displayTrajectory(), vpWireFrameSimulator::getExternalImage(), vpMeNurbs::seekExtremitiesCanny(), vpMeSite::track(), and vpMeSite::trackMultipleHypotheses().
|
staticinherited |
Display a point at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 580 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 567 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a point at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 580 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Display a point at the image point ip location.
ip | : Point location. |
color | : Point color. |
thickness | : Point thickness. |
Definition at line 679 of file vpDisplayWin32.cpp.
References vpDisplay::m_scale, vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Display a polygon defined by a vector of image points.
I | : The image associated to the display. |
vip | : Vector of image point that define the vertexes of the polygon. |
color | : Line color. |
thickness | : Line thickness. |
closed | : When true display a closed polygon with a segment between first and last image point. |
Definition at line 594 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a polygon defined by a set of image points.
I | : The image associated to the display. |
polygon | : Polygon to display. |
color | : Line color. |
thickness | : Line thickness. |
closed | : When true display a closed polygon with a segment between first and last image point. |
Definition at line 608 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a polygon defined by a vector of image points.
I | : The image associated to the display. |
vip | : Vector of image point that define the vertexes of the polygon. |
color | : Line color. |
thickness | : Line thickness. |
closed | : When true display a closed polygon with a segment between first and last image point. |
Definition at line 593 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a polygon defined by a set of image points.
I | : The image associated to the display. |
polygon | : Polygon to display. |
color | : Line color. |
thickness | : Line thickness. |
closed | : When true display a closed polygon with a segment between first and last image point. |
Definition at line 607 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
center | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 690 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
bottomRight | : Bottom-right corner of the rectangle. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 712 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 630 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::searchDotsInArea(), and vpMeNurbs::seekExtremitiesCanny().
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
rectangle | : Rectangle characteristics. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 671 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle with (i,j) as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
i,j | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 650 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
i,j | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 732 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
center | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 689 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
bottomRight | : Bottom-right corner of the rectangle. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 711 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 629 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
rectangle | : Rectangle characteristics. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 670 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle with (i,j) as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
i,j | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 649 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
i,j | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 730 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Display a rectangle.
topLeft | : Top-left corner of the rectangle. |
bottomRight | : Bottom-right corner of the rectangle. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 755 of file vpDisplayWin32.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
protectedinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
topLeft | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 735 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
protectedinherited |
Display a rectangle.
rectangle | : Rectangle characteristics. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 776 of file vpDisplayWin32.cpp.
References vpRect::getHeight(), vpRect::getLeft(), vpRect::getTop(), vpRect::getWidth(), vpImagePoint::set_i(), vpImagePoint::set_j(), vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Update the display with the content of the image that is in the region of interest.
I | : Image. |
roi | : Region of interest. |
Definition at line 836 of file vpDisplay_uchar.cpp.
Update the display with the content of the image that is in the region of interest.
I | : Image. |
roi | : Region of interest. |
Definition at line 834 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 750 of file vpDisplay_uchar.cpp.
Referenced by vpKltOpencv::display(), and vpMbGenericTracker::initFromPose().
|
staticinherited |
Display a string at the image point (i,j) location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 768 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 748 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a string at the image point (i,j) location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 766 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Displays a string.
ip | : its top left point's coordinates |
text | : The string to display |
color | : The text's color |
Definition at line 810 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 806 of file vpDisplay_uchar.cpp.
Referenced by vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpMbtDistanceCircle::displayMovingEdges(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbGenericTracker::initFromPose(), vpMeLine::initTracking(), vpMeNurbs::initTracking(), vpMeEllipse::initTracking(), vpDisplayFactory::impl::makeDisplayGridHelper(), vpDot2::searchDotsInArea(), vpMbDepthDenseTracker::segmentPointCloud(), vpMbDepthNormalTracker::segmentPointCloud(), vpMeLine::track(), and vpDot2::trackAndDisplay().
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 804 of file vpDisplay_rgba.cpp.
|
inherited |
flush the Win32 buffer It's necessary to use this function to see the results of any drawing
Definition at line 637 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
inherited |
flush the Win32 buffer It's necessary to use this function to see the results of any drawing
Definition at line 651 of file vpDisplayWin32.cpp.
References vpImagePoint::get_u(), vpImagePoint::get_v(), vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 817 of file vpDisplay_uchar.cpp.
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 815 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Wait for a click from one of the mouse button.
blocking | [in] : Blocking behavior.
|
Definition at line 299 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 855 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::defineDots(), vpDisplay::getClick(), vpPlot::getPixelValue(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbGenericTracker::initFromPose(), vpDot::initTracking(), vpMeLine::initTracking(), vpMeNurbs::initTracking(), vpMeEllipse::initTracking(), vpDot2::initTracking(), and vpWireFrameSimulator::navigation().
|
staticinherited |
Wait for a click from one of the mouse button and get the position of the clicked image point.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
blocking | [in] : Blocking behavior.
|
Definition at line 875 of file vpDisplay_uchar.cpp.
|
staticinherited |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 900 of file vpDisplay_uchar.cpp.
|
staticinherited |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 922 of file vpDisplay_uchar.cpp.
References vpDisplay::getClick().
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 853 of file vpDisplay_rgba.cpp.
|
staticinherited |
Wait for a click from one of the mouse button and get the position of the clicked image point.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
blocking | [in] : Blocking behavior.
|
Definition at line 873 of file vpDisplay_rgba.cpp.
|
staticinherited |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 898 of file vpDisplay_rgba.cpp.
|
staticinherited |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 920 of file vpDisplay_rgba.cpp.
References vpDisplay::getClick().
|
protectedinherited |
Wait for a click from one of the mouse button and get the position of the clicked image point.
ip | [out] : The coordinates of the clicked image point. |
blocking | [in] : true for a blocking behaviour waiting a mouse button click, false for a non blocking behaviour. |
Definition at line 337 of file vpDisplayWin32.cpp.
References vpDisplay::m_scale, vpImagePoint::set_u(), vpImagePoint::set_v(), vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
protectedinherited |
Wait for a mouse button click and get the position of the clicked pixel. The button used to click is also set.
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 383 of file vpDisplayWin32.cpp.
References vpDisplay::m_scale, vpImagePoint::set_u(), vpImagePoint::set_v(), vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 948 of file vpDisplay_uchar.cpp.
Referenced by vpDisplay::getClickUp(), and vpWireFrameSimulator::navigation().
|
staticinherited |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 970 of file vpDisplay_uchar.cpp.
References vpDisplay::getClickUp().
|
staticinherited |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 946 of file vpDisplay_rgba.cpp.
|
staticinherited |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 968 of file vpDisplay_rgba.cpp.
References vpDisplay::getClickUp().
|
protectedinherited |
Wait for a mouse button click release and get the position of the image point were the click release occurs. The button used to click is also set. Same method as getClick(unsigned int&, unsigned int&, vpMouseButton::vpMouseButtonType &, bool).
ip | [out] : Position of the clicked image point. |
button | [in] : Button used to click. |
blocking | [in] : true for a blocking behaviour waiting a mouse button click, false for a non blocking behaviour. |
Definition at line 432 of file vpDisplayWin32.cpp.
References vpDisplay::m_scale, vpImagePoint::set_u(), vpImagePoint::set_v(), vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
inlineinherited |
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image.
Definition at line 221 of file vpDisplay.h.
|
staticinherited |
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image. When display is not initialized, returns 1.
I | : Image associated to the display window. |
Definition at line 1352 of file vpDisplay_uchar.cpp.
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image. When display is not initialized, returns 1.
I | : Image associated to the display window. |
Definition at line 1343 of file vpDisplay_rgba.cpp.
|
inlineinherited |
Return the display height.
Definition at line 226 of file vpDisplay.h.
|
staticinherited |
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 140 of file vpDisplay.cpp.
References vpImageConvert::convert(), and vpImage< Type >::display.
Referenced by vpDisplay::getImage().
|
staticinherited |
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 218 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpDisplay::getImage().
Gets the displayed image (if overlay, if any).
I | : Image to fill. |
Implements vpDisplay.
Definition at line 884 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
protectedinherited |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
Definition at line 475 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Below you will find an example showing how to use this method.
Definition at line 1063 of file vpDisplay_uchar.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1253 of file vpDisplay_uchar.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1158 of file vpDisplay_uchar.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Below you will find an example showing how to use this method.
Definition at line 1060 of file vpDisplay_rgba.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1250 of file vpDisplay_rgba.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1155 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Definition at line 512 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1267 of file vpDisplay_uchar.cpp.
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1264 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Get the coordinates of the mouse pointer.
ip | [out] : The coordinates of the mouse pointer. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Definition at line 545 of file vpDisplayWin32.cpp.
References vpDisplay::m_scale, vpImagePoint::set_u(), vpImagePoint::set_v(), vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1281 of file vpDisplay_uchar.cpp.
Referenced by vpPlot::getPixelValue(), vpPlot::navigate(), and vpWireFrameSimulator::navigation().
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1278 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Get the coordinates of the mouse pointer.
ip | [out] : The coordinates of the mouse pointer. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Definition at line 575 of file vpDisplayWin32.cpp.
References vpDisplay::m_scale, vpImagePoint::set_u(), vpImagePoint::set_v(), vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
inherited |
Gets the screen vertical resolution.
Definition at line 914 of file vpDisplayWin32.cpp.
References vpDisplayWin32::getScreenSize().
|
inherited |
Gets screen resolution.
w,h | : Horizontal and vertical screen resolution. |
Definition at line 895 of file vpDisplayWin32.cpp.
Referenced by vpDisplayWin32::getScreenHeight(), vpDisplayOpenCV::getScreenSize(), and vpDisplayWin32::getScreenWidth().
|
inherited |
Gets the screen horizontal resolution.
Definition at line 904 of file vpDisplayWin32.cpp.
References vpDisplayWin32::getScreenSize().
|
inlineinherited |
Return the display width.
Definition at line 231 of file vpDisplay.h.
|
inlineinherited |
Return the position (along the horizontal axis) on the screen of the display window.
Definition at line 237 of file vpDisplay.h.
|
inlineinherited |
Return the position (along the vertical axis) on the screen of the display window.
Definition at line 242 of file vpDisplay.h.
|
inherited |
Initialize the display size, position and title.
width,height | : Width and height of the window. |
x,y | : The window is set at position x,y (column index, row index). |
title | : Window title. |
Definition at line 136 of file vpDisplayWin32.cpp.
References vpDisplayWin32::hThread, vpDisplayWin32::iStatus, vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, vpDisplay::m_scaleType, vpDisplay::m_title, vpDisplay::m_windowXPosition, vpDisplay::m_windowYPosition, vpDisplay::setScale(), vpDisplayWin32::threadId, and vpDisplayWin32::vpCreateWindow.
|
inherited |
Constructor. Initialize a display to visualize a gray level image (8 bits).
I | : Image to be displayed (not that image has to be initialized) |
x,y | : The window is set at position x,y (column index, row index). |
title | : Window title. |
Definition at line 90 of file vpDisplayWin32.cpp.
References vpImage< Type >::display, vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplay::m_scale, vpDisplay::m_scaleType, vpDisplayException::notInitializedError, vpDisplay::setScale(), and vpDisplayWin32::window.
Referenced by vpDisplayWin32::init(), vpDisplayGDI(), and vpDisplayWin32::vpDisplayWin32().
|
inherited |
Constructor. Initialize a display to visualize a RGBa level image (32 bits).
I | : Image to be displayed (not that image has to be initialized) |
x,y | : The window is set at position x,y (column index, row index). |
title | : Window title. |
Definition at line 113 of file vpDisplayWin32.cpp.
References vpImage< Type >::display, vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplayWin32::init(), vpDisplay::m_scale, vpDisplay::m_scaleType, vpDisplayException::notInitializedError, vpDisplay::setScale(), and vpDisplayWin32::window.
|
inlineinherited |
Check if the display has been initialised.
Definition at line 249 of file vpDisplay.h.
|
staticinherited |
Set the window background.
I | : Image associated to the display window. |
color | Background color. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1295 of file vpDisplay_uchar.cpp.
|
staticinherited |
Set the window background.
I | : Image associated to the display window. |
color | Background color. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1292 of file vpDisplay_rgba.cpp.
|
inlinevirtualinherited |
Set the down scale factor applied to the image in order to reduce the display size.
scale | : Scale factor applied to display a rescaled image. |
Reimplemented from vpDisplay.
Definition at line 148 of file vpDisplayWin32.h.
References vpDisplay::setScale().
|
inlinevirtualinherited |
Set the down scaling factor either in auto mode or set manually.
This method has to be called before display initialization.
Reimplemented from vpDisplay.
Definition at line 153 of file vpDisplayWin32.h.
|
inherited |
Set the font used to display text.
fontname | : Name of the font. |
Definition at line 627 of file vpDisplayWin32.cpp.
|
staticinherited |
Set the font of a text printed in the display overlay. To print a text you may use displayText().
I | : Image associated to the display window. |
fontname | : The expected font name. |
Definition at line 1313 of file vpDisplay_uchar.cpp.
Referenced by vpPlot::setFont().
|
staticinherited |
Set the font of a text printed in the display overlay. To print a text you may use displayText().
I | : Image associated to the display window. |
fontname | : The expected font name. |
Definition at line 1307 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Set the down scaling factor either in auto mode or set manually.
Definition at line 262 of file vpDisplay.cpp.
References vpDisplay::computeAutoScale(), vpDisplay::SCALE_1, vpDisplay::SCALE_10, vpDisplay::SCALE_2, vpDisplay::SCALE_3, vpDisplay::SCALE_4, vpDisplay::SCALE_5, vpDisplay::SCALE_6, vpDisplay::SCALE_7, vpDisplay::SCALE_8, vpDisplay::SCALE_9, vpDisplay::SCALE_AUTO, vpDisplay::SCALE_DEFAULT, and vpDisplay::setDownScalingFactor().
Referenced by vpDisplayGTK::init(), vpDisplayOpenCV::init(), vpDisplayWin32::init(), vpDisplayWin32::setDownScalingFactor(), vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), and vpDisplayOpenCV::vpDisplayOpenCV().
|
inherited |
Changes the window's titlebar text
windowtitle | : Window title. |
Definition at line 615 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
staticinherited |
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 1325 of file vpDisplay_uchar.cpp.
|
staticinherited |
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 1316 of file vpDisplay_rgba.cpp.
|
staticinherited |
Set the window position in the screen.
I | : Image associated to the display window. |
winx,winy | : Position of the upper-left window's border in the screen. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1340 of file vpDisplay_uchar.cpp.
|
staticinherited |
Set the window position in the screen.
I | : Image associated to the display window. |
winx,winy | : Position of the upper-left window's border in the screen. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1331 of file vpDisplay_rgba.cpp.
|
inherited |
Changes the window's position.
winx,winy | : Position of the upper-left window's border in the screen. |
Definition at line 600 of file vpDisplayWin32.cpp.
References vpDisplayWin32::waitForInit(), and vpDisplayWin32::window.
|
protectedinherited |
If the window is not initialized yet, wait a little (MAX_INIT_DELAY).
notInitializedError | : the window isn't initialized |
Definition at line 171 of file vpDisplayWin32.cpp.
References vpDisplayWin32::MAX_INIT_DELAY, vpDisplayException::notInitializedError, and vpDisplayWin32::window.
Referenced by vpDisplayWin32::clearDisplay(), vpDisplayWin32::closeDisplay(), vpDisplayWin32::displayArrow(), vpDisplayWin32::displayCircle(), vpDisplayWin32::displayCross(), vpDisplayWin32::displayDotLine(), vpDisplayWin32::displayImage(), vpDisplayWin32::displayImageROI(), vpDisplayWin32::displayLine(), vpDisplayWin32::displayPoint(), vpDisplayWin32::displayRectangle(), vpDisplayWin32::displayText(), vpDisplayWin32::flushDisplay(), vpDisplayWin32::flushDisplayROI(), vpDisplayWin32::getClick(), vpDisplayWin32::getClickUp(), vpDisplayWin32::getImage(), vpDisplayWin32::getKeyboardEvent(), vpDisplayWin32::getPointerMotionEvent(), vpDisplayWin32::getPointerPosition(), vpDisplayWin32::setTitle(), and vpDisplayWin32::setWindowPosition().
|
protectedinherited |
Handle of the window's thread.
Definition at line 100 of file vpDisplayWin32.h.
Referenced by vpDisplayWin32::closeDisplay(), and vpDisplayWin32::init().
|
protectedinherited |
Initialization status.
Definition at line 106 of file vpDisplayWin32.h.
Referenced by vpDisplayWin32::closeDisplay(), and vpDisplayWin32::init().
|
protectedinherited |
display has been initialized
Definition at line 924 of file vpDisplay.h.
Referenced by vpDisplayGTK::closeDisplay(), vpDisplayOpenCV::closeDisplay(), vpDisplayWin32::closeDisplay(), vpDisplayGTK::displayArrow(), vpDisplayOpenCV::displayArrow(), vpDisplayGTK::displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayGTK::displayCross(), vpDisplayOpenCV::displayCross(), vpDisplayGTK::displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayGTK::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayGTK::displayPoint(), vpDisplayOpenCV::displayPoint(), vpDisplayGTK::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayGTK::displayText(), vpDisplayOpenCV::displayText(), vpDisplayGTK::flushDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayGTK::flushDisplayROI(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayGTK::getClick(), vpDisplayOpenCV::getClick(), vpDisplayGTK::getClickUp(), vpDisplayOpenCV::getClickUp(), vpDisplayGTK::getImage(), vpDisplayGTK::getKeyboardEvent(), vpDisplayOpenCV::getKeyboardEvent(), vpDisplayGTK::getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplayGTK::getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplayGTK::getScreenSize(), vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayOpenCV::init(), vpDisplay::setDownScalingFactor(), vpDisplayGTK::setTitle(), vpDisplayGTK::setWindowPosition(), vpDisplayOpenCV::setWindowPosition(), and vpDisplay::~vpDisplay().
|
protectedinherited |
Definition at line 930 of file vpDisplay.h.
Referenced by vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::getImage(), vpDisplayOpenCV::init(), and vpDisplayGTK::init().
|
protectedinherited |
Definition at line 932 of file vpDisplay.h.
Referenced by vpDisplayGTK::displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayGTK::displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayGTK::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayGTK::displayPoint(), vpDisplayOpenCV::displayPoint(), vpDisplayWin32::displayPoint(), vpDisplayGTK::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayGTK::displayText(), vpDisplayOpenCV::displayText(), vpDisplayGTK::getClick(), vpDisplayOpenCV::getClick(), vpDisplayWin32::getClick(), vpDisplayGTK::getClickUp(), vpDisplayOpenCV::getClickUp(), vpDisplayWin32::getClickUp(), vpDisplayGTK::getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplayWin32::getPointerMotionEvent(), vpDisplayGTK::getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplayWin32::getPointerPosition(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayWin32::init(), and vpDisplay::setDownScalingFactor().
|
protectedinherited |
Definition at line 933 of file vpDisplay.h.
Referenced by vpDisplayGTK::init(), vpDisplayOpenCV::init(), vpDisplayWin32::init(), and vpDisplay::setDownScalingFactor().
|
protectedinherited |
Definition at line 931 of file vpDisplay.h.
Referenced by vpDisplayOpenCV::closeDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayOpenCV::init(), vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayGTK::setTitle(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), and vpDisplayOpenCV::vpDisplayOpenCV().
|
protectedinherited |
Definition at line 929 of file vpDisplay.h.
Referenced by vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::getImage(), vpDisplayOpenCV::init(), and vpDisplayGTK::init().
|
protectedinherited |
display position
Definition at line 926 of file vpDisplay.h.
Referenced by vpDisplayOpenCV::init(), vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), and vpDisplayOpenCV::vpDisplayOpenCV().
|
protectedinherited |
display position
Definition at line 928 of file vpDisplay.h.
Referenced by vpDisplayOpenCV::init(), vpDisplayWin32::init(), vpDisplayGTK::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), and vpDisplayOpenCV::vpDisplayOpenCV().
|
staticprotectedinherited |
Maximum delay for window initialization.
Definition at line 97 of file vpDisplayWin32.h.
Referenced by vpDisplayWin32::waitForInit().
|
protectedinherited |
Definition at line 112 of file vpDisplayWin32.h.
|
protectedinherited |
Id of the window's thread.
Definition at line 103 of file vpDisplayWin32.h.
Referenced by vpDisplayWin32::init().
|
protectedinherited |
The window.
Definition at line 109 of file vpDisplayWin32.h.
Referenced by vpDisplayWin32::clearDisplay(), vpDisplayWin32::closeDisplay(), vpDisplayWin32::displayArrow(), vpDisplayWin32::displayCircle(), vpDisplayWin32::displayCross(), vpDisplayWin32::displayDotLine(), vpDisplayWin32::displayImage(), vpDisplayWin32::displayImageROI(), vpDisplayWin32::displayLine(), vpDisplayWin32::displayPoint(), vpDisplayWin32::displayRectangle(), vpDisplayWin32::displayText(), vpDisplayWin32::flushDisplay(), vpDisplayWin32::flushDisplayROI(), vpDisplayWin32::getClick(), vpDisplayWin32::getClickUp(), vpDisplayWin32::getImage(), vpDisplayWin32::getKeyboardEvent(), vpDisplayWin32::getPointerMotionEvent(), vpDisplayWin32::getPointerPosition(), vpDisplayWin32::init(), vpDisplayWin32::setTitle(), vpDisplayWin32::setWindowPosition(), and vpDisplayWin32::waitForInit().