Visual Servoing Platform
version 3.5.0 under development (2022-02-15)
|
#include <visp3/gui/vpDisplayGTK.h>
Public Types | |
enum | vpScaleType { SCALE_AUTO, SCALE_1, SCALE_2, SCALE_3, SCALE_4, SCALE_5, SCALE_6, SCALE_7, SCALE_8, SCALE_9, SCALE_10, SCALE_DEFAULT } |
Public Member Functions | |
vpDisplayGTK () | |
vpDisplayGTK (int win_x, int win_y, const std::string &win_title="") | |
vpDisplayGTK (vpImage< unsigned char > &I, vpScaleType type) | |
vpDisplayGTK (vpImage< unsigned char > &I, int win_x=-1, int win_y=-1, const std::string &win_title="", vpScaleType type=SCALE_DEFAULT) | |
vpDisplayGTK (vpImage< vpRGBa > &I, vpScaleType type) | |
vpDisplayGTK (vpImage< vpRGBa > &I, int win_x=-1, int win_y=-1, const std::string &win_title="", vpScaleType type=SCALE_DEFAULT) | |
virtual | ~vpDisplayGTK () |
void | getImage (vpImage< vpRGBa > &I) |
unsigned int | getScreenDepth () |
unsigned int | getScreenHeight () |
void | getScreenSize (unsigned int &screen_width, unsigned int &screen_height) |
unsigned int | getScreenWidth () |
void | init (vpImage< unsigned char > &I, int win_x=-1, int win_y=-1, const std::string &win_title="") |
void | init (vpImage< vpRGBa > &I, int win_x=-1, int win_y=-1, const std::string &win_title="") |
void | init (unsigned int win_width, unsigned int win_height, int win_x=-1, int win_y=-1, const std::string &win_title="") |
Inherited functionalities from vpDisplay | |
unsigned int | computeAutoScale (unsigned int width, unsigned int height) |
unsigned int | getDownScalingFactor () |
unsigned int | getHeight () const |
unsigned int | getWidth () const |
int | getWindowXPosition () const |
int | getWindowYPosition () const |
bool | isInitialised () |
virtual void | setDownScalingFactor (unsigned int scale) |
virtual void | setDownScalingFactor (vpScaleType scaleType) |
Static Public Member Functions | |
Static public vpDisplay functionalities on gray level images. | |
static unsigned int | getDownScalingFactor (const vpImage< unsigned char > &I) |
static void | close (vpImage< unsigned char > &I) |
static void | display (const vpImage< unsigned char > &I) |
static void | 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 | displayCamera (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness) |
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 | displayDotLine (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< unsigned char > &I, const std::list< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayEllipse (const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_normalized_centered_moments, const vpColor &color, unsigned int thickness=1, bool display_center=false, bool display_arc=false) |
static void | displayEllipse (const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, const double &smallalpha, const double &highalpha, bool use_normalized_centered_moments, const vpColor &color, unsigned int thickness=1, bool display_center=false, bool display_arc=false) |
static void | displayFrame (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, const vpImagePoint &offset=vpImagePoint(0, 0)) |
static void | displayLine (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1, bool segment=true) |
static void | displayLine (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1, bool segment=true) |
static void | displayLine (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< unsigned char > &I, const std::list< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< unsigned char > &I, const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< unsigned char > &I, int i, int j, const vpColor &color, unsigned int thickness=1) |
static void | displayPolygon (const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1, bool closed=true) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint ¢er, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, int i, int j, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, unsigned int i, unsigned int j, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | 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 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 void | getImage (const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, std::string &key, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< unsigned char > &I, char *key, bool blocking=true) |
static bool | getPointerMotionEvent (const vpImage< unsigned char > &I, vpImagePoint &ip) |
static bool | getPointerPosition (const vpImage< unsigned char > &I, vpImagePoint &ip) |
static void | setBackground (const vpImage< unsigned char > &I, const vpColor &color) |
static void | setFont (const vpImage< unsigned char > &I, const std::string &font) |
static void | setTitle (const vpImage< unsigned char > &I, const std::string &windowtitle) |
static void | setWindowPosition (const vpImage< unsigned char > &I, int winx, int winy) |
Static public vpDisplay functionalities on 32 bits color images. | |
static unsigned int | getDownScalingFactor (const vpImage< vpRGBa > &I) |
static void | close (vpImage< vpRGBa > &I) |
static void | display (const vpImage< vpRGBa > &I) |
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 | displayCamera (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness) |
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 | displayDotLine (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayDotLine (const vpImage< vpRGBa > &I, const std::list< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayEllipse (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_centered_moments, const vpColor &color, unsigned int thickness=1, bool display_center=false, bool display_arc=false) |
static void | displayEllipse (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, const double &theta1, const double &theta2, bool use_centered_moments, const vpColor &color, unsigned int thickness=1, bool display_center=false, bool display_arc=false) |
static void | displayFrame (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, const vpImagePoint &offset=vpImagePoint(0, 0)) |
static void | displayLine (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1, bool segment=true) |
static void | displayLine (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1, bool segment=true) |
static void | displayLine (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< vpRGBa > &I, const std::list< vpImagePoint > &ips, bool closeTheShape, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< vpRGBa > &I, int i, int j, const vpColor &color, unsigned int thickness=1) |
static void | displayPolygon (const vpImage< vpRGBa > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1, bool closed=true) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, int i, int j, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, unsigned int i, unsigned int j, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | 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 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 void | getImage (const vpImage< vpRGBa > &Is, vpImage< vpRGBa > &Id) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, std::string &key, bool blocking=true) |
static bool | getKeyboardEvent (const vpImage< vpRGBa > &I, char *key, bool blocking=true) |
static bool | getPointerMotionEvent (const vpImage< vpRGBa > &I, vpImagePoint &ip) |
static bool | getPointerPosition (const vpImage< vpRGBa > &I, vpImagePoint &ip) |
static void | setBackground (const vpImage< vpRGBa > &I, const vpColor &color) |
static void | setFont (const vpImage< vpRGBa > &I, const std::string &font) |
static void | setTitle (const vpImage< vpRGBa > &I, const std::string &windowtitle) |
static void | setWindowPosition (const vpImage< vpRGBa > &I, int winx, int winy) |
Protected Member Functions | |
void | setFont (const std::string &fontname) |
void | setTitle (const std::string &win_title) |
void | setWindowPosition (int win_x, int win_y) |
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, unsigned int width, unsigned int height) |
void | displayImageROI (const vpImage< vpRGBa > &I, const vpImagePoint &iP, unsigned int width, 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, unsigned int thickness=1) |
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, unsigned int width, 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 (std::string &key, bool blocking=true) |
bool | getPointerMotionEvent (vpImagePoint &ip) |
bool | getPointerPosition (vpImagePoint &ip) |
void | setScale (vpScaleType scaleType, unsigned int width, unsigned int height) |
Protected Attributes | |
bool | m_displayHasBeenInitialized |
int | m_windowXPosition |
int | m_windowYPosition |
unsigned int | m_width |
unsigned int | m_height |
std::string | m_title |
unsigned int | m_scale |
vpScaleType | m_scaleType |
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class GTK should be installed. Installation instructions are provided here https://visp.inria.fr/3rd_gtk.
The example below shows how to display an image with this video device.
Definition at line 134 of file vpDisplayGTK.h.
|
inherited |
Values that could be applied to a display to down scale the size of the display.
Enumerator | |
---|---|
SCALE_AUTO | Auto down scaling factor computed fom the screen resolution. |
SCALE_1 | Display and image have the same size. |
SCALE_2 | Display width and height is down scaled by 2 wrt the image size. |
SCALE_3 | Display width and height is down scaled by 3 wrt the image size. |
SCALE_4 | Display width and height is down scaled by 4 wrt the image size. |
SCALE_5 | Display width and height is down scaled by 5 wrt the image size. |
SCALE_6 | Display width and height is down scaled by 6 wrt the image size. |
SCALE_7 | Display width and height is down scaled by 7 wrt the image size. |
SCALE_8 | Display width and height is down scaled by 8 wrt the image size. |
SCALE_9 | Display width and height is down scaled by 9 wrt the image size. |
SCALE_10 | Display width and height is down scaled by 10 wrt the image size. |
SCALE_DEFAULT | Display and image have the same size. Similar to vpDisplay::SCALE_1. |
Definition at line 182 of file vpDisplay.h.
vpDisplayGTK::vpDisplayGTK | ( | ) |
Basic constructor.
To initialize the window position, title and size you may call init(vpImage<unsigned char> &, int, int, const std::string &) or init(vpImage<vpRGBa> &, int, int, const std::string &).
Definition at line 731 of file vpDisplayGTK.cpp.
vpDisplayGTK::vpDisplayGTK | ( | int | win_x, |
int | win_y, | ||
const std::string & | win_title = "" |
||
) |
Constructor that just initialize the display position in the screen and the display title.
win_x,win_y | : The window is set at position (win_x,win_y) with column index and row index respectively. |
win_title | : Window title. |
To initialize the display size, you need to call init().
Definition at line 704 of file vpDisplayGTK.cpp.
References vpDisplay::m_title, vpDisplay::m_windowXPosition, and vpDisplay::m_windowYPosition.
vpDisplayGTK::vpDisplayGTK | ( | vpImage< unsigned char > & | I, |
vpScaleType | scaleType | ||
) |
Constructor : initialize a display to visualize a gray level image (8 bits).
I | : Image to be displayed (not that image has to be initialized). |
scaleType | : If this parameter is set to:
|
Definition at line 591 of file vpDisplayGTK.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), init(), and vpDisplay::setScale().
vpDisplayGTK::vpDisplayGTK | ( | vpImage< unsigned char > & | I, |
int | win_x = -1 , |
||
int | win_y = -1 , |
||
const std::string & | win_title = "" , |
||
vpScaleType | scaleType = SCALE_DEFAULT |
||
) |
Constructor : initialize a display to visualize a gray level image (8 bits).
I | : Image to be displayed (not that image has to be initialized). |
win_x,win_y | : The window is set at position (win_x,win_y) with column index and row index respectively. |
win_title | : Window title. |
scaleType | : If this parameter is set to:
|
Definition at line 621 of file vpDisplayGTK.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), init(), and vpDisplay::setScale().
vpDisplayGTK::vpDisplayGTK | ( | vpImage< vpRGBa > & | I, |
vpScaleType | scaleType | ||
) |
Constructor : initialize a display to visualize a RGBa level image (32 bits).
I | : Image to be displayed (not that image has to be initialized) |
scaleType | : If this parameter is set to:
|
Definition at line 647 of file vpDisplayGTK.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), init(), and vpDisplay::setScale().
vpDisplayGTK::vpDisplayGTK | ( | vpImage< vpRGBa > & | I, |
int | win_x = -1 , |
||
int | win_y = -1 , |
||
const std::string & | win_title = "" , |
||
vpScaleType | scaleType = SCALE_DEFAULT |
||
) |
Constructor : initialize a display to visualize a RGBa level image (32 bits).
I | : Image to be displayed (not that image has to be initialized) |
win_x,win_y | : The window is set at position (win_x,win_y) with column index and row index respectively. |
win_title | : Window title. |
scaleType | : If this parameter is set to:
|
Definition at line 675 of file vpDisplayGTK.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), init(), and vpDisplay::setScale().
|
virtual |
|
protected |
|
staticinherited |
Close the display attached to I.
Definition at line 51 of file vpDisplay_uchar.cpp.
Close the display attached to I.
Definition at line 51 of file vpDisplay_rgba.cpp.
|
protected |
Close the window.
Definition at line 1004 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized.
Referenced by ~vpDisplayGTK().
|
inherited |
Computes the down scaling factor that should be applied to the window size to display the image given the resolution of the screen.
width,height | : Image size. |
Definition at line 246 of file vpDisplay.cpp.
Referenced by vpDisplay::setScale().
|
staticinherited |
Display image I.
I | : Image to display. |
Definition at line 782 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpDot2::defineDots(), vpWireFrameSimulator::getExternalImage(), vpWireFrameSimulator::getInternalImage(), vpPlot::init(), vpMbTracker::initClick(), vpDisplayOpenCV::on_mouse(), vpMbDepthDenseTracker::segmentPointCloud(), vpMbDepthNormalTracker::segmentPointCloud(), vpSimulatorAfma6::setPosition(), vpMeEllipse::track(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
Display image I.
I | : Image to display. |
Definition at line 780 of file vpDisplay_rgba.cpp.
|
protected |
Display an arrow from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image point. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 1052 of file vpDisplayGTK.cpp.
References displayLine(), vpImagePoint::distance(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplay::m_displayHasBeenInitialized, vpDisplayException::notInitializedError, vpImagePoint::set_i(), vpImagePoint::set_j(), and vpMath::sqr().
|
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 61 of file vpDisplay_uchar.cpp.
Referenced by vpMeLine::computeRhoTheta(), vpMbDepthNormalTracker::display(), vpProjectionDisplay::displayCamera(), vpMbtFaceDepthNormal::displayFeature(), vpMeTracker::initTracking(), vpMeTracker::track(), and vpMbGenericTracker::track().
|
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 77 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display an arrow from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 61 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display an arrow from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | : Initial image point. |
i2,j2 | : Final image point. |
color | : Arrow color. |
w,h | : Width and height of the arrow. |
thickness | : Thickness of the lines used to display the arrow. |
Definition at line 77 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display the projection of an object camera represented by a cone in the image.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object camera. |
color | : Color used to display the camera in the image. |
thickness | : Thickness of the graphics drawing. |
Definition at line 96 of file vpDisplay_uchar.cpp.
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 96 of file vpDisplay_rgba.cpp.
|
protected |
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. |
Definition at line 1100 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
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 115 of file vpDisplay_uchar.cpp.
|
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 134 of file vpDisplay_uchar.cpp.
|
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 115 of file vpDisplay_rgba.cpp.
|
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 134 of file vpDisplay_rgba.cpp.
|
protected |
Display a circle.
center | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 1117 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
center | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 152 of file vpDisplay_uchar.cpp.
Referenced by vpFeatureSegment::display(), vpProjectionDisplay::display(), vpKeyPoint::displayMatching(), and vpDot2::trackAndDisplay().
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
i,j | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 170 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
center | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 151 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a circle.
I | : The image associated to the display. |
i,j | : Circle center position. |
radius | : Circle radius. |
color | : Circle color. |
fill | : When set to true fill the circle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the circle. This parameter is only useful when fill is set to false. |
Definition at line 169 of file vpDisplay_rgba.cpp.
|
protected |
Display a cross at the image point ip location.
ip | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 1136 of file vpDisplayGTK.cpp.
References displayLine(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplay::m_displayHasBeenInitialized, vpDisplayException::notInitializedError, vpImagePoint::set_i(), and vpImagePoint::set_j().
|
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 184 of file vpDisplay_uchar.cpp.
Referenced by vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpKltOpencv::display(), vpDot2::display(), vpDot::display(), vpMeNurbs::display(), vpMbEdgeKltTracker::display(), vpMeSite::display(), vpMeLine::display(), vpMbKltTracker::display(), vpKeyPoint::display(), vpCalibration::displayData(), vpMbEdgeTracker::displayFeaturesOnImage(), vpCalibration::displayGrid(), vpKeyPoint::displayMatching(), vpPose::displayModel(), vpFeatureDisplay::displayPoint(), vpMbtDistanceKltCylinder::displayPrimitive(), vpMbtDistanceKltPoints::displayPrimitive(), vpMeSite::getQueryList(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbTracker::initClick(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpMeEllipse::initTracking(), vpMeEllipse::leastSquareRobust(), vpMeEllipse::plugHoles(), vpMeLine::sample(), vpMeEllipse::sample(), vpDot2::searchDotsInArea(), vpMeLine::seekExtremities(), vpMeNurbs::seekExtremities(), vpKltOpencv::suppressFeature(), vpDot2::track(), vpDot::track(), and vpMbGenericTracker::track().
|
staticinherited |
Display a cross at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 198 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a cross at the image point ip location.
I | : The image associated to the display. |
ip | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 183 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a cross at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Cross location. |
size | : Size (width and height) of the cross. |
color | : Cross color. |
thickness | : Thickness of the lines used to display the cross. |
Definition at line 197 of file vpDisplay_rgba.cpp.
|
protected |
Display a dashed line from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 1167 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
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 211 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::trackAndDisplay().
|
staticinherited |
Display a dashed line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 225 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display dashed lines for the list of image points.
I | : The image associated to the display. |
ips | : Vector of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 240 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display dashed lines for the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 262 of file vpDisplay_uchar.cpp.
References vpImagePoint::distance().
|
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 210 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a dashed line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 224 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display the dashed lines formed by the list of image points
I | : The image associated to the display. |
ips | : Vector of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 239 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display the dashed lines formed by the list of image points
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a dashed line from the first and last image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Definition at line 261 of file vpDisplay_rgba.cpp.
References vpImagePoint::distance().
|
staticinherited |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_normalized_centered_moments these parameters are:
|
use_normalized_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the normalized centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Ellipse color. |
thickness | : Ellipse thickness. |
display_center | : Display a cross at the center of the ellipse. |
display_arc | : Display a line between the center and the first arc extremity and a line between the center and the second arc extremity. |
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 319 of file vpDisplay_uchar.cpp.
Referenced by vpMbtDistanceCircle::display(), vpMbEdgeKltTracker::display(), vpMbKltTracker::display(), vpMbEdgeTracker::display(), vpMeEllipse::display(), vpFeatureDisplay::displayEllipse(), vpDisplay::displayEllipse(), and vpMbGenericTracker::track().
|
staticinherited |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_normalized_centered_moments these parameters are:
|
smallalpha | : Smallest angle in rad (0 for a complete ellipse). |
highalpha | : Highest angle in rad (2 for a complete ellipse). |
use_normalized_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the normalized centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Ellipse color. |
thickness | : Ellipse thickness. |
display_center | : Display a cross at the center of the ellipse. |
display_arc | : Display a line between the center and the first arc extremity and a line between the center and the second arc extremity. |
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 366 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_normalized_centered_moments these parameters are:
|
use_normalized_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the normalized centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Ellipse color. |
thickness | : Ellipse thickness. |
display_center | : Display a cross at the center of the ellipse. |
display_arc | : Display a line between the center and the first arc extremity and a line between the center and the second arc extremity. |
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 318 of file vpDisplay_rgba.cpp.
References vpDisplay::displayEllipse().
|
staticinherited |
Display an ellipse from its parameters expressed in pixels.
I | : Image to consider. |
center | : Center of the ellipse. |
coef1,coef2,coef3 | : Depending on the parameter use_normalized_centered_moments these parameters are:
|
smallalpha | : Smallest angle in rad (0 for a complete ellipse). |
highalpha | : Highest angle in rad (2 for a complete ellipse). |
use_normalized_centered_moments | : When false, the parameters coef1, coef2, coef3 are the parameters . When true, the parameters coef1, coef2, coef3 are rather the normalized centered moments expressed in pixels. In that case, we compute the parameters a, b and e from the centered moments. |
color | : Ellipse color. |
thickness | : Ellipse thickness. |
display_center | : Display a cross at the center of the ellipse. |
display_arc | : Display a line between the center and the first arc extremity and a line between the center and the second arc extremity. |
The following example shows how to use for example this function to display the result of a tracking.
Definition at line 365 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display the projection of an object frame represented by 3 arrows in the image. Red, green and blue arrows correspond to frame X, Y and Z axis respectively.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object frame. |
color | : Color used to display the frame in the image. |
thickness | : the thickness of the line. |
offset | : Offset in pixels applied to the frame origin location in the image. |
Definition at line 390 of file vpDisplay_uchar.cpp.
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. Red, green and blue arrows correspond to frame X, Y and Z axis respectively.
I | : The image associated to the display. |
cMo | : Homogeneous matrix that gives the transformation between the camera frame and the object frame to project in the image. |
cam | : Camera intrinsic parameters. |
size | : Size of the object frame. |
color | : Color used to display the frame in the image. |
thickness | : the thickness of the line. |
offset | : Offset in pixels applied to the frame origin location in the image. |
Definition at line 389 of file vpDisplay_rgba.cpp.
Display the color image I in RGBa format (32bits).
I | : Image to display. |
Definition at line 948 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_height, vpDisplay::m_scale, vpDisplay::m_width, and vpDisplayException::notInitializedError.
|
protected |
Display the gray level image I (8bits).
I | : Image to display. |
Definition at line 893 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_height, vpDisplay::m_scale, vpDisplay::m_width, and vpDisplayException::notInitializedError.
|
protected |
Definition at line 997 of file vpDisplayGTK.cpp.
References vpTRACE.
|
protected |
Display a selection of the gray level image I (8bits).
I | : Image to display. |
iP | : Top left corner of the region of interest |
w | : Width of the region of interest |
h | : Height of the region of interest |
Definition at line 919 of file vpDisplayGTK.cpp.
References vpImageTools::crop(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
protected |
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 | : Width of the region of interest |
h | : Height of the region of interest |
Definition at line 974 of file vpDisplayGTK.cpp.
References vpImageTools::crop(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
protected |
Display a line from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 1187 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
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. |
segment | If true (default) display the segment between the two image points. If false, display the line passing through the two image points. |
Definition at line 406 of file vpDisplay_uchar.cpp.
References vpImagePoint::get_i(), and vpImagePoint::get_j().
Referenced by vpVirtualGrabber::acquire(), vpMbDepthDenseTracker::display(), vpMbDepthNormalTracker::display(), vpTemplateTrackerZone::display(), vpFeatureSegment::display(), vpMbtFaceDepthDense::display(), vpMbtFaceDepthNormal::display(), vpMbtDistanceKltCylinder::display(), vpMbtDistanceLine::display(), vpMbtDistanceKltPoints::display(), vpPolygon::display(), vpMbtDistanceCylinder::display(), vpMbEdgeKltTracker::display(), vpHistogram::display(), vpMeLine::display(), vpMbKltTracker::display(), vpMbEdgeTracker::display(), vpWireFrameSimulator::display_scene(), vpFeatureDisplay::displayLine(), vpDisplay::displayLine(), vpKeyPoint::displayMatching(), vpWireFrameSimulator::displayTrajectory(), vpWireFrameSimulator::getExternalImage(), vpTemplateTrackerZone::initClick(), vpMbDepthDenseTracker::segmentPointCloud(), vpMbDepthNormalTracker::segmentPointCloud(), vpMbGenericTracker::track(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
staticinherited |
Display a line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Line thickness. |
segment | If true (default) display the segment between the two image points. If false, display the line passing through the two image points. |
Definition at line 422 of file vpDisplay_uchar.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), vpImage< Type >::getHeight(), and vpImage< Type >::getWidth().
|
staticinherited |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : Vector of image points. |
closeTheShape | : If true, display a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 488 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, display a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 509 of file vpDisplay_uchar.cpp.
References vpImagePoint::distance().
|
staticinherited |
Display a line from image point ip1 to image point ip2.
I | : The image associated to the display. |
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
segment | If true (default) display the segment between the two image points. If false, display the line passing through the two image points. |
Definition at line 404 of file vpDisplay_rgba.cpp.
References vpDisplay::displayLine(), vpImagePoint::get_i(), and vpImagePoint::get_j().
|
staticinherited |
Display a line from image point (i1,j1) to image point (i2,j2).
I | : The image associated to the display. |
i1,j1 | Initial image point. |
i2,j2 | Final image point. |
color | : Line color. |
thickness | : Line thickness. |
segment | If true (default) display the segment between the two image points. If false, display the line passing through the two image points. |
Definition at line 420 of file vpDisplay_rgba.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), vpImage< Type >::getHeight(), and vpImage< Type >::getWidth().
|
staticinherited |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : Vector of image points. |
closeTheShape | : If true, draw a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 487 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display the lines formed by the list of image points.
I | : The image associated to the display. |
ips | : List of image points. |
closeTheShape | : If true, draw a line from the first and last image points. |
color | : Line color. |
thickness | : Line thickness. |
Definition at line 509 of file vpDisplay_rgba.cpp.
References vpImagePoint::distance().
|
protected |
Display a point at the image point ip location.
ip | : Point location. |
color | : Point color. |
thickness | : Point thickness. |
Definition at line 1206 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
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 537 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::display(), vpDot::display(), vpWireFrameSimulator::displayTrajectory(), vpWireFrameSimulator::getExternalImage(), vpDot2::getFreemanChain(), vpMbTracker::initClick(), vpDot::operator==(), vpDot2::searchDotsInArea(), vpMeNurbs::seekExtremitiesCanny(), and vpMeSite::track().
|
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 550 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 537 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a point at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Point location. |
color | : Point color. |
thickness | : Thickness of the point |
Definition at line 550 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a polygon defined by a vector of image points.
I | : The image associated to the display. |
vip | : Vector of image point that define the vertexes of the polygon. |
color | : Line color. |
thickness | : Line thickness. |
closed | : When true display a closed polygon with a segment between first and last image point. |
Definition at line 564 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a polygon defined by a vector of image points.
I | : The image associated to the display. |
vip | : Vector of image point that define the vertexes of the polygon. |
color | : Line color. |
thickness | : Line thickness. |
closed | : When true display a closed polygon with a segment between first and last image point. |
Definition at line 563 of file vpDisplay_rgba.cpp.
|
protected |
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. |
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 1228 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
protected |
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. |
Definition at line 1253 of file vpDisplayGTK.cpp.
References vpImagePoint::get_u(), vpImagePoint::get_v(), vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, vpDisplayException::notInitializedError, and vpMath::round().
|
protected |
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. |
Definition at line 1281 of file vpDisplayGTK.cpp.
References vpRect::getRight(), vpRect::getTopLeft(), vpRect::getWidth(), vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, vpDisplayException::notInitializedError, and vpMath::round().
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 586 of file vpDisplay_uchar.cpp.
Referenced by vpDot2::searchDotsInArea(), and vpMeNurbs::seekExtremitiesCanny().
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
bottomRight | : Bottom-right corner of the rectangle. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 668 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
rectangle | : Rectangle characteristics. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 627 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
center | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 646 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle with (i,j) as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
i,j | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 606 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
i,j | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 688 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 585 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
topLeft | : Top-left corner of the rectangle. |
bottomRight | : Bottom-right corner of the rectangle. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 667 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
rectangle | : Rectangle characteristics. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. When vpDisplayOpenCV is used, and color alpha channel is set, filling feature can handle transparency. See vpColor header class documentation. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 626 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
center | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 645 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle with (i,j) as the top-left corner and width and height the rectangle size.
I | : The image associated to the display. |
i,j | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Definition at line 605 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a rectangle defined by its center, its orientation (angle) and its size.
I | : Image associated to the display. |
i,j | : Rectangle center point. |
angle | : Angle in radians width an horizontal axis oriented from left to right. |
width,height | : Rectangle size. |
color | : Rectangle color. |
thickness | : Thickness of the four lines used to display the rectangle. |
Definition at line 686 of file vpDisplay_rgba.cpp.
|
staticinherited |
Update the display with the content of the image that is in the region of interest.
I | : Image. |
roi | : Region of interest. |
Definition at line 788 of file vpDisplay_uchar.cpp.
Update the display with the content of the image that is in the region of interest.
I | : Image. |
roi | : Region of interest. |
Definition at line 786 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 706 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpKltOpencv::display(), vpMbEdgeKltTracker::display(), vpMbKltTracker::display(), vpMbtDistanceKltCylinder::displayPrimitive(), vpMbtDistanceKltPoints::displayPrimitive(), vpMbTracker::initClick(), vpImageQueue< Type >::record(), vpKltOpencv::suppressFeature(), and vpMbGenericTracker::track().
|
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 724 of file vpDisplay_uchar.cpp.
|
staticinherited |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 704 of file vpDisplay_rgba.cpp.
|
staticinherited |
Display a string at the image point (i,j) location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
s | : String to display in overlay. |
color | : String color. |
Definition at line 722 of file vpDisplay_rgba.cpp.
|
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 758 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpMbtDistanceCircle::displayMovingEdges(), vpDot2::getFreemanChain(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbTracker::initClick(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpMeEllipse::initTracking(), vpDot2::searchDotsInArea(), vpMbDepthDenseTracker::segmentPointCloud(), vpMbDepthNormalTracker::segmentPointCloud(), vpSimulatorAfma6::setPosition(), vpMeLine::track(), vpMeEllipse::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 756 of file vpDisplay_rgba.cpp.
|
protected |
Flushes the display buffer. It's necessary to use this function to see the results of any drawing.
Definition at line 1017 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, and vpDisplayException::notInitializedError.
|
protected |
Flushes the display buffer. It's necessary to use this function to see the results of any drawing.
Definition at line 1030 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, and vpDisplayException::notInitializedError.
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 769 of file vpDisplay_uchar.cpp.
Flushes the output buffer associated to image I display. It's necessary to use this function to see the results of any drawing.
Definition at line 767 of file vpDisplay_rgba.cpp.
|
protected |
Wait for a click from one of the mouse button.
blocking | [in] : Blocking behavior.
|
Definition at line 1311 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
protected |
Wait for a click from one of the mouse button and get the position of the clicked image point.
ip | [out] : The coordinates of the clicked image point. |
blocking | [in] : true for a blocking behaviour waiting a mouse button click, false for a non blocking behaviour. |
Definition at line 1341 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
protected |
Wait for a mouse button click and get the position of the clicked pixel. The button used to click is also set.
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 1373 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
staticinherited |
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 807 of file vpDisplay_uchar.cpp.
Referenced by vpVirtualGrabber::acquire(), vpDot2::defineDots(), vpDisplay::getClick(), vpPlot::getPixelValue(), vpTemplateTrackerZone::initClick(), vpPolygon::initClick(), vpMbTracker::initClick(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpMeEllipse::initTracking(), vpDot2::initTracking(), vpDot::initTracking(), vpWireFrameSimulator::navigation(), vpImageQueue< Type >::record(), and vpMeEllipse::track().
|
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 827 of file vpDisplay_uchar.cpp.
|
staticinherited |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 852 of file vpDisplay_uchar.cpp.
|
staticinherited |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 874 of file vpDisplay_uchar.cpp.
References vpDisplay::getClick().
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 805 of file vpDisplay_rgba.cpp.
|
staticinherited |
Wait for a click from one of the mouse button and get the position of the clicked image point.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
blocking | [in] : Blocking behavior.
|
Definition at line 825 of file vpDisplay_rgba.cpp.
|
staticinherited |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 850 of file vpDisplay_rgba.cpp.
|
staticinherited |
Wait for a mouse button click and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The button used to click. |
blocking | [in] :
|
Definition at line 872 of file vpDisplay_rgba.cpp.
References vpDisplay::getClick().
|
protected |
Wait for a mouse button click release and get the position of the image point were the click release occurs. The button used to click is also set. Same method as getClick(unsigned int&, unsigned int&, vpMouseButton::vpMouseButtonType &, bool).
ip | [out] : Position of the clicked image point. |
button | [in] : Button used to click. |
blocking | [in] : true for a blocking behaviour waiting a mouse button click, false for a non blocking behaviour. |
Definition at line 1408 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
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 900 of file vpDisplay_uchar.cpp.
Referenced by vpDisplay::getClickUp(), and vpWireFrameSimulator::navigation().
|
staticinherited |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 922 of file vpDisplay_uchar.cpp.
References vpDisplay::getClickUp().
|
staticinherited |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the clicked image point. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 898 of file vpDisplay_rgba.cpp.
|
staticinherited |
Wait for a mouse button click release and get the position of the clicked image point. The button used to click is also set.
I | [in] : The displayed image. |
button | [out] : The clicked button. |
blocking | [in] :
|
Definition at line 920 of file vpDisplay_rgba.cpp.
References vpDisplay::getClickUp().
|
inlineinherited |
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image.
Definition at line 235 of file vpDisplay.h.
Referenced by vpImageQueue< Type >::record().
|
staticinherited |
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image.
I | : Image associated to the display window. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1294 of file vpDisplay_uchar.cpp.
Return the value of the down scale factor applied to the image in order to reduce the size of the window used to display the image.
I | : Image associated to the display window. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1285 of file vpDisplay_rgba.cpp.
|
inlineinherited |
get the window pixmap and put it in vpRGBa image
Implements vpDisplay.
Definition at line 1424 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_height, vpDisplay::m_width, and vpDisplayException::notInitializedError.
|
staticinherited |
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 144 of file vpDisplay.cpp.
References vpImageConvert::convert(), and vpImage< Type >::display.
Referenced by vpDisplay::getImage().
|
staticinherited |
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 217 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpDisplay::getImage().
|
protected |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
Definition at line 1461 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, and vpDisplayException::notInitializedError.
|
protected |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Definition at line 1493 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, and vpDisplayException::notInitializedError.
|
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 1011 of file vpDisplay_uchar.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1102 of file vpDisplay_uchar.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1193 of file vpDisplay_uchar.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Below you will find an example showing how to use this method.
Definition at line 1008 of file vpDisplay_rgba.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1099 of file vpDisplay_rgba.cpp.
|
staticinherited |
Get a keyboard event.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
key | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Below you will find an example showing how to use this method.
Definition at line 1190 of file vpDisplay_rgba.cpp.
|
protected |
Get the coordinates of the mouse pointer.
ip | [out] : The coordinates of the mouse pointer. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Definition at line 1517 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1207 of file vpDisplay_uchar.cpp.
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1204 of file vpDisplay_rgba.cpp.
|
protected |
Get the coordinates of the mouse pointer.
ip | [out] : The coordinates of the mouse pointer. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Definition at line 1539 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scale, and vpDisplayException::notInitializedError.
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1221 of file vpDisplay_uchar.cpp.
Referenced by vpPlot::getPixelValue(), vpPlot::navigate(), and vpWireFrameSimulator::navigation().
|
staticinherited |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 1218 of file vpDisplay_rgba.cpp.
unsigned int vpDisplayGTK::getScreenDepth | ( | ) |
get the window depth (8,16,24,32)
usualy it 24 bits now...
Definition at line 1439 of file vpDisplayGTK.cpp.
unsigned int vpDisplayGTK::getScreenHeight | ( | ) |
Gets the screen vertical resolution.
Definition at line 1574 of file vpDisplayGTK.cpp.
References getScreenSize().
void vpDisplayGTK::getScreenSize | ( | unsigned int & | w, |
unsigned int & | h | ||
) |
Gets screen resolution.
w,h | : Horizontal and vertical screen resolution. |
Definition at line 1554 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized.
Referenced by getScreenHeight(), and getScreenWidth().
unsigned int vpDisplayGTK::getScreenWidth | ( | ) |
Gets the screen horizontal resolution in pixel.
Definition at line 1564 of file vpDisplayGTK.cpp.
References getScreenSize().
|
inlineinherited |
Return the display width.
Definition at line 245 of file vpDisplay.h.
|
inlineinherited |
Return the position (along the horizontal axis) on the screen of the display window.
Definition at line 251 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 256 of file vpDisplay.h.
Referenced by vpMbTracker::initClick().
void vpDisplayGTK::init | ( | vpImage< unsigned char > & | I, |
int | win_x = -1 , |
||
int | win_y = -1 , |
||
const std::string & | win_title = "" |
||
) |
Initialize the display (size, position and title) of a gray level image.
I | : Image to be displayed (not that image has to be initialized) |
win_x,win_y | : The window is set at position (win_x,win_y) with column index and row index respectively. |
win_title | : Window title. |
Definition at line 753 of file vpDisplayGTK.cpp.
References vpImage< Type >::display, vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scaleType, vpDisplay::m_title, vpDisplay::m_windowXPosition, vpDisplay::m_windowYPosition, vpDisplayException::notInitializedError, and vpDisplay::setScale().
Referenced by init(), and vpDisplayGTK().
void vpDisplayGTK::init | ( | vpImage< vpRGBa > & | I, |
int | win_x = -1 , |
||
int | win_y = -1 , |
||
const std::string & | win_title = "" |
||
) |
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) |
win_x,win_y | : The window is set at position (win_x,win_y) with column index and row index respectively. |
win_title | : Window title. |
Definition at line 783 of file vpDisplayGTK.cpp.
References vpImage< Type >::display, vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), init(), vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_scaleType, vpDisplay::m_title, vpDisplay::m_windowXPosition, vpDisplay::m_windowYPosition, vpDisplayException::notInitializedError, and vpDisplay::setScale().
void vpDisplayGTK::init | ( | unsigned int | win_width, |
unsigned int | win_height, | ||
int | win_x = -1 , |
||
int | win_y = -1 , |
||
const std::string & | win_title = "" |
||
) |
Initialize the display size, position and title.
win_width,win_height | : Width and height of the window. |
win_x,win_y | : The window is set at position (win_x,win_y) with column index and row index respectively. |
win_title | : Window title. |
Definition at line 812 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_height, vpDisplay::m_scale, vpDisplay::m_scaleType, vpDisplay::m_title, vpDisplay::m_width, vpDisplay::m_windowXPosition, vpDisplay::m_windowYPosition, and vpDisplay::setScale().
|
inlineinherited |
Check if the display has been initialised
Definition at line 263 of file vpDisplay.h.
References vpColor::green, vpColor::none, and vpColor::white.
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 1235 of file vpDisplay_uchar.cpp.
|
staticinherited |
Set the window background.
I | : Image associated to the display window. |
color | Background color. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1232 of file vpDisplay_rgba.cpp.
|
virtualinherited |
Set the down scale factor applied to the image in order to reduce the display size.
scale | : Scale factor applied to display a rescaled image. |
Reimplemented in vpDisplayWin32.
Definition at line 231 of file vpDisplay.cpp.
References vpDisplay::m_displayHasBeenInitialized, and vpDisplay::m_scale.
Referenced by vpDisplay::setScale().
|
virtualinherited |
Set the down scaling factor either in auto mode or set manually.
This method has to be called before display initialization.
Reimplemented in vpDisplayWin32.
Definition at line 324 of file vpDisplay.cpp.
References vpDisplay::m_displayHasBeenInitialized, and vpDisplay::m_scaleType.
|
protected |
Set the font used to display a text in overlay. The display is performed using displayCharString().
fontname | : The expected font name. |
Definition at line 843 of file vpDisplayGTK.cpp.
|
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 1253 of file vpDisplay_uchar.cpp.
Referenced by vpPlot::setFont().
|
staticinherited |
Set the font of a text printed in the display overlay. To print a text you may use displayCharString().
I | : Image associated to the display window. |
fontname | : The expected font name. |
Definition at line 1247 of file vpDisplay_rgba.cpp.
|
protectedinherited |
Set the down scaling factor either in auto mode or set manually.
Definition at line 259 of file vpDisplay.cpp.
References vpDisplay::computeAutoScale(), vpDisplay::SCALE_1, vpDisplay::SCALE_10, vpDisplay::SCALE_2, vpDisplay::SCALE_3, vpDisplay::SCALE_4, vpDisplay::SCALE_5, vpDisplay::SCALE_6, vpDisplay::SCALE_7, vpDisplay::SCALE_8, vpDisplay::SCALE_9, vpDisplay::SCALE_AUTO, vpDisplay::SCALE_DEFAULT, and vpDisplay::setDownScalingFactor().
Referenced by vpDisplayWin32::init(), vpDisplayX::init(), init(), vpDisplayOpenCV::init(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
protected |
Set the window title.
title | : Window title. |
Definition at line 852 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, vpDisplay::m_title, and vpDisplayException::notInitializedError.
|
staticinherited |
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 1265 of file vpDisplay_uchar.cpp.
|
staticinherited |
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 1256 of file vpDisplay_rgba.cpp.
|
protected |
Set the window position in the screen.
win_x,win_y | : Position of the upper-left window's border in the screen. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 873 of file vpDisplayGTK.cpp.
References vpDisplay::m_displayHasBeenInitialized, and vpDisplayException::notInitializedError.
|
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 1280 of file vpDisplay_uchar.cpp.
|
staticinherited |
Set the window position in the screen.
I | : Image associated to the display window. |
winx,winy | : Position of the upper-left window's border in the screen. |
vpDisplayException::notInitializedError | : If the video device is not initialized. |
Definition at line 1271 of file vpDisplay_rgba.cpp.
|
protectedinherited |
display has been initialized
Definition at line 210 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayWin32::closeDisplay(), vpDisplayX::closeDisplay(), closeDisplay(), vpDisplayOpenCV::closeDisplay(), vpDisplayX::displayArrow(), displayArrow(), vpDisplayOpenCV::displayArrow(), vpDisplayX::displayCharString(), displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplayX::displayCircle(), displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayX::displayCross(), displayCross(), vpDisplayOpenCV::displayCross(), vpDisplayX::displayDotLine(), displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayX::displayImage(), displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImageROI(), displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayLine(), displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayX::displayPoint(), displayPoint(), vpDisplayOpenCV::displayPoint(), vpDisplayX::displayRectangle(), displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::flushDisplay(), flushDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayX::flushDisplayROI(), flushDisplayROI(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayX::getClick(), getClick(), vpDisplayOpenCV::getClick(), vpDisplayX::getClickUp(), getClickUp(), vpDisplayOpenCV::getClickUp(), vpDisplayX::getImage(), getImage(), vpDisplayX::getKeyboardEvent(), getKeyboardEvent(), vpDisplayOpenCV::getKeyboardEvent(), vpDisplayX::getPointerMotionEvent(), getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplayX::getPointerPosition(), getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), getScreenSize(), vpDisplayWin32::init(), vpDisplayX::init(), init(), vpDisplayOpenCV::init(), vpDisplay::setDownScalingFactor(), vpDisplayX::setFont(), setTitle(), vpDisplayX::setTitle(), setWindowPosition(), vpDisplayX::setWindowPosition(), vpDisplayOpenCV::setWindowPosition(), and vpDisplay::~vpDisplay().
|
protectedinherited |
Definition at line 216 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayX::displayImage(), displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::getImage(), getImage(), vpDisplayX::init(), init(), and vpDisplayOpenCV::init().
|
protectedinherited |
Definition at line 218 of file vpDisplay.h.
Referenced by vpDisplayX::displayCharString(), displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplayX::displayCircle(), displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayX::displayDotLine(), displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayX::displayImage(), displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImageROI(), displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayLine(), displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayWin32::displayPoint(), vpDisplayX::displayPoint(), displayPoint(), vpDisplayOpenCV::displayPoint(), vpDisplayX::displayRectangle(), displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::flushDisplayROI(), vpDisplayWin32::getClick(), vpDisplayX::getClick(), getClick(), vpDisplayOpenCV::getClick(), vpDisplayWin32::getClickUp(), vpDisplayX::getClickUp(), getClickUp(), vpDisplayOpenCV::getClickUp(), vpDisplayWin32::getPointerMotionEvent(), vpDisplayX::getPointerMotionEvent(), getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplayWin32::getPointerPosition(), vpDisplayX::getPointerPosition(), getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplayWin32::init(), vpDisplayX::init(), init(), vpDisplayOpenCV::init(), and vpDisplay::setDownScalingFactor().
|
protectedinherited |
Definition at line 219 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), vpDisplayX::init(), init(), vpDisplayOpenCV::init(), and vpDisplay::setDownScalingFactor().
|
protectedinherited |
Definition at line 217 of file vpDisplay.h.
Referenced by vpDisplayOpenCV::closeDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayWin32::init(), vpDisplayX::init(), init(), vpDisplayOpenCV::init(), setTitle(), vpDisplayX::setTitle(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
protectedinherited |
Definition at line 215 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayX::displayImage(), displayImage(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::getImage(), getImage(), vpDisplayX::init(), init(), and vpDisplayOpenCV::init().
|
protectedinherited |
display position
Definition at line 212 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), vpDisplayX::init(), init(), vpDisplayOpenCV::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
protectedinherited |
display position
Definition at line 214 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), vpDisplayX::init(), init(), vpDisplayOpenCV::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().