ViSP
2.10.0
|
#include <vpDisplayX.h>
Public Member Functions | |
vpDisplayX () | |
vpDisplayX (int winx, int winy, const char *title=NULL) | |
vpDisplayX (vpImage< unsigned char > &I, int winx=-1, int winy=-1, const char *title=NULL) | |
vpDisplayX (vpImage< vpRGBa > &I, int winx=-1, int winy=-1, const char *title=NULL) | |
virtual | ~vpDisplayX () |
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) |
unsigned int | getScreenDepth () |
void | getScreenSize (unsigned int &width, unsigned int &height) |
void | getImage (vpImage< vpRGBa > &I) |
int | getWindowXPosition () const |
int | getWindowYPosition () 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, 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 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, 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 | displayEllipse (const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_centered_moments, const vpColor &color, unsigned int thickness=1) |
static void | displayEllipse (const vpImage< unsigned char > &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) |
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) |
static void | displayPolygon (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1) |
static void | displayROI (const vpImage< unsigned char > &I, const vpRect &roi) |
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 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, 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 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, 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 | 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) |
static void | displayEllipse (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, const double &angle1, const double &angle2, bool use_centered_moments, const vpColor &color, unsigned int thickness=1) |
static void | displayFrame (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1) |
static void | displayPolygon (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1) |
static void | displayROI (const vpImage< vpRGBa > &I, const vpRect &roi) |
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 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 | setFont (const char *font) |
void | setTitle (const char *title) |
void | setWindowPosition (int winx, int winy) |
void | clearDisplay (const vpColor &color=vpColor::white) |
void | closeDisplay () |
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 | displayImage (const vpImage< vpRGBa > &I) |
void | displayImage (const vpImage< unsigned char > &I) |
void | displayImage (const 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 | 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) |
void | flushDisplay () |
void | flushDisplayROI (const vpImagePoint &iP, const unsigned int width, const unsigned int height) |
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=true) |
int | getMsb (unsigned int u32val) |
bool | getPointerMotionEvent (vpImagePoint &ip) |
bool | getPointerPosition (vpImagePoint &ip) |
unsigned int | getWidth () const |
unsigned int | getHeight () const |
Protected Attributes | |
bool | displayHasBeenInitialized |
int | windowXPosition |
int | windowYPosition |
unsigned int | width |
unsigned int | height |
std::string | title_ |
Define the X11 console to display images.
This class define the X11 console to display images It also define method to display some geometric feature (point, line, circle) in the image.
The example below shows how to display an image with this video device.
Definition at line 152 of file vpDisplayX.h.
vpDisplayX::vpDisplayX | ( | ) |
Basic constructor.
To initialize the window position, title and size you may call init(vpImage<unsigned char> &, int, int, const char *) or init(vpImage<vpRGBa> &, int, int, const char *).
Definition at line 169 of file vpDisplayX.cpp.
vpDisplayX::vpDisplayX | ( | int | x, |
int | y, | ||
const char * | title = NULL |
||
) |
Constructor that just initialize the display position in the screen and the display title.
x,y | : The window is set at position x,y (column index, row index). |
title | : Window title. |
To initialize the display size, you need to call init().
Definition at line 135 of file vpDisplayX.cpp.
References vpDisplay::title_, vpDisplay::windowXPosition, and vpDisplay::windowYPosition.
vpDisplayX::vpDisplayX | ( | vpImage< unsigned char > & | I, |
int | x = -1 , |
||
int | y = -1 , |
||
const char * | title = NULL |
||
) |
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 79 of file vpDisplayX.cpp.
References init().
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 101 of file vpDisplayX.cpp.
References init().
|
virtual |
|
protectedvirtual |
Set the window backgroud to color.
color | : Background color. |
Implements vpDisplay.
Definition at line 2281 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpDisplay::height, vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, vpERROR_TRACE, and vpDisplay::width.
|
staticinherited |
Close the display attached to I.
Definition at line 2269 of file vpDisplay.cpp.
References vpDisplay::closeDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
Close the display attached to I.
Definition at line 2612 of file vpDisplay.cpp.
References vpDisplay::closeDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
|
protectedvirtual |
Close the window.
Implements vpDisplay.
Definition at line 2206 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized.
Referenced by ~vpDisplayX().
|
staticinherited |
Display the gray level image I (8bits).
I | : Image to display. |
Definition at line 210 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 2409 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 2318 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, displayLine(), vpImagePoint::distance(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplayException::notInitializedError, vpImagePoint::set_i(), vpImagePoint::set_j(), vpMath::sqr(), 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 604 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 665 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 634 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 703 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 513 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 565 of file vpDisplay.cpp.
References vpMeterPixelConversion::convertPoint(), vpDisplay::displayLine(), and vpPoint::setWorldCoordinates().
|
protectedvirtual |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
ip | : Upper left image point location of the string in the display. |
text | : String to display in overlay. |
color | : String color. |
Implements vpDisplay.
Definition at line 2387 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImagePoint::get_u(), vpImagePoint::get_v(), vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, and vpERROR_TRACE.
|
staticinherited |
Display a string at the image point ip location. Use rather displayText() that does the same.
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 745 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCharString(), and vpERROR_TRACE.
|
staticinherited |
Display a string at the image point (i,j) location. Use rather displayText() that does the same.
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 813 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. Use rather displayText() that does the same.
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 779 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCharString(), and vpERROR_TRACE.
|
staticinherited |
Display a string at the image point (i,j) location. Use rather displayText() that does the same.
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 851 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 2424 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImagePoint::get_u(), vpImagePoint::get_v(), vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, vpMath::round(), 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 1022 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 1084 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 1052 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 1122 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. |
cross_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 2477 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, displayLine(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplayException::notInitializedError, 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 1153 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 1206 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 1180 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 1237 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 2524 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImagePoint::get_u(), vpImagePoint::get_v(), vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, vpMath::round(), 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 1266 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 1321 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 1293 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 1353 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayDotLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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_centered_moments these parameters are:
|
use_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Drawings color. |
thickness | : Drawings thickness. |
All the points on the ellipse are drawn thanks to its parametric representation:
with .
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 3608 of file vpDisplay.cpp.
References vpMath::rad().
Referenced by vpMbtDistanceCircle::display(), and 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_centered_moments these parameters are:
|
theta1,theta2 | : Angles in radians used to select a portion of the ellipse. If theta1=0 and theta2=vpMath::rad(360) all the ellipse is displayed. |
use_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Drawings color. |
thickness | : Drawings thickness. |
All the points on the ellipse are drawn thanks to its parametric representation:
with .
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 3866 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpMath::sqr().
|
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_centered_moments these parameters are:
|
use_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Drawings color. |
thickness | : Drawings thickness. |
All the points on the ellipse are drawn thanks to its parametric representation:
with .
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 3807 of file vpDisplay.cpp.
References vpDisplay::displayEllipse(), and vpMath::rad().
|
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_centered_moments these parameters are:
|
theta1,theta2 | : Angles in radians used to select a portion of the ellipse. If theta1=0 and theta2=vpMath::rad(360) all the ellipse is displayed. |
use_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Drawings color. |
thickness | : Drawings thickness. |
All the points on the ellipse are drawn thanks to its parametric representation:
with .
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 3667 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpMath::sqr().
|
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 375 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 445 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 1783 of file vpDisplayX.cpp.
References vpRGBa::B, vpImage< Type >::bitmap, vpDisplayException::depthNotSupportedError, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplay::height, vpDisplayException::notInitializedError, vpRGBa::R, vpERROR_TRACE, and vpDisplay::width.
|
protectedvirtual |
Display the gray level image I (8bits).
I | : Image to display. |
Implements vpDisplay.
Definition at line 1677 of file vpDisplayX.cpp.
References vpImage< Type >::bitmap, vpDisplay::displayHasBeenInitialized, vpDisplay::height, vpColor::id_unknown, vpDisplayException::notInitializedError, vpERROR_TRACE, and vpDisplay::width.
|
protected |
Display an image with a reference to the bitmap.
I | : Pointer to the image bitmap. |
Definition at line 1880 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplay::height, vpDisplayException::notInitializedError, vpERROR_TRACE, and vpDisplay::width.
|
protectedvirtual |
Display a selection of the gray level image I (8bits).
I | : Image to display. |
iP | : Top left corner of the region of interest |
w,h | : Width and height of the region of interest |
Implements vpDisplay.
Definition at line 1928 of file vpDisplayX.cpp.
References vpImage< Type >::bitmap, vpDisplay::displayHasBeenInitialized, vpImagePoint::get_i(), vpImagePoint::get_j(), vpImagePoint::get_u(), vpImagePoint::get_v(), vpImage< Type >::getWidth(), vpColor::id_unknown, vpDisplayException::notInitializedError, vpERROR_TRACE, and vpDisplay::width.
|
protectedvirtual |
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 |
w,h | : Width and height of the region of interest |
Implements vpDisplay.
Definition at line 2090 of file vpDisplayX.cpp.
References vpImage< Type >::bitmap, vpDisplayException::depthNotSupportedError, vpDisplay::displayHasBeenInitialized, vpImagePoint::get_i(), vpImagePoint::get_j(), vpImagePoint::get_u(), vpImagePoint::get_v(), vpImage< Type >::getWidth(), vpDisplay::height, vpDisplayException::notInitializedError, vpERROR_TRACE, and vpDisplay::width.
|
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 2568 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImagePoint::get_u(), vpImagePoint::get_v(), vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, vpMath::round(), and vpERROR_TRACE.
Referenced by displayArrow(), and displayCross().
|
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 1385 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 1415 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 1483 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 1450 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 2610 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImagePoint::get_u(), vpImagePoint::get_v(), vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, vpMath::round(), 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. |
thickness | : Thickness of the point |
Definition at line 1511 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayPoint(), vpDisplay::displayRectangle(), vpRect::moveCenter(), 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. |
thickness | : Thickness of the point |
Definition at line 1574 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayPoint(), vpDisplay::displayRectangle(), vpRect::moveCenter(), 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. |
thickness | : Thickness of the point |
Definition at line 1542 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayPoint(), vpDisplay::displayRectangle(), vpRect::moveCenter(), 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. |
thickness | : Thickness of the point |
Definition at line 1611 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayPoint(), vpDisplay::displayRectangle(), vpRect::moveCenter(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
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. |
Definition at line 1648 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
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. |
Definition at line 1677 of file vpDisplay.cpp.
References vpImage< Type >::display, 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. |
w,h | : Rectangle size in terms of width and height. |
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. |
Implements vpDisplay.
Definition at line 2652 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImagePoint::get_u(), vpImagePoint::get_v(), vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, vpMath::round(), and vpERROR_TRACE.
|
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. This parameter is only useful when fill is set to false. |
Implements vpDisplay.
Definition at line 2708 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImagePoint::get_u(), vpImagePoint::get_v(), vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, vpMath::round(), and vpERROR_TRACE.
|
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. This parameter is only useful when fill is set to false. |
Implements vpDisplay.
Definition at line 2769 of file vpDisplayX.cpp.
References vpRGBa::B, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpRect::getHeight(), vpRect::getLeft(), vpRect::getTop(), vpRect::getWidth(), vpColor::id, vpColor::id_unknown, vpDisplayException::notInitializedError, vpRGBa::R, vpMath::round(), 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 1712 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 1749 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 1784 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 1820 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 2038 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 2078 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 1875 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 1910 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 1945 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 1981 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 2130 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 2169 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayLine(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
staticinherited |
Definition at line 229 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 2427 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 |
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 887 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCharString(), and vpERROR_TRACE.
Referenced by vpKltOpencv::display(), vpMbtDistanceKltPoints::displayPrimitive(), and vpMbTracker::initClick().
|
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 953 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. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 920 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. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 990 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::displayCharString(), vpImagePoint::set_i(), vpImagePoint::set_j(), 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 2232 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::flushDisplay(), and vpERROR_TRACE.
Referenced by vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpMbtDistanceCircle::displayMovingEdges(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbTracker::initClick(), 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 2575 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::flushDisplay(), and vpERROR_TRACE.
|
protectedvirtual |
Flushes the X buffer. It's necessary to use this function to see the results of any drawing.
Implements vpDisplay.
Definition at line 2237 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, and vpERROR_TRACE.
|
protectedvirtual |
Flushes a part of the X buffer. It's necessary to use this function to see the results of any drawing.
iP | : Top left corner of the region of interest |
w,h | : Width and height of the region of interest |
Implements vpDisplay.
Definition at line 2260 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpImagePoint::get_u(), vpImagePoint::get_v(), vpDisplayException::notInitializedError, and vpERROR_TRACE.
Definition at line 2249 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::flushDisplayROI(), vpRect::getHeight(), vpRect::getTopLeft(), vpRect::getWidth(), and vpERROR_TRACE.
Definition at line 2592 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 2833 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, and vpERROR_TRACE.
|
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 2889 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
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 2950 of file vpDisplayX.cpp.
References vpMouseButton::button1, vpMouseButton::button2, vpMouseButton::button3, vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
staticinherited |
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 2647 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 2684 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 2723 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. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 2760 of file vpDisplay.cpp.
References vpDisplay::getClick().
Wait for a click.
I | [in] : The displayed image. |
blocking | [in] :
|
Definition at line 3166 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 3202 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 3240 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. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 2785 of file vpDisplay.cpp.
References vpDisplay::getClick().
|
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 3023 of file vpDisplayX.cpp.
References vpMouseButton::button1, vpMouseButton::button2, vpMouseButton::button3, vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
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 2815 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
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 2852 of file vpDisplay.cpp.
References vpDisplay::getClickUp().
|
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 3281 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
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 2877 of file vpDisplay.cpp.
References vpDisplay::getClickUp().
|
inlineprotected |
Definition at line 272 of file vpDisplayX.h.
References vpDisplay::height.
Referenced by getImage().
get the window pixmap and put it in vpRGBa image
Implements vpDisplay.
Definition at line 3077 of file vpDisplayX.cpp.
References vpRGBa::A, vpRGBa::B, vpImage< Type >::bitmap, vpDisplay::displayHasBeenInitialized, vpRGBa::G, vpImage< Type >::getHeight(), getHeight(), vpImage< Type >::getWidth(), getWidth(), vpDisplayException::notInitializedError, vpRGBa::R, vpImage< Type >::resize(), and vpERROR_TRACE.
|
staticinherited |
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 328 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 2526 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::getImage(), and vpERROR_TRACE.
|
protectedvirtual |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
vpDisplayException::notInitializedError | : If the display was not initialized. |
Implements vpDisplay.
Definition at line 3213 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, and vpERROR_TRACE.
|
protectedvirtual |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
string | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Implements vpDisplay.
Definition at line 3259 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, 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 2971 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 3078 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 3386 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 3491 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
protected |
Get the position of the most significant bit.
Definition at line 3387 of file vpDisplayX.cpp.
Referenced by init().
|
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 3307 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, vpImagePoint::set_u(), vpImagePoint::set_v(), 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 3106 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 3519 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 3351 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, vpImagePoint::set_u(), vpImagePoint::set_v(), 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 3135 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 3546 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
unsigned int vpDisplayX::getScreenDepth | ( | ) |
Gets the window depth (8, 16, 24, 32).
Definition at line 3149 of file vpDisplayX.cpp.
References vpDisplayException::connexionError, and vpERROR_TRACE.
void vpDisplayX::getScreenSize | ( | unsigned int & | w, |
unsigned int & | h | ||
) |
Gets the window size.
w,h | : Size of the display in therms of width and height. |
Definition at line 3174 of file vpDisplayX.cpp.
References vpDisplayException::connexionError, and vpERROR_TRACE.
|
inlineprotected |
|
inlineinherited |
Return the position (along the horizontal axis) on the screen of the display window.
Definition at line 360 of file vpDisplay.h.
Referenced by vpMbTracker::initClick().
|
inlineinherited |
Return the position (along the vertical axis) on the screen of the display window.
Definition at line 365 of file vpDisplay.h.
Referenced by vpMbTracker::initClick().
|
virtual |
Initialize the display (size, position and title) of a gray level image.
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 194 of file vpDisplayX.cpp.
References vpDisplayException::cannotOpenWindowError, vpDisplayException::colorAllocError, vpDisplayException::connexionError, vpImage< Type >::display, vpDisplay::displayHasBeenInitialized, vpImage< Type >::getHeight(), getMsb(), vpImage< Type >::getWidth(), vpDisplay::height, vpColor::id_black, vpColor::id_blue, vpColor::id_cyan, vpColor::id_darkBlue, vpColor::id_darkGray, vpColor::id_darkGreen, vpColor::id_darkRed, vpColor::id_gray, vpColor::id_green, vpColor::id_lightBlue, vpColor::id_lightGray, vpColor::id_lightGreen, vpColor::id_lightRed, vpColor::id_orange, vpColor::id_purple, vpColor::id_red, vpColor::id_unknown, vpColor::id_white, vpColor::id_yellow, vpDisplay::title_, vpERROR_TRACE, vpDisplay::width, vpDisplay::windowXPosition, vpDisplay::windowYPosition, and vpDisplayException::XWindowsError.
Referenced by vpProjectionDisplay::init(), vpDisplayX(), and vpRobotWireFrameSimulator::vpRobotWireFrameSimulator().
|
virtual |
Initialize the display (size, position and title) of a color image in RGBa format.
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 653 of file vpDisplayX.cpp.
References vpDisplayException::cannotOpenWindowError, vpDisplayException::colorAllocError, vpDisplayException::connexionError, vpImage< Type >::display, vpDisplay::displayHasBeenInitialized, vpImage< Type >::getHeight(), getMsb(), vpImage< Type >::getWidth(), vpDisplay::height, vpColor::id_black, vpColor::id_blue, vpColor::id_cyan, vpColor::id_darkBlue, vpColor::id_darkGray, vpColor::id_darkGreen, vpColor::id_darkRed, vpColor::id_gray, vpColor::id_green, vpColor::id_lightBlue, vpColor::id_lightGray, vpColor::id_lightGreen, vpColor::id_lightRed, vpColor::id_orange, vpColor::id_purple, vpColor::id_red, vpColor::id_unknown, vpColor::id_white, vpColor::id_yellow, vpDisplay::title_, vpDEBUG_TRACE, vpERROR_TRACE, vpDisplay::width, vpDisplay::windowXPosition, vpDisplay::windowYPosition, and vpDisplayException::XWindowsError.
|
virtual |
Initialize the display size, position and title.
w,h | : 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 1115 of file vpDisplayX.cpp.
References vpRGBa::B, vpColor::black, vpColor::blue, vpDisplayException::cannotOpenWindowError, vpDisplayException::colorAllocError, vpDisplayException::connexionError, vpColor::cyan, vpColor::darkBlue, vpColor::darkGray, vpColor::darkGreen, vpColor::darkRed, vpDisplay::displayHasBeenInitialized, vpRGBa::G, getMsb(), vpColor::gray, vpColor::green, vpDisplay::height, vpColor::id_black, vpColor::id_blue, vpColor::id_cyan, vpColor::id_darkBlue, vpColor::id_darkGray, vpColor::id_darkGreen, vpColor::id_darkRed, vpColor::id_gray, vpColor::id_green, vpColor::id_lightBlue, vpColor::id_lightGray, vpColor::id_lightGreen, vpColor::id_lightRed, vpColor::id_orange, vpColor::id_purple, vpColor::id_red, vpColor::id_white, vpColor::id_yellow, vpColor::lightBlue, vpColor::lightGray, vpColor::lightGreen, vpColor::lightRed, vpColor::orange, vpColor::purple, vpRGBa::R, vpColor::red, vpDisplay::title_, vpERROR_TRACE, vpTRACE, vpColor::white, vpDisplay::width, vpDisplay::windowXPosition, vpDisplay::windowYPosition, vpDisplayException::XWindowsError, and vpColor::yellow.
|
inlineinherited |
Check if the display has been initialised
Definition at line 571 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 182 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 2381 of file vpDisplay.cpp.
References vpDisplay::clearDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
|
protectedvirtual |
Set the font used to display a text in overlay. The display is performed using displayCharString().
font | : The expected font name. The available fonts are given by the "xlsfonts" binary. To choose a font you can also use the "xfontsel" binary. |
Implements vpDisplay.
Definition at line 1595 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, and 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 101 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 2354 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setFont(), and vpERROR_TRACE.
|
protectedvirtual |
Set the window title.
title | : Window title. |
Implements vpDisplay.
Definition at line 1627 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, vpDisplay::title_, and vpERROR_TRACE.
|
staticinherited |
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 126 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 2296 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setTitle(), and vpERROR_TRACE.
|
protectedvirtual |
Set the window position in the screen.
winx,winy | : Position of the upper-left window's border in the screen. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Implements vpDisplay.
Definition at line 1653 of file vpDisplayX.cpp.
References vpDisplay::displayHasBeenInitialized, vpDisplayException::notInitializedError, 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 154 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 2323 of file vpDisplay.cpp.
References vpImage< Type >::display, vpDisplay::setWindowPosition(), and vpERROR_TRACE.
|
protectedinherited |
display has been initialized
Definition at line 178 of file vpDisplay.h.
Referenced by clearDisplay(), vpDisplayWin32::closeDisplay(), closeDisplay(), vpDisplayOpenCV::closeDisplay(), vpDisplayGTK::closeDisplay(), displayArrow(), vpDisplayOpenCV::displayArrow(), vpDisplayGTK::displayArrow(), displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplayGTK::displayCharString(), displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayGTK::displayCircle(), displayCross(), vpDisplayOpenCV::displayCross(), vpDisplayGTK::displayCross(), displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayGTK::displayDotLine(), displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayGTK::displayImage(), displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayGTK::displayImageROI(), displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayGTK::displayLine(), displayPoint(), vpDisplayOpenCV::displayPoint(), vpDisplayGTK::displayPoint(), displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayGTK::displayRectangle(), flushDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayGTK::flushDisplay(), flushDisplayROI(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayGTK::flushDisplayROI(), getClick(), vpDisplayOpenCV::getClick(), vpDisplayGTK::getClick(), getClickUp(), vpDisplayOpenCV::getClickUp(), vpDisplayGTK::getClickUp(), getImage(), vpDisplayGTK::getImage(), getKeyboardEvent(), vpDisplayGTK::getKeyboardEvent(), vpDisplayOpenCV::getKeyboardEvent(), getPointerMotionEvent(), vpDisplayGTK::getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), getPointerPosition(), vpDisplayGTK::getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplayWin32::init(), init(), vpDisplayGTK::init(), vpDisplayOpenCV::init(), setFont(), setTitle(), vpDisplayGTK::setTitle(), setWindowPosition(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGTK::setWindowPosition(), vpDisplay::vpDisplay(), and vpDisplay::~vpDisplay().
|
protectedinherited |
Definition at line 184 of file vpDisplay.h.
Referenced by clearDisplay(), displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayGTK::displayImage(), displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayWin32::displayRectangle(), getHeight(), vpDisplayOpenCV::getHeight(), vpDisplayGTK::getHeight(), vpDisplayGTK::getImage(), vpDisplayWin32::init(), init(), vpDisplayGTK::init(), vpDisplayOpenCV::init(), and vpDisplay::vpDisplay().
|
protectedinherited |
Definition at line 185 of file vpDisplay.h.
Referenced by vpDisplayOpenCV::closeDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayWin32::init(), init(), vpDisplayGTK::init(), vpDisplayOpenCV::init(), setTitle(), vpDisplayGTK::setTitle(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX().
|
protectedinherited |
Definition at line 183 of file vpDisplay.h.
Referenced by clearDisplay(), displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayGTK::displayImage(), displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayWin32::displayRectangle(), vpDisplayGTK::getImage(), getWidth(), vpDisplayOpenCV::getWidth(), vpDisplayGTK::getWidth(), vpDisplayWin32::init(), init(), vpDisplayGTK::init(), vpDisplayOpenCV::init(), and vpDisplay::vpDisplay().
|
protectedinherited |
display position
Definition at line 180 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), init(), vpDisplayGTK::init(), vpDisplayOpenCV::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplay::vpDisplay(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX().
|
protectedinherited |
display position
Definition at line 182 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), init(), vpDisplayGTK::init(), vpDisplayOpenCV::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplay::vpDisplay(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX().