![]() |
ViSP
2.8.0
|
#include <vpDisplay.h>
Public Member Functions | |
virtual | ~vpDisplay () |
virtual void | clearDisplay (const vpColor &color=vpColor::white)=0 |
virtual void | closeDisplay ()=0 |
virtual void | displayImage (const vpImage< unsigned char > &I)=0 |
virtual void | displayImage (const vpImage< vpRGBa > &I)=0 |
virtual void | displayImageROI (const vpImage< unsigned char > &I, const vpImagePoint &iP, const unsigned int width, const unsigned int height)=0 |
virtual void | displayImageROI (const vpImage< vpRGBa > &I, const vpImagePoint &iP, const unsigned int width, const unsigned int height)=0 |
virtual void | flushDisplay ()=0 |
virtual void | flushDisplayROI (const vpImagePoint &iP, const unsigned int width, const unsigned int height)=0 |
virtual bool | getClick (bool blocking=true)=0 |
virtual bool | getClick (vpImagePoint &ip, bool blocking=true)=0 |
virtual bool | getClick (vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true)=0 |
virtual bool | getClickUp (vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true)=0 |
virtual bool | getKeyboardEvent (bool blocking=true)=0 |
virtual bool | getKeyboardEvent (char *string, bool blocking=true)=0 |
virtual bool | getPointerMotionEvent (vpImagePoint &ip)=0 |
virtual bool | getPointerPosition (vpImagePoint &ip)=0 |
unsigned int | getHeight () const |
unsigned int | getWidth () const |
virtual void | init (vpImage< unsigned char > &I, int x=-1, int y=-1, const char *title=NULL)=0 |
virtual void | init (vpImage< vpRGBa > &I, int x=-1, int y=-1, const char *title=NULL)=0 |
virtual void | init (unsigned int width, unsigned int height, int x=-1, int y=-1, const char *title=NULL)=0 |
bool | isInitialised () |
virtual void | setFont (const char *font)=0 |
virtual void | setTitle (const char *title)=0 |
virtual void | setWindowPosition (int winx, int winy)=0 |
Static Public Member Functions | |
Display functionalities on gray level images. | |
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 | displayFrame (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< unsigned char > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< unsigned char > &I, const vpImagePoint &ip, const vpColor &color) |
static void | displayPoint (const vpImage< unsigned char > &I, int i, int j, const vpColor &color) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, const vpImagePoint ¢er, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, int i, int j, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< unsigned char > &I, unsigned int i, unsigned int j, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayROI (const vpImage< unsigned char > &I, const vpRect &roi) |
static void | flush (const vpImage< unsigned char > &I) |
static void | flushROI (const vpImage< unsigned char > &I, const vpRect &roi) |
static bool | getClick (const vpImage< unsigned char > &I, bool blocking=true) |
static bool | getClick (const vpImage< unsigned char > &I, vpImagePoint &ip, bool blocking=true) |
static bool | getClick (const vpImage< unsigned char > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< unsigned char > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static 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, 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 | setBackground (const vpImage< unsigned char > &I, const vpColor &color) |
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) |
Protected Member Functions | |
vpDisplay () | |
virtual 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)=0 |
virtual void | displayCharString (const vpImagePoint &ip, const char *text, const vpColor &color=vpColor::green)=0 |
virtual void | displayCircle (const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1)=0 |
virtual void | displayCross (const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1)=0 |
virtual void | displayDotLine (const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)=0 |
virtual void | displayLine (const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)=0 |
virtual void | displayPoint (const vpImagePoint &ip, const vpColor &color)=0 |
virtual void | displayRectangle (const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1)=0 |
virtual void | displayRectangle (const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1)=0 |
virtual void | displayRectangle (const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1)=0 |
Protected Attributes | |
bool | displayHasBeenInitialized |
int | windowXPosition |
int | windowYPosition |
char * | title |
char * | font |
unsigned int | width |
unsigned int | height |
Display functionalities on color images. | |
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 | displayFrame (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< vpRGBa > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1) |
static void | displayLine (const vpImage< vpRGBa > &I, int i1, int j1, int i2, int j2, const vpColor &color, unsigned int thickness=1) |
static void | displayPoint (const vpImage< vpRGBa > &I, const vpImagePoint &ip, const vpColor &color) |
static void | displayPoint (const vpImage< vpRGBa > &I, int i, int j, const vpColor &color) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint &topLeft, const vpImagePoint &bottomRight, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpRect &rectangle, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, const vpImagePoint ¢er, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, int i, int j, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1) |
static void | displayRectangle (const vpImage< vpRGBa > &I, unsigned int i, unsigned int j, float angle, unsigned int width, unsigned int height, const vpColor &color, unsigned int thickness=1) |
static void | displayROI (const vpImage< vpRGBa > &I, const vpRect &roi) |
static void | flush (const vpImage< vpRGBa > &I) |
static void | flushROI (const vpImage< vpRGBa > &I, const vpRect &roi) |
static bool | getClick (const vpImage< vpRGBa > &I, bool blocking=true) |
static bool | getClick (const vpImage< vpRGBa > &I, vpImagePoint &ip, bool blocking=true) |
static bool | getClick (const vpImage< vpRGBa > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static bool | getClickUp (const vpImage< vpRGBa > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true) |
static 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, 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 | setBackground (const vpImage< vpRGBa > &I, const vpColor &color) |
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) |
Class that defines generic functionnalities for display.
The Tutorial: Getting started is a good starting point to know how to use this class to display an image in a window.
The example below shows how to use this class.
Other examples are available in tutorial-image-viewer.cpp and tutorial-viewer.cpp.
Definition at line 175 of file vpDisplay.h.
|
protected |
Default constructor.
Definition at line 60 of file vpDisplay.cpp.
References displayHasBeenInitialized, title, windowXPosition, and windowYPosition.
|
virtual |
Destructor that desallocates memory.
Definition at line 72 of file vpDisplay.cpp.
References displayHasBeenInitialized, and title.
|
pure virtual |
Set the window backgroud to color.
color | : Background color. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by setBackground().
|
static |
Close the display attached to I.
Definition at line 2028 of file vpDisplay.cpp.
References closeDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
Close the display attached to I.
Definition at line 2369 of file vpDisplay.cpp.
References closeDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
|
pure virtual |
Close the window.
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by close().
|
static |
Display the gray level image I (8bits).
I | : Image to display. |
Definition at line 203 of file vpDisplay.cpp.
References vpImage< Type >::display, 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 2166 of file vpDisplay.cpp.
References vpImage< Type >::display, displayImage(), and vpERROR_TRACE.
|
protectedpure virtual |
Display an arrow from image point ip1 to image point ip2.
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpMeLine::computeRhoTheta(), displayArrow(), vpProjectionDisplay::displayCamera(), displayFrame(), vpMeTracker::initTracking(), and vpMeTracker::track().
|
static |
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 597 of file vpDisplay.cpp.
References vpImage< Type >::display, displayArrow(), and vpERROR_TRACE.
|
static |
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 658 of file vpDisplay.cpp.
References vpImage< Type >::display, displayArrow(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 627 of file vpDisplay.cpp.
References vpImage< Type >::display, displayArrow(), and vpERROR_TRACE.
|
static |
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 696 of file vpDisplay.cpp.
References vpImage< Type >::display, displayArrow(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 506 of file vpDisplay.cpp.
References vpMeterPixelConversion::convertPoint(), displayLine(), and vpPoint::setWorldCoordinates().
Referenced by vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
static |
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 558 of file vpDisplay.cpp.
References vpMeterPixelConversion::convertPoint(), displayLine(), and vpPoint::setWorldCoordinates().
|
protectedpure virtual |
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpKltOpencv::display(), displayCharString(), vpMbtKltPolygon::displayPrimitive(), and vpMbTracker::initClick().
|
static |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 737 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCharString(), and vpERROR_TRACE.
|
static |
Display a string at the image point (i,j) location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 803 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCharString(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
Display a string at the image point ip location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
ip | : Upper left image point location of the string in the display. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 770 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCharString(), and vpERROR_TRACE.
|
static |
Display a string at the image point (i,j) location.
To select the font used to display the string, use setFont().
I | : Image associated to the display. |
i,j | : Upper left image point location of the string in the display. |
string | : String to display in overlay. |
color | : String color. |
Definition at line 840 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCharString(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedpure virtual |
Display a circle.
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpFeatureSegment::display(), vpProjectionDisplay::display(), displayCircle(), and vpDot2::trackAndDisplay().
|
static |
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 872 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCircle(), and vpERROR_TRACE.
|
static |
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 934 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCircle(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 902 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCircle(), and vpERROR_TRACE.
|
static |
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 972 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCircle(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedpure virtual |
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), vpDot2::display(), vpPlanarObjectDetector::display(), vpDot::display(), vpKeyPointSurf::display(), vpMeNurbs::display(), vpMeLine::display(), vpMeSite::display(), vpFernClassifier::display(), vpKltOpencv::display(), vpMeEllipse::display(), displayCross(), vpCalibration::displayData(), vpCalibration::displayGrid(), vpPose::displayModel(), vpFeatureDisplay::displayPoint(), vpMbtKltPolygon::displayPrimitive(), vpMeSite::getQueryList(), vpPolygon::initClick(), vpMbTracker::initClick(), vpMeEllipse::initTracking(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpMeLine::sample(), vpMeLine::seekExtremities(), vpMeNurbs::seekExtremities(), vpDot2::track(), and vpDot::track().
|
static |
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 1003 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCross(), and vpERROR_TRACE.
|
static |
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 1056 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCross(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 1030 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCross(), and vpERROR_TRACE.
|
static |
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 1087 of file vpDisplay.cpp.
References vpImage< Type >::display, displayCross(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedpure virtual |
Display a dashed line from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Dashed line thickness. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by displayDotLine(), and vpDot2::trackAndDisplay().
|
static |
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 1116 of file vpDisplay.cpp.
References vpImage< Type >::display, displayDotLine(), and vpERROR_TRACE.
|
static |
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 1171 of file vpDisplay.cpp.
References vpImage< Type >::display, displayDotLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 1143 of file vpDisplay.cpp.
References vpImage< Type >::display, displayDotLine(), and vpERROR_TRACE.
|
static |
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 1203 of file vpDisplay.cpp.
References vpImage< Type >::display, displayDotLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 368 of file vpDisplay.cpp.
References vpColor::blue, vpMeterPixelConversion::convertPoint(), 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().
|
static |
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 438 of file vpDisplay.cpp.
References vpColor::blue, vpMeterPixelConversion::convertPoint(), displayArrow(), vpColor::green, vpColor::none, vpTracker::p, vpColor::red, vpPoint::setWorldCoordinates(), and vpForwardProjection::track().
|
pure virtual |
Display the gray level image I (8bits).
I | : Image to display. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by display().
Display the color image I in RGBa format (32bits).
I | : Image to display. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
|
pure virtual |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by displayROI().
|
pure virtual |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
|
protectedpure virtual |
Display a line from image point ip1 to image point ip2.
ip1,ip2 | : Initial and final image points. |
color | : Line color. |
thickness | : Line thickness. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpFeatureSegment::display(), vpMbtDistanceLine::display(), vpMbtDistanceCylinder::display(), vpPolygon::display(), vpPlanarObjectDetector::display(), vpMeLine::display(), vpMbKltTracker::display(), vpMeEllipse::display(), vpWireFrameSimulator::display_scene(), displayCamera(), vpFeatureDisplay::displayEllipse(), vpFeatureDisplay::displayLine(), displayLine(), displayRectangle(), vpWireFrameSimulator::displayTrajectory(), vpWireFrameSimulator::getExternalImage(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
static |
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 1235 of file vpDisplay.cpp.
References vpImage< Type >::display, displayLine(), and vpERROR_TRACE.
|
static |
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 1265 of file vpDisplay.cpp.
References vpImage< Type >::display, displayLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 1333 of file vpDisplay.cpp.
References vpImage< Type >::display, displayLine(), and vpERROR_TRACE.
|
static |
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 1300 of file vpDisplay.cpp.
References vpImage< Type >::display, displayLine(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedpure virtual |
Display a point at the image point ip location.
ip | : Point location. |
color | : Point color. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpDot2::display(), vpDot::display(), displayPoint(), vpWireFrameSimulator::displayTrajectory(), vpWireFrameSimulator::getExternalImage(), vpMbTracker::initClick(), vpMeNurbs::seekExtremitiesCanny(), and vpMeSite::track().
|
static |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
Definition at line 1360 of file vpDisplay.cpp.
References vpImage< Type >::display, displayPoint(), and vpERROR_TRACE.
|
static |
Display a point at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Point location. |
color | : Point color. |
Definition at line 1407 of file vpDisplay.cpp.
References vpImage< Type >::display, displayPoint(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
Display a point at the image point ip location.
I | : The image associated to the display. |
ip | : Point location. |
color | : Point color. |
Definition at line 1383 of file vpDisplay.cpp.
References vpImage< Type >::display, displayPoint(), and vpERROR_TRACE.
|
static |
Display a point at the image point (i,j) location.
I | : The image associated to the display. |
i,j | : Point location. |
color | : Point color. |
Definition at line 1435 of file vpDisplay.cpp.
References vpImage< Type >::display, displayPoint(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
protectedpure virtual |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
topLeft | : Top-left corner of the rectangle. |
width,height | : Rectangle size. |
color | : Rectangle color. |
fill | : When set to true fill the rectangle. |
thickness | : Thickness of the four lines used to display the rectangle. This parameter is only useful when fill is set to false. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by displayRectangle(), vpDot2::searchDotsInArea(), and vpMeNurbs::seekExtremitiesCanny().
|
protectedpure virtual |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
|
protectedpure virtual |
Display a rectangle with topLeft as the top-left corner and width and height the rectangle size.
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
|
static |
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 1471 of file vpDisplay.cpp.
References vpImage< Type >::display, displayRectangle(), and vpERROR_TRACE.
|
static |
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 1508 of file vpDisplay.cpp.
References vpImage< Type >::display, displayRectangle(), and vpERROR_TRACE.
|
static |
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 1543 of file vpDisplay.cpp.
References vpImage< Type >::display, displayRectangle(), and vpERROR_TRACE.
|
static |
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 1579 of file vpDisplay.cpp.
References vpImage< Type >::display, displayLine(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
static |
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 1797 of file vpDisplay.cpp.
References vpImage< Type >::display, displayRectangle(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 1837 of file vpDisplay.cpp.
References vpImage< Type >::display, displayLine(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
static |
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 1634 of file vpDisplay.cpp.
References vpImage< Type >::display, displayRectangle(), and vpERROR_TRACE.
|
static |
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 1669 of file vpDisplay.cpp.
References vpImage< Type >::display, displayRectangle(), and vpERROR_TRACE.
|
static |
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 1704 of file vpDisplay.cpp.
References vpImage< Type >::display, displayRectangle(), and vpERROR_TRACE.
|
static |
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 1740 of file vpDisplay.cpp.
References vpImage< Type >::display, displayLine(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
|
static |
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 1889 of file vpDisplay.cpp.
References vpImage< Type >::display, displayRectangle(), vpImagePoint::set_i(), vpImagePoint::set_j(), and vpERROR_TRACE.
|
static |
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 1928 of file vpDisplay.cpp.
References vpImage< Type >::display, displayLine(), vpImagePoint::set_u(), vpImagePoint::set_v(), and vpERROR_TRACE.
Definition at line 222 of file vpDisplay.cpp.
References vpException::dimensionError, vpImage< Type >::display, displayImageROI(), vpImage< Type >::getHeight(), vpRect::getHeight(), vpRect::getLeft(), vpRect::getTop(), vpImage< Type >::getWidth(), vpRect::getWidth(), and vpERROR_TRACE.
Definition at line 2184 of file vpDisplay.cpp.
References vpException::dimensionError, vpImage< Type >::display, displayImageROI(), vpImage< Type >::getHeight(), vpRect::getHeight(), vpRect::getLeft(), vpRect::getTop(), vpImage< Type >::getWidth(), vpRect::getWidth(), and vpERROR_TRACE.
|
static |
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 1991 of file vpDisplay.cpp.
References vpImage< Type >::display, flushDisplay(), and vpERROR_TRACE.
Referenced by vpMbtDistanceCylinder::computeInteractionMatrixError(), vpDot2::defineDots(), 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 2332 of file vpDisplay.cpp.
References vpImage< Type >::display, flushDisplay(), and vpERROR_TRACE.
|
pure virtual |
Flushes the display. It's necessary to use this function to see the results of any drawing.
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by flush().
|
pure virtual |
Flushes the display. It's necessary to use this function to see the results of any drawing.
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by flushROI().
Definition at line 2008 of file vpDisplay.cpp.
References vpImage< Type >::display, flushDisplayROI(), vpRect::getHeight(), vpRect::getTopLeft(), vpRect::getWidth(), and vpERROR_TRACE.
Definition at line 2349 of file vpDisplay.cpp.
References vpImage< Type >::display, flushDisplayROI(), vpRect::getHeight(), vpRect::getTopLeft(), vpRect::getWidth(), and vpERROR_TRACE.
|
pure virtual |
Wait for a click from one of the mouse button.
blocking | [in] : Blocking behavior.
|
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpDot2::defineDots(), vpPlot::getPixelValue(), vpPolygon::initClick(), vpMbTracker::initClick(), vpMeEllipse::initTracking(), vpMeNurbs::initTracking(), vpMeLine::initTracking(), vpDot2::initTracking(), vpDot::initTracking(), and vpWireFrameSimulator::navigation().
|
pure virtual |
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
|
pure virtual |
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] :
|
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
|
static |
Wait for a click from one of the mouse button.
I | [in] : The displayed image. |
blocking | [in] : Blocking behavior.
|
Definition at line 2404 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
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 2441 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
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 2480 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
Wait for a click.
I | [in] : The displayed image. |
blocking | [in] :
|
Definition at line 2822 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
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 2858 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
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 2896 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
pure virtual |
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpWireFrameSimulator::navigation().
|
static |
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 2522 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
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 2937 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
inline |
|
static |
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 321 of file vpDisplay.cpp.
References vpImageConvert::convert(), vpImage< Type >::display, and vpERROR_TRACE.
Referenced by getImage().
Get the window pixmap and put it in vpRGBa image.
The code below shows how to use this method.
Definition at line 2283 of file vpDisplay.cpp.
References vpImage< Type >::display, getImage(), and vpERROR_TRACE.
|
pure virtual |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
Implemented in vpDisplayGTK, vpDisplayOpenCV, vpDisplayX, and vpDisplayWin32.
|
pure virtual |
Get a keyboard event.
blocking | [in] : Blocking behavior.
|
string | [out]: If possible, an ISO Latin-1 character corresponding to the keyboard key. |
Implemented in vpDisplayGTK, vpDisplayOpenCV, vpDisplayX, and vpDisplayWin32.
|
static |
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 2627 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
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 2734 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
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 3042 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
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 3147 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
pure virtual |
Get the coordinates of the mouse pointer.
ip | [out] : The coordinates of the mouse pointer. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Implemented in vpDisplayGTK, vpDisplayOpenCV, vpDisplayX, and vpDisplayWin32.
|
static |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 2762 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 3175 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
pure virtual |
Get the coordinates of the mouse pointer.
ip | [out] : The coordinates of the mouse pointer. |
vpDisplayException::notInitializedError | : If the display was not initialized. |
Implemented in vpDisplayGTK, vpDisplayOpenCV, vpDisplayX, and vpDisplayWin32.
Referenced by vpPlot::getPixelValue(), vpPlot::navigate(), and vpWireFrameSimulator::navigation().
|
static |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 2791 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
static |
Get the coordinates of the mouse pointer.
I | [in] : The displayed image. |
ip | [out] : The coordinates of the mouse pointer. |
Definition at line 3202 of file vpDisplay.cpp.
References vpImage< Type >::display, and vpERROR_TRACE.
|
inline |
|
pure 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. |
Implemented in vpDisplayGTK, vpDisplayOpenCV, vpDisplayX, and vpDisplayWin32.
Referenced by vpPlot::init().
|
pure 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. |
Implemented in vpDisplayGTK, vpDisplayOpenCV, vpDisplayX, and vpDisplayWin32.
|
pure virtual |
Initialize the display size, position and title.
width,height | : Width and height of the window. |
x,y | : The window is set at position x,y (column index, row index). |
title | : Window title. |
Implemented in vpDisplayGTK, vpDisplayOpenCV, vpDisplayX, and vpDisplayWin32.
|
inline |
Check if the display has been initialised
Definition at line 565 of file vpDisplay.h.
Referenced by vpPlot::setFont().
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 175 of file vpDisplay.cpp.
References clearDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
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 2138 of file vpDisplay.cpp.
References clearDisplay(), vpImage< Type >::display, and vpERROR_TRACE.
|
pure virtual |
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. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by vpPlot::setFont(), and setFont().
|
static |
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 96 of file vpDisplay.cpp.
References vpImage< Type >::display, 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 2111 of file vpDisplay.cpp.
References vpImage< Type >::display, setFont(), and vpERROR_TRACE.
|
pure virtual |
Set the window title.
title | : Window title. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by setTitle().
|
static |
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 119 of file vpDisplay.cpp.
References vpImage< Type >::display, setTitle(), and vpERROR_TRACE.
Set the windows title.
I | : Image associated to the display window. |
windowtitle | : Window title. |
Definition at line 2053 of file vpDisplay.cpp.
References vpImage< Type >::display, setTitle(), and vpERROR_TRACE.
|
pure virtual |
Set the window position in the screen.
winx,winy | : Position of the upper-left window's border in the screen. |
Implemented in vpDisplayGTK, vpDisplayX, vpDisplayOpenCV, and vpDisplayWin32.
Referenced by setWindowPosition().
|
static |
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 147 of file vpDisplay.cpp.
References vpImage< Type >::display, setWindowPosition(), and vpERROR_TRACE.
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 2080 of file vpDisplay.cpp.
References vpImage< Type >::display, setWindowPosition(), and vpERROR_TRACE.
|
protected |
display has been initialized
Definition at line 179 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayWin32::closeDisplay(), vpDisplayOpenCV::closeDisplay(), vpDisplayX::closeDisplay(), vpDisplayGTK::closeDisplay(), vpDisplayOpenCV::displayArrow(), vpDisplayX::displayArrow(), vpDisplayGTK::displayArrow(), vpDisplayOpenCV::displayCharString(), vpDisplayX::displayCharString(), vpDisplayGTK::displayCharString(), vpDisplayOpenCV::displayCircle(), vpDisplayX::displayCircle(), vpDisplayGTK::displayCircle(), vpDisplayOpenCV::displayCross(), vpDisplayX::displayCross(), vpDisplayGTK::displayCross(), vpDisplayOpenCV::displayDotLine(), vpDisplayX::displayDotLine(), vpDisplayGTK::displayDotLine(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayGTK::displayImageROI(), vpDisplayOpenCV::displayLine(), vpDisplayX::displayLine(), vpDisplayGTK::displayLine(), vpDisplayOpenCV::displayPoint(), vpDisplayX::displayPoint(), vpDisplayGTK::displayPoint(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayOpenCV::flushDisplay(), vpDisplayX::flushDisplay(), vpDisplayGTK::flushDisplay(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayX::flushDisplayROI(), vpDisplayGTK::flushDisplayROI(), vpDisplayOpenCV::getClick(), vpDisplayX::getClick(), vpDisplayGTK::getClick(), vpDisplayOpenCV::getClickUp(), vpDisplayX::getClickUp(), vpDisplayGTK::getClickUp(), vpDisplayX::getImage(), vpDisplayGTK::getImage(), vpDisplayX::getKeyboardEvent(), vpDisplayOpenCV::getKeyboardEvent(), vpDisplayGTK::getKeyboardEvent(), vpDisplayX::getPointerMotionEvent(), vpDisplayOpenCV::getPointerMotionEvent(), vpDisplayGTK::getPointerMotionEvent(), vpDisplayX::getPointerPosition(), vpDisplayOpenCV::getPointerPosition(), vpDisplayGTK::getPointerPosition(), vpDisplayWin32::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayX::setFont(), vpDisplayX::setTitle(), vpDisplayGTK::setTitle(), vpDisplayOpenCV::setWindowPosition(), vpDisplayX::setWindowPosition(), vpDisplayGTK::setWindowPosition(), vpDisplay(), and ~vpDisplay().
|
protected |
Definition at line 186 of file vpDisplay.h.
|
protected |
Definition at line 188 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayGTK::displayImageROI(), vpDisplayWin32::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayX::flushDisplayROI(), vpDisplayOpenCV::getHeight(), vpDisplayX::getHeight(), vpDisplayGTK::getHeight(), vpDisplayGTK::getImage(), vpDisplayWin32::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), and vpDisplayGTK::init().
|
protected |
display title
Definition at line 185 of file vpDisplay.h.
Referenced by vpDisplayOpenCV::closeDisplay(), vpDisplayOpenCV::flushDisplay(), vpDisplayOpenCV::flushDisplayROI(), vpDisplayWin32::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplay(), vpDisplayD3D::vpDisplayD3D(), vpDisplayGDI::vpDisplayGDI(), and ~vpDisplay().
|
protected |
Definition at line 187 of file vpDisplay.h.
Referenced by vpDisplayX::clearDisplay(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayGTK::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayGTK::displayImageROI(), vpDisplayWin32::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayX::flushDisplayROI(), vpDisplayGTK::getImage(), vpDisplayOpenCV::getWidth(), vpDisplayX::getWidth(), vpDisplayGTK::getWidth(), vpDisplayWin32::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), and vpDisplayGTK::init().
|
protected |
display position
Definition at line 181 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplay(), vpDisplayD3D::vpDisplayD3D(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().
|
protected |
display position
Definition at line 183 of file vpDisplay.h.
Referenced by vpDisplayWin32::init(), vpDisplayX::init(), vpDisplayOpenCV::init(), vpDisplayGTK::init(), vpDisplayOpenCV::setWindowPosition(), vpDisplay(), vpDisplayD3D::vpDisplayD3D(), vpDisplayGDI::vpDisplayGDI(), vpDisplayGTK::vpDisplayGTK(), vpDisplayOpenCV::vpDisplayOpenCV(), and vpDisplayX::vpDisplayX().