47 #include <visp3/core/vpCameraParameters.h>
48 #include <visp3/core/vpColor.h>
49 #include <visp3/core/vpHomogeneousMatrix.h>
50 #include <visp3/core/vpImage.h>
51 #include <visp3/core/vpImageCircle.h>
52 #include <visp3/core/vpImagePoint.h>
53 #include <visp3/core/vpMouseButton.h>
54 #include <visp3/core/vpPolygon.h>
55 #include <visp3/core/vpRect.h>
216 unsigned int computeAutoScale(
unsigned int width,
unsigned int height);
226 inline unsigned int getHeight()
const {
return m_height; }
231 inline unsigned int getWidth()
const {
return m_width; }
250 virtual void setDownScalingFactor(
unsigned int scale);
251 virtual void setDownScalingFactor(vpScaleType scaleType);
254 #ifndef DOXYGEN_SHOULD_SKIP_THIS
265 virtual void closeDisplay() = 0;
277 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1) = 0;
287 inline virtual void displayCircle(
const vpImageCircle &circle,
const vpColor &color,
bool fill =
false,
288 unsigned int thickness = 1)
290 this->displayCircle(circle.
getCenter(),
static_cast<unsigned int>(circle.
getRadius()), color, fill, thickness);
302 virtual void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
303 unsigned int thickness = 1) = 0;
312 unsigned int thickness = 1) = 0;
321 unsigned int thickness = 1) = 0;
330 unsigned int thickness = 1) = 0;
351 unsigned int height) = 0;
353 unsigned int height) = 0;
361 virtual void displayPoint(
const vpImagePoint &ip,
const vpColor &color,
unsigned int thickness = 1) = 0;
376 virtual void displayRectangle(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
377 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1) = 0;
391 bool fill =
false,
unsigned int thickness = 1) = 0;
403 virtual void displayRectangle(
const vpRect &rectangle,
const vpColor &color,
bool fill =
false,
404 unsigned int thickness = 1) = 0;
423 virtual void flushDisplay() = 0;
429 virtual void flushDisplayROI(
const vpImagePoint &iP,
unsigned int width,
unsigned int height) = 0;
448 virtual bool getClick(
bool blocking =
true) = 0;
465 virtual bool getClick(
vpImagePoint &ip,
bool blocking =
true) = 0;
524 virtual bool getKeyboardEvent(
bool blocking =
true) = 0;
543 virtual bool getKeyboardEvent(std::string &key,
bool blocking =
true) = 0;
554 virtual bool getPointerMotionEvent(
vpImagePoint &ip) = 0;
571 virtual unsigned int getScreenHeight() = 0;
576 virtual void getScreenSize(
unsigned int &width,
unsigned int &height) = 0;
580 virtual unsigned int getScreenWidth() = 0;
600 virtual void init(
vpImage<vpRGBa> &I,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
666 virtual void init(
unsigned int width,
unsigned int height,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
681 virtual void setFont(
const std::string &font) = 0;
686 virtual void setTitle(
const std::string &title) = 0;
694 virtual void setWindowPosition(
int x,
int y) = 0;
706 unsigned int thickness = 1);
709 unsigned int thickness = 1);
713 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
715 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
717 bool fill =
false,
unsigned int thickness = 1);
719 const vpColor &color,
unsigned int thickness = 1);
721 unsigned int thickness = 1);
723 const vpColor &color,
unsigned int thickness = 1);
725 unsigned int thickness = 1);
726 static void displayDotLine(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
727 const vpColor &color,
unsigned int thickness = 1);
728 static void displayDotLine(
const vpImage<unsigned char> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
729 const vpColor &color,
unsigned int thickness = 1);
731 const double &coef2,
const double &coef3,
bool use_normalized_centered_moments,
732 const vpColor &color,
unsigned int thickness = 1,
bool display_center =
false,
733 bool display_arc =
false);
735 const double &coef2,
const double &coef3,
const double &smallalpha,
736 const double &highalpha,
bool use_normalized_centered_moments,
const vpColor &color,
737 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
743 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
745 unsigned int thickness = 1,
bool segment =
true);
746 static void displayLine(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
747 const vpColor &color,
unsigned int thickness = 1);
748 static void displayLine(
const vpImage<unsigned char> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
749 const vpColor &color,
unsigned int thickness = 1);
751 unsigned int thickness = 1);
753 unsigned int thickness = 1);
755 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
757 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
759 unsigned int height,
const vpColor &color,
bool fill =
false,
760 unsigned int thickness = 1);
763 unsigned int thickness = 1);
765 bool fill =
false,
unsigned int thickness = 1);
767 unsigned int width,
unsigned int height,
const vpColor &color,
768 unsigned int thickness = 1);
769 static void displayRectangle(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int width,
unsigned int height,
770 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
771 static void displayRectangle(
const vpImage<unsigned char> &I,
unsigned int i,
unsigned int j,
float angle,
772 unsigned int width,
unsigned int height,
const vpColor &color,
773 unsigned int thickness = 1);
785 bool blocking =
true);
788 bool blocking =
true);
790 bool blocking =
true);
813 unsigned int thickness = 1);
814 static void displayArrow(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
816 unsigned int thickness = 1);
818 double size,
const vpColor &color,
unsigned int thickness);
820 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
822 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
823 static void displayCircle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int radius,
const vpColor &color,
824 bool fill =
false,
unsigned int thickness = 1);
826 unsigned int thickness = 1);
828 unsigned int thickness = 1);
830 const vpColor &color,
unsigned int thickness = 1);
831 static void displayDotLine(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
832 unsigned int thickness = 1);
833 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
834 const vpColor &color,
unsigned int thickness = 1);
835 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
836 const vpColor &color,
unsigned int thickness = 1);
838 const double &coef2,
const double &coef3,
bool use_centered_moments,
const vpColor &color,
839 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
841 const double &coef2,
const double &coef3,
const double &theta1,
const double &theta2,
842 bool use_centered_moments,
const vpColor &color,
unsigned int thickness = 1,
843 bool display_center =
false,
bool display_arc =
false);
849 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
851 unsigned int thickness = 1,
bool segment =
true);
852 static void displayLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
853 const vpColor &color,
unsigned int thickness = 1);
854 static void displayLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
855 const vpColor &color,
unsigned int thickness = 1);
857 unsigned int thickness = 1);
858 static void displayPoint(
const vpImage<vpRGBa> &I,
int i,
int j,
const vpColor &color,
unsigned int thickness = 1);
859 static void displayPolygon(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &vip,
const vpColor &color,
860 unsigned int thickness = 1,
bool closed =
true);
862 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
864 unsigned int height,
const vpColor &color,
bool fill =
false,
865 unsigned int thickness = 1);
867 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
869 bool fill =
false,
unsigned int thickness = 1);
871 unsigned int height,
const vpColor &color,
unsigned int thickness = 1);
872 static void displayRectangle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int width,
unsigned int height,
873 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
874 static void displayRectangle(
const vpImage<vpRGBa> &I,
unsigned int i,
unsigned int j,
float angle,
875 unsigned int width,
unsigned int height,
const vpColor &color,
876 unsigned int thickness = 1);
879 static void displayText(
const vpImage<vpRGBa> &I,
int i,
int j,
const std::string &s,
const vpColor &color);
887 bool blocking =
true);
890 bool blocking =
true);
894 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
bool blocking =
true);
895 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I, std::string &key,
bool blocking =
true);
896 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
char *key,
bool blocking =
true);
901 static void setFont(
const vpImage<vpRGBa> &I,
const std::string &font);
902 static void setTitle(
const vpImage<vpRGBa> &I,
const std::string &windowtitle);
903 static void setWindowPosition(
const vpImage<vpRGBa> &I,
int winx,
int winy);
906 #if defined(VISP_BUILD_DEPRECATED_FUNCTIONS)
913 VP_DEPRECATED
static void displayCharString(
const vpImage<unsigned char> &I,
int i,
int j,
const char *
string,
917 VP_DEPRECATED
static void displayCharString(
const vpImage<vpRGBa> &I,
int i,
int j,
const char *
string,
935 void setScale(
vpScaleType scaleType,
unsigned int width,
unsigned int height);
Generic class defining intrinsic camera parameters.
Class to define RGB colors available for display functionalities.
static const vpColor white
static const vpColor none
static const vpColor black
static const vpColor green
Class that defines generic functionalities for display.
int getWindowXPosition() const
int m_windowXPosition
display position
int m_windowYPosition
display position
int getWindowYPosition() const
unsigned int getHeight() const
bool m_displayHasBeenInitialized
display has been initialized
unsigned int getDownScalingFactor()
unsigned int getWidth() const
Implementation of an homogeneous matrix and operations on such kind of matrices.
Class that defines a 2D circle in an image.
vpImagePoint getCenter() const
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Defines a generic 2D polygon.
Defines a rectangle in the plane.