ViSP
2.9.0
|
#include <vpDisplayWin32.h>
Public Member Functions | |
vpDisplayWin32 (vpWin32Renderer *rend=NULL) | |
vpDisplayWin32 (vpImage< vpRGBa > &I, int winx=-1, int winy=-1, const char *title=NULL) | |
vpDisplayWin32 (vpImage< unsigned char > &I, int winx=-1, int winy=-1, const char *title=NULL) | |
virtual | ~vpDisplayWin32 () |
void | setTitle (const char *windowtitle) |
void | setFont (const char *fontname) |
void | setWindowPosition (int winx, int winy) |
void | clearDisplay (const vpColor &color=vpColor::white) |
void | closeDisplay () |
void | displayImage (const vpImage< vpRGBa > &I) |
void | displayImage (const vpImage< unsigned char > &I) |
void | displayImageROI (const vpImage< unsigned char > &I, const vpImagePoint &iP, const unsigned int width, const unsigned int height) |
void | displayImageROI (const vpImage< vpRGBa > &I, const vpImagePoint &iP, const unsigned int width, const unsigned int height) |
void | flushDisplay () |
void | flushDisplayROI (const vpImagePoint &iP, const unsigned int width, const unsigned int height) |
void | init (vpImage< unsigned char > &I, int winx=-1, int winy=-1, const char *title=NULL) |
void | init (vpImage< vpRGBa > &I, int winx=-1, int winy=-1, const char *title=NULL) |
void | init (unsigned int width, unsigned int height, int winx=-1, int winy=-1, const char *title=NULL) |
void | getImage (vpImage< vpRGBa > &I) |
unsigned int | getHeight () const |
unsigned int | getWidth () const |
bool | isInitialised () |
Static Public Member Functions | |
Display functionalities on gray level images. | |
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 | displayCharString (const vpImage< unsigned char > &I, const vpImagePoint &ip, const char *string, const vpColor &color) |
static void | displayCharString (const vpImage< unsigned char > &I, int i, int j, const char *string, const vpColor &color) |
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 | displayLine (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< unsigned char > &I, const vpImagePoint &ip, const vpColor &color) |
static void | displayPoint (const vpImage< unsigned char > &I, int i, int j, const vpColor &color) |
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 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 | getClickUp (const vpImage< unsigned char > &I, vpImagePoint &ip, 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, char *string, bool blocking=true) |
static bool | getPointerMotionEvent (const vpImage< unsigned char > &I, vpImagePoint &ip) |
static bool | getPointerPosition (const vpImage< unsigned char > &I, vpImagePoint &ip) |
static void | setFont (const vpImage< unsigned char > &I, const char *font) |
static void | setTitle (const vpImage< unsigned char > &I, const char *windowtitle) |
static void | setWindowPosition (const vpImage< unsigned char > &I, int winx, int winy) |
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 | displayFrame (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness=1) |
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 | getImage (const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id) |
static void | setBackground (const vpImage< unsigned char > &I, const vpColor &color) |
Display functionalities on color images. | |
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 | displayCharString (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const char *string, const vpColor &color) |
static void | displayCharString (const vpImage< vpRGBa > &I, int i, int j, const char *string, const vpColor &color) |
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 | displayLine (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const vpColor &color) |
static void | displayPoint (const vpImage< vpRGBa > &I, int i, int j, const vpColor &color) |
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 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 | getClickUp (const vpImage< vpRGBa > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, char *string, bool blocking=true) |
static bool | getPointerMotionEvent (const vpImage< vpRGBa > &I, vpImagePoint &ip) |
static bool | getPointerPosition (const vpImage< vpRGBa > &I, vpImagePoint &ip) |
static void | setFont (const vpImage< vpRGBa > &I, const char *font) |
static void | setTitle (const vpImage< vpRGBa > &I, const char *windowtitle) |
static void | setWindowPosition (const vpImage< vpRGBa > &I, int winx, int winy) |
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 | displayFrame (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness=1) |
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 | getImage (const vpImage< vpRGBa > &Is, vpImage< vpRGBa > &Id) |
static void | setBackground (const vpImage< vpRGBa > &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) |
void | displayCharString (const vpImagePoint &ip, const char *text, const vpColor &color=vpColor::green) |
void | displayCircle (const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1) |
void | displayCross (const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1) |
void | displayDotLine (const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
void | displayLine (const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
void | displayPoint (const vpImagePoint &ip, const vpColor &color) |
void | displayRectangle (const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
void | displayRectangle (const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
void | displayRectangle (const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
bool | getClick (bool blocking=true) |
bool | getClick (vpImagePoint &ip, bool blocking=true) |
bool | getClick (vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
bool | getClickUp (vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
bool | getKeyboardEvent (bool blocking=true) |
bool | getKeyboardEvent (char *string, bool blocking) |
bool | getPointerMotionEvent (vpImagePoint &ip) |
bool | getPointerPosition (vpImagePoint &ip) |
void | waitForInit () |
Protected Attributes | |
HANDLE | hThread |
DWORD | threadId |
bool | iStatus |
vpWin32Window | window |
RECT | roi |
bool | displayHasBeenInitialized |
int | windowXPosition |
int | windowYPosition |
unsigned int | width |
unsigned int | height |
std::string | title_ |
Static Protected Attributes | |
static const int | MAX_INIT_DELAY = 5000 |
Friends | |
void | vpCreateWindow (threadParam *param) |
Base abstract class for Windows 32 displays. Implements the window creation in a separate thread and the associated event handling functions for Windows 32 displays. Uses calls to a renderer to do some display. (i.e. all display methods are implemented in the renderer)
Definition at line 97 of file vpDisplayWin32.h.
vpDisplayWin32::vpDisplayWin32 | ( | vpWin32Renderer * | rend = NULL | ) |
Constructor.
Definition at line 69 of file vpDisplayWin32.cpp.
vpDisplayWin32::vpDisplayWin32 | ( | vpImage< vpRGBa > & | I, |
int | winx = -1 , |
||
int | winy = -1 , |
||
const char * | title = NULL |
||
) |
vpDisplayWin32::vpDisplayWin32 | ( | vpImage< unsigned char > & | I, |
int | winx = -1 , |
||
int | winy = -1 , |
||
const char * | title = NULL |
||
) |
|
virtual |
|
virtual |
Clears the display.
color | : the color to fill the display with |
Implements vpDisplay.
Definition at line 925 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
staticinherited |
Close the display attached to I.
Definition at line 2031 of file vpDisplay.cpp.
References vpDisplay::closeDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
Close the display attached to I.
Definition at line 2372 of file vpDisplay.cpp.
References vpDisplay::closeDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
|
virtual |
Closes the display. Destroys the window.
Implements vpDisplay.
Definition at line 936 of file vpDisplayWin32.cpp.
References vpDisplay::displayHasBeenInitialized, hThread, iStatus, waitForInit(), and window.
Referenced by ~vpDisplayWin32().
|
staticinherited |
Display the gray level image I (8bits).
I | : Image to display. |
Definition at line 206 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayImage(), and vpERROR_TRACE.
Referenced by vpDot2::defineDots(), vpWireFrameSimulator::getExternalImage(), vpWireFrameSimulator::getInternalImage(), vpPlot::init(), vpMbTracker::initClick(), vpSimulatorAfma6::setPosition(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
Display the color image I in RGBa format (32bits).
I | : Image to display. |
Definition at line 2169 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayImage(), and vpERROR_TRACE.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 908 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
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 600 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayArrow(), and vpERROR_TRACE.
|
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 661 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayArrow(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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 630 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayArrow(), and vpERROR_TRACE.
|
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 699 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayArrow(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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 509 of file vpDisplay.cpp.
References vpMeterPixelConversion::convertPoint(), vpDisplay::displayLine(), and vpPoint::setWorldCoordinates().
Referenced by vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
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 561 of file vpDisplay.cpp.
References vpMeterPixelConversion::convertPoint(), vpDisplay::displayLine(), and vpPoint::setWorldCoordinates().
|
protectedvirtual |
Displays a string.
ip | : its top left point's coordinates |
text | : The string to display |
color | : The text's color |
Implements vpDisplay.
Definition at line 874 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
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. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 740 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCharString(), and vpERROR_TRACE.
|
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. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 806 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCharString(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 773 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCharString(), and vpERROR_TRACE.
|
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. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 843 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCharString(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 857 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
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 rectangle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 875 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCircle(), and vpERROR_TRACE.
|
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 rectangle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 937 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCircle(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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 rectangle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 905 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCircle(), and vpERROR_TRACE.
|
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 rectangle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 975 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCircle(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 890 of file vpDisplayWin32.cpp.
References waitForInit(), and 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 1006 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCross(), and vpERROR_TRACE.
|
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 1059 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCross(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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 1033 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCross(), and vpERROR_TRACE.
|
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 1090 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCross(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 763 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
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 1119 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayDotLine(), and vpERROR_TRACE.
|
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 1174 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayDotLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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 1146 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayDotLine(), and vpERROR_TRACE.
|
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 1206 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayDotLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
staticinherited |
Display the projection of an object frame represented by 3 arrows 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 frame. |
color | : Color used to display the frame in the image. |
thickness | : the thickness of the line |
Definition at line 371 of file vpDisplay.cpp.
References vpColor::blue, vpMeterPixelConversion::convertPoint(), vpDisplay::displayArrow(), vpColor::green, vpColor::none, vpTracker::p, vpColor::red, vpPoint::setWorldCoordinates(), and vpForwardProjection::track().
Referenced by vpPose::display(), vpMbTracker::initClick(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
staticinherited |
Display the projection of an object frame represented by 3 arrows 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 frame. |
color | : Color used to display the frame in the image. |
thickness | : the thickness of the line |
Definition at line 441 of file vpDisplay.cpp.
References vpColor::blue, vpMeterPixelConversion::convertPoint(), vpDisplay::displayArrow(), vpColor::green, vpColor::none, vpTracker::p, vpColor::red, vpPoint::setWorldCoordinates(), and vpForwardProjection::track().
Display the color image I in RGBa format (32bits).
I | : Image to display. |
Implements vpDisplay.
Definition at line 211 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
virtual |
Display the gray level image I (8bits).
I | : Image to display. |
Implements vpDisplay.
Definition at line 263 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
virtual |
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 |
Implements vpDisplay.
Definition at line 291 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
virtual |
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 |
Implements vpDisplay.
Definition at line 240 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
protectedvirtual |
Display a line from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
Implements vpDisplay.
Definition at line 743 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
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. |
Definition at line 1238 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), and vpERROR_TRACE.
|
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. |
Definition at line 1268 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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. |
Definition at line 1336 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), and vpERROR_TRACE.
|
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. |
Definition at line 1303 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedvirtual |
Display a point at the image point ip location.
ip | : Point location. |
color | : Point color. |
Implements vpDisplay.
Definition at line 729 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
staticinherited |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
Definition at line 1363 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayPoint(), and vpERROR_TRACE.
|
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. |
Definition at line 1410 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayPoint(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
staticinherited |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
Definition at line 1386 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayPoint(), and vpERROR_TRACE.
|
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. |
Definition at line 1438 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayPoint(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 786 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 809 of file vpDisplayWin32.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplay::height, waitForInit(), vpDisplay::width, and window.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 832 of file vpDisplayWin32.cpp.
References vpRect::getHeight(), vpRect::getLeft(), vpRect::getTop(), vpRect::getWidth(), vpImagePoint::set_i(), vpImagePoint::set_j(), waitForInit(), and window.
|
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. |
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 1474 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayRectangle(), and vpERROR_TRACE.
|
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. |
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 1511 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayRectangle(), and vpERROR_TRACE.
|
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. |
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 1546 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayRectangle(), and vpERROR_TRACE.
|
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 1582 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
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 1800 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayRectangle(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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 1840 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
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. |
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 1637 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayRectangle(), and vpERROR_TRACE.
|
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. |
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 1672 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayRectangle(), and vpERROR_TRACE.
|
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. |
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 1707 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayRectangle(), and vpERROR_TRACE.
|
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 1743 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
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 1892 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayRectangle(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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 1931 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
staticinherited |
Definition at line 225 of file vpDisplay.cpp.
References vpException::dimensionError, vpImage< Type >::display, vpDisplay::displayImageROI(), vpImage< Type >::getHeight(), vpRect::getHeight(), vpRect::getLeft(), vpRect::getTop(), vpImage< Type >::getWidth(), vpRect::getWidth(), and vpERROR_TRACE.
Definition at line 2187 of file vpDisplay.cpp.
References vpException::dimensionError, vpImage< Type >::display, vpDisplay::displayImageROI(), vpImage< Type >::getHeight(), vpRect::getHeight(), vpRect::getLeft(), vpRect::getTop(), vpImage< Type >::getWidth(), vpRect::getWidth(), and vpERROR_TRACE.
|
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 1994 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::flushDisplay(), and vpERROR_TRACE.
Referenced by vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbTracker::initClick(), vpTemplateTrackerZone::initFromPoints(), vpMeEllipse::initTracking(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpDot2::searchDotsInArea(), vpSimulatorAfma6::setPosition(), vpMeEllipse::track(), vpMeLine::track(), vpDot2::trackAndDisplay(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
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 2335 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::flushDisplay(), and vpERROR_TRACE.
|
virtual |
flush the Win32 buffer It's necessary to use this function to see the results of any drawing
Implements vpDisplay.
Definition at line 670 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
virtual |
flush the Win32 buffer It's necessary to use this function to see the results of any drawing
Implements vpDisplay.
Definition at line 684 of file vpDisplayWin32.cpp.
References vpImagePoint::get_u(), vpImagePoint::get_v(), waitForInit(), and window.
Definition at line 2011 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::flushDisplayROI(), vpRect::getHeight(), vpRect::getTopLeft(), vpRect::getWidth(), and vpERROR_TRACE.
Definition at line 2352 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::flushDisplayROI(), vpRect::getHeight(), vpRect::getTopLeft(), vpRect::getWidth(), and vpERROR_TRACE.
|
protectedvirtual |
Wait for a click from one of the mouse button.
blocking | [in] : Blocking behavior.
|
Implements vpDisplay.
Definition at line 318 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 357 of file vpDisplayWin32.cpp.
References vpImagePoint::set_u(), vpImagePoint::set_v(), waitForInit(), and window.
|
protectedvirtual |
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] :
|
Implements vpDisplay.
Definition at line 404 of file vpDisplayWin32.cpp.
References vpImagePoint::set_u(), vpImagePoint::set_v(), waitForInit(), and window.
|
staticinherited |
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 2407 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
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 2444 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
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 2483 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
Wait for a click.
I | [in] : The displayed image. |
blocking | [in] :
|
Definition at line 2825 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
staticinherited |
Return true when a mouse button is pressed.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
blocking | [in] :
|
Definition at line 2861 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
staticinherited |
Return true when a mouse button is pressed.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 2899 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
protectedvirtual |
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. |
Implements vpDisplay.
Definition at line 456 of file vpDisplayWin32.cpp.
References vpImagePoint::set_u(), vpImagePoint::set_v(), waitForInit(), and 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 2525 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
staticinherited |
Return true when a mouse button is released.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 2940 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
inlineinherited |
Gets the displayed image (if overlay, if any).
I | : Image to fill. |
Implements vpDisplay.
Definition at line 957 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
staticinherited |
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 324 of file vpDisplay.cpp.
References vpImageConvert::convert(), vpImage< Type >::display, and vpERROR_TRACE.
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 2286 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::getImage(), and vpERROR_TRACE.
|
protectedvirtual |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
Implements vpDisplay.
Definition at line 501 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
protectedvirtual |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
string | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Implements vpDisplay.
Definition at line 538 of file vpDisplayWin32.cpp.
References waitForInit(), and 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 2630 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
string | [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 2737 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
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 3045 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
string | [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 3150 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
protectedvirtual |
Get the coordinates of the mouse pointer.
ip | [out] : The coordinates of the mouse pointer. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Implements vpDisplay.
Definition at line 570 of file vpDisplayWin32.cpp.
References vpImagePoint::set_u(), vpImagePoint::set_v(), waitForInit(), and 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 2765 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 3178 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
protectedvirtual |
Get the coordinates of the mouse pointer.
ip | [out] : The coordinates of the mouse pointer. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Implements vpDisplay.
Definition at line 605 of file vpDisplayWin32.cpp.
References vpImagePoint::set_u(), vpImagePoint::set_v(), waitForInit(), and 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 2794 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 3205 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
inlineinherited |
|
virtual |
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. |
Implements vpDisplay.
Definition at line 94 of file vpDisplayWin32.cpp.
References vpImage< Type >::display, vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplayException::notInitializedError, vpERROR_TRACE, and window.
Referenced by init(), and vpDisplayGDI::vpDisplayGDI().
|
virtual |
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. |
Implements vpDisplay.
Definition at line 121 of file vpDisplayWin32.cpp.
References vpImage< Type >::display, vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), init(), vpDisplayException::notInitializedError, vpERROR_TRACE, and window.
|
virtual |
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. |
Implements vpDisplay.
Definition at line 148 of file vpDisplayWin32.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplay::height, hThread, iStatus, threadId, vpDisplay::title_, vpCreateWindow, vpDisplay::width, vpDisplay::windowXPosition, and vpDisplay::windowYPosition.
|
inlineinherited |
Check if the display has been initialised
Definition at line 564 of file vpDisplay.h.
Referenced by vpPlot::setFont().
|
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 178 of file vpDisplay.cpp.
References vpDisplay::clearDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
|
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 2141 of file vpDisplay.cpp.
References vpDisplay::clearDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
|
virtual |
Set the font used to display text.
fontname | : Name of the font. |
Implements vpDisplay.
Definition at line 659 of file vpDisplayWin32.cpp.
References vpERROR_TRACE.
|
staticinherited |
Set the font of a text printed in the display overlay. To print a text you may use displayCharString().
I | : Image associated to the display window. |
fontname | : The expected font name. |
Definition at line 99 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setFont(), and vpERROR_TRACE.
Set the font of a text printed in the display overlay. To print a text you may use displayCharString().
I | : Image associated to the display window. |
fontname | : The expected font name. |
Definition at line 2114 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setFont(), and vpERROR_TRACE.
|
virtual |
Changes the window's titlebar text
windowtitle | : Window title. |
Implements vpDisplay.
Definition at line 646 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
staticinherited |
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 122 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setTitle(), and vpERROR_TRACE.
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 2056 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setTitle(), and vpERROR_TRACE.
|
virtual |
Changes the window's position.
winx,winy | : Position of the upper-left window's border in the screen. |
Implements vpDisplay.
Definition at line 629 of file vpDisplayWin32.cpp.
References waitForInit(), and window.
|
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 150 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setWindowPosition(), and vpERROR_TRACE.
|
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 2083 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setWindowPosition(), and vpERROR_TRACE.
|
protected |
If the window is not initialized yet, wait a little (MAX_INIT_DELAY).
notInitializedError | : the window isn't initialized |
Definition at line 186 of file vpDisplayWin32.cpp.
References MAX_INIT_DELAY, vpDisplayException::notInitializedError, and window.
Referenced by clearDisplay(), closeDisplay(), displayArrow(), displayCharString(), displayCircle(), displayCross(), displayDotLine(), displayImage(), displayImageROI(), displayLine(), displayPoint(), displayRectangle(), flushDisplay(), flushDisplayROI(), getClick(), getClickUp(), getImage(), getKeyboardEvent(), getPointerMotionEvent(), getPointerPosition(), setTitle(), and setWindowPosition().
|
friend |
Function used to launch the window in a thread.
Thread entry point. Used as a detour to initWindow.
Definition at line 58 of file vpDisplayWin32.cpp.
Referenced by init().
|
protectedinherited |
display has been initialized
Definition at line 180 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), closeDisplay(), vpDisplayOpenCV::closeDisplay(), vpDisplayX::closeDisplay(), vpDisplayGTK::closeDisplay(), vpDisplayOpenCV::displayArrow(), vpDisplayX::displayArrow(), vpDisplayGTK::displayArrow(), vpDisplayOpenCV::displayCharString(), vpDisplayX::displayCharString(), vpDisplayGTK::displayCharString(), vpDisplayOpenCV::displayCircle(), vpDisplayX::displayCircle(), vpDisplayGTK::displayCircle(), vpDisplayOpenCV::displayCross(), vpDisplayX::displayCross(), vpDisplayGTK::displayCross(), vpDisplayOpenCV::displayDotLine(), vpDisplayX::displayDotLine(), vpDisplayGTK::displayDotLine(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayGTK::displayImageROI(), vpDisplayOpenCV::displayLine(), vpDisplayX::displayLine(), vpDisplayGTK::displayLine(), vpDisplayOpenCV::displayPoint(), vpDisplayX::displayPoint(), vpDisplayGTK::displayPoint(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayOpenCV::flushDisplay(), vpDisplayX::flushDisplay(), vpDisplayGTK::flushDisplay(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayX::flushDisplayROI(), vpDisplayGTK::flushDisplayROI(), vpDisplayOpenCV::getClick(), vpDisplayX::getClick(), vpDisplayGTK::getClick(), vpDisplayOpenCV::getClickUp(), vpDisplayX::getClickUp(), vpDisplayGTK::getClickUp(), vpDisplayX::getImage(), vpDisplayGTK::getImage(), vpDisplayX::getKeyboardEvent(), vpDisplayOpenCV::getKeyboardEvent(), vpDisplayGTK::getKeyboardEvent(), vpDisplayX::getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplayGTK::getPointerMotionEvent(), vpDisplayX::getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplayGTK::getPointerPosition(), init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayX::setFont(), vpDisplayX::setTitle(), vpDisplayGTK::setTitle(), vpDisplayOpenCV::setWindowPosition(), vpDisplayX::setWindowPosition(), vpDisplayGTK::setWindowPosition(), vpDisplay::vpDisplay(), and vpDisplay::~vpDisplay().
|
protectedinherited |
Definition at line 186 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayGTK::displayImageROI(), displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayOpenCV::getHeight(), vpDisplayX::getHeight(), vpDisplayGTK::getHeight(), vpDisplayGTK::getImage(), init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), and vpDisplay::vpDisplay().
|
protected |
Handle of the window's thread.
Definition at line 104 of file vpDisplayWin32.h.
Referenced by closeDisplay(), and init().
|
protected |
Initialization status.
Definition at line 110 of file vpDisplayWin32.h.
Referenced by closeDisplay(), and init().
|
staticprotected |
Maximum delay for window initialization.
Definition at line 101 of file vpDisplayWin32.h.
Referenced by waitForInit().
|
protected |
Definition at line 116 of file vpDisplayWin32.h.
|
protected |
|
protectedinherited |
Definition at line 187 of file vpDisplay.h.
Referenced by vpDisplayOpenCV::closeDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayOpenCV::flushDisplayROI(), init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayX::setTitle(), vpDisplayGTK::setTitle(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
protectedinherited |
Definition at line 185 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayGTK::displayImageROI(), displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayGTK::getImage(), vpDisplayOpenCV::getWidth(), vpDisplayX::getWidth(), vpDisplayGTK::getWidth(), init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), and vpDisplay::vpDisplay().
|
protected |
The window.
Definition at line 113 of file vpDisplayWin32.h.
Referenced by clearDisplay(), closeDisplay(), displayArrow(), displayCharString(), displayCircle(), displayCross(), displayDotLine(), displayImage(), displayImageROI(), displayLine(), displayPoint(), displayRectangle(), flushDisplay(), flushDisplayROI(), getClick(), getClickUp(), getImage(), getKeyboardEvent(), getPointerMotionEvent(), getPointerPosition(), init(), setTitle(), setWindowPosition(), and waitForInit().
|
protectedinherited |
display position
Definition at line 182 of file vpDisplay.h.
Referenced by init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplay::vpDisplay(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
protectedinherited |
display position
Definition at line 184 of file vpDisplay.h.
Referenced by init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplay::vpDisplay(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().