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/vpImagePoint.h> 52 #include <visp3/core/vpMouseButton.h> 53 #include <visp3/core/vpRect.h> 221 void setScale(vpScaleType scaleType,
unsigned int width,
unsigned int height);
230 unsigned int computeAutoScale(
unsigned int width,
unsigned int height);
240 inline unsigned int getHeight()
const {
return m_height; }
245 inline unsigned int getWidth()
const {
return m_width; }
264 virtual void setDownScalingFactor(
unsigned int scale);
265 virtual void setDownScalingFactor(vpScaleType scaleType);
268 #ifndef DOXYGEN_SHOULD_SKIP_THIS 279 virtual void closeDisplay() = 0;
291 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1) = 0;
313 virtual void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
314 unsigned int thickness = 1) = 0;
323 unsigned int thickness = 1) = 0;
332 unsigned int thickness = 1) = 0;
341 unsigned int thickness = 1) = 0;
370 unsigned int height) = 0;
372 unsigned int height) = 0;
380 virtual void displayPoint(
const vpImagePoint &ip,
const vpColor &color,
unsigned int thickness = 1) = 0;
396 virtual void displayRectangle(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
397 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1) = 0;
412 bool fill =
false,
unsigned int thickness = 1) = 0;
426 virtual void displayRectangle(
const vpRect &rectangle,
const vpColor &color,
bool fill =
false,
427 unsigned int thickness = 1) = 0;
433 virtual void flushDisplay() = 0;
439 virtual void flushDisplayROI(
const vpImagePoint &iP,
unsigned int width,
unsigned int height) = 0;
458 virtual bool getClick(
bool blocking =
true) = 0;
475 virtual bool getClick(
vpImagePoint &ip,
bool blocking =
true) = 0;
534 virtual bool getKeyboardEvent(
bool blocking =
true) = 0;
554 virtual bool getKeyboardEvent(std::string &key,
bool blocking =
true) = 0;
565 virtual bool getPointerMotionEvent(
vpImagePoint &ip) = 0;
582 virtual unsigned int getScreenHeight() = 0;
587 virtual void getScreenSize(
unsigned int &width,
unsigned int &height) = 0;
591 virtual unsigned int getScreenWidth() = 0;
611 virtual void init(
vpImage<vpRGBa> &I,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
673 virtual void init(
unsigned int width,
unsigned int height,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
688 virtual void setFont(
const std::string &font) = 0;
693 virtual void setTitle(
const std::string &title) = 0;
701 virtual void setWindowPosition(
int x,
int y) = 0;
703 #endif // ifndef DOXYGEN_SHOULD_SKIP_THIS 713 unsigned int thickness = 1);
716 unsigned int thickness = 1);
724 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
726 bool fill =
false,
unsigned int thickness = 1);
728 const vpColor &color,
unsigned int thickness = 1);
730 unsigned int thickness = 1);
732 const vpColor &color,
unsigned int thickness = 1);
734 unsigned int thickness = 1);
736 bool closeTheShape,
const vpColor &color,
unsigned int thickness = 1);
738 bool closeTheShape,
const vpColor &color,
unsigned int thickness = 1);
740 const double &coef2,
const double &coef3,
bool use_normalized_centered_moments,
const vpColor &color,
741 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
743 const double &coef2,
const double &coef3,
const double &smallalpha,
const double &highalpha,
744 bool use_normalized_centered_moments,
const vpColor &color,
unsigned int thickness = 1,
745 bool display_center =
false,
bool display_arc =
false);
750 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
752 unsigned int thickness = 1,
bool segment =
true);
754 bool closeTheShape,
const vpColor &color,
unsigned int thickness = 1);
756 bool closeTheShape,
const vpColor &color,
unsigned int thickness = 1);
758 unsigned int thickness = 1);
760 unsigned int thickness = 1);
762 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
764 unsigned int height,
const vpColor &color,
bool fill =
false,
765 unsigned int thickness = 1);
768 unsigned int thickness = 1);
770 bool fill =
false,
unsigned int thickness = 1);
772 unsigned int width,
unsigned int height,
const vpColor &color,
773 unsigned int thickness = 1);
774 static void displayRectangle(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int width,
unsigned int height,
775 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
776 static void displayRectangle(
const vpImage<unsigned char> &I,
unsigned int i,
unsigned int j,
float angle,
777 unsigned int width,
unsigned int height,
const vpColor &color,
778 unsigned int thickness = 1);
790 bool blocking =
true);
793 bool blocking =
true);
795 bool blocking =
true);
818 unsigned int thickness = 1);
819 static void displayArrow(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
821 unsigned int thickness = 1);
823 double size,
const vpColor &color,
unsigned int thickness);
826 static void displayCharString(
const vpImage<vpRGBa> &I,
int i,
int j,
const char *
string,
const vpColor &color);
828 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
829 static void displayCircle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int radius,
const vpColor &color,
830 bool fill =
false,
unsigned int thickness = 1);
832 unsigned int thickness = 1);
834 unsigned int thickness = 1);
836 const vpColor &color,
unsigned int thickness = 1);
837 static void displayDotLine(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
838 unsigned int thickness = 1);
839 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
840 const vpColor &color,
unsigned int thickness = 1);
841 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
842 const vpColor &color,
unsigned int thickness = 1);
844 const double &coef2,
const double &coef3,
bool use_centered_moments,
const vpColor &color,
845 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
847 const double &coef2,
const double &coef3,
const double &theta1,
const double &theta2,
848 bool use_centered_moments,
const vpColor &color,
unsigned int thickness = 1,
849 bool display_center =
false,
bool display_arc =
false);
854 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
856 unsigned int thickness = 1,
bool segment =
true);
857 static void displayLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
858 const vpColor &color,
unsigned int thickness = 1);
859 static void displayLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
860 const vpColor &color,
unsigned int thickness = 1);
862 unsigned int thickness = 1);
863 static void displayPoint(
const vpImage<vpRGBa> &I,
int i,
int j,
const vpColor &color,
unsigned int thickness = 1);
864 static void displayPolygon(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &vip,
const vpColor &color,
865 unsigned int thickness = 1,
bool closed =
true);
867 unsigned int height,
const vpColor &color,
bool fill =
false,
868 unsigned int thickness = 1);
870 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
872 bool fill =
false,
unsigned int thickness = 1);
874 unsigned int height,
const vpColor &color,
unsigned int thickness = 1);
875 static void displayRectangle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int width,
unsigned int height,
876 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
877 static void displayRectangle(
const vpImage<vpRGBa> &I,
unsigned int i,
unsigned int j,
float angle,
878 unsigned int width,
unsigned int height,
const vpColor &color,
879 unsigned int thickness = 1);
882 static void displayText(
const vpImage<vpRGBa> &I,
int i,
int j,
const std::string &s,
const vpColor &color);
890 bool blocking =
true);
893 bool blocking =
true);
897 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
bool blocking =
true);
898 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I, std::string &key,
bool blocking =
true);
899 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
char *key,
bool blocking =
true);
904 static void setFont(
const vpImage<vpRGBa> &I,
const std::string &font);
905 static void setTitle(
const vpImage<vpRGBa> &I,
const std::string &windowtitle);
906 static void setWindowPosition(
const vpImage<vpRGBa> &I,
int winx,
int winy);
int m_windowYPosition
display position
Class that defines generic functionnalities for display.
Implementation of an homogeneous matrix and operations on such kind of matrices.
Class to define RGB colors available for display functionnalities.
static const vpColor none
bool m_displayHasBeenInitialized
display has been initialized
static const vpColor green
int m_windowXPosition
display position
Generic class defining intrinsic camera parameters.
unsigned int getWidth() const
int getWindowXPosition() const
int getWindowYPosition() const
unsigned int getDownScalingFactor()
Defines a rectangle in the plane.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
static const vpColor white
unsigned int getHeight() const