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;
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);
735 static void displayDotLine(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
736 const vpColor &color,
unsigned int thickness = 1);
737 static void displayDotLine(
const vpImage<unsigned char> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
738 const vpColor &color,
unsigned int thickness = 1);
740 const double &coef2,
const double &coef3,
bool use_normalized_centered_moments,
741 const vpColor &color,
unsigned int thickness = 1,
bool display_center =
false,
742 bool display_arc =
false);
744 const double &coef2,
const double &coef3,
const double &smallalpha,
745 const double &highalpha,
bool use_normalized_centered_moments,
const vpColor &color,
746 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
752 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
754 unsigned int thickness = 1,
bool segment =
true);
755 static void displayLine(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
756 const vpColor &color,
unsigned int thickness = 1);
757 static void displayLine(
const vpImage<unsigned char> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
758 const vpColor &color,
unsigned int thickness = 1);
760 unsigned int thickness = 1);
762 unsigned int thickness = 1);
764 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
766 unsigned int height,
const vpColor &color,
bool fill =
false,
767 unsigned int thickness = 1);
770 unsigned int thickness = 1);
772 bool fill =
false,
unsigned int thickness = 1);
774 unsigned int width,
unsigned int height,
const vpColor &color,
775 unsigned int thickness = 1);
776 static void displayRectangle(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int width,
unsigned int height,
777 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
778 static void displayRectangle(
const vpImage<unsigned char> &I,
unsigned int i,
unsigned int j,
float angle,
779 unsigned int width,
unsigned int height,
const vpColor &color,
780 unsigned int thickness = 1);
792 bool blocking =
true);
795 bool blocking =
true);
797 bool blocking =
true);
820 unsigned int thickness = 1);
821 static void displayArrow(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
823 unsigned int thickness = 1);
825 double size,
const vpColor &color,
unsigned int thickness);
828 static void displayCharString(
const vpImage<vpRGBa> &I,
int i,
int j,
const char *
string,
const vpColor &color);
830 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
831 static void displayCircle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int radius,
const vpColor &color,
832 bool fill =
false,
unsigned int thickness = 1);
834 unsigned int thickness = 1);
836 unsigned int thickness = 1);
838 const vpColor &color,
unsigned int thickness = 1);
839 static void displayDotLine(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
840 unsigned int thickness = 1);
841 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
842 const vpColor &color,
unsigned int thickness = 1);
843 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
844 const vpColor &color,
unsigned int thickness = 1);
846 const double &coef2,
const double &coef3,
bool use_centered_moments,
const vpColor &color,
847 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
849 const double &coef2,
const double &coef3,
const double &theta1,
const double &theta2,
850 bool use_centered_moments,
const vpColor &color,
unsigned int thickness = 1,
851 bool display_center =
false,
bool display_arc =
false);
857 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
859 unsigned int thickness = 1,
bool segment =
true);
860 static void displayLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
861 const vpColor &color,
unsigned int thickness = 1);
862 static void displayLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
863 const vpColor &color,
unsigned int thickness = 1);
865 unsigned int thickness = 1);
866 static void displayPoint(
const vpImage<vpRGBa> &I,
int i,
int j,
const vpColor &color,
unsigned int thickness = 1);
867 static void displayPolygon(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &vip,
const vpColor &color,
868 unsigned int thickness = 1,
bool closed =
true);
870 unsigned int height,
const vpColor &color,
bool fill =
false,
871 unsigned int thickness = 1);
873 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
875 bool fill =
false,
unsigned int thickness = 1);
877 unsigned int height,
const vpColor &color,
unsigned int thickness = 1);
878 static void displayRectangle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int width,
unsigned int height,
879 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
880 static void displayRectangle(
const vpImage<vpRGBa> &I,
unsigned int i,
unsigned int j,
float angle,
881 unsigned int width,
unsigned int height,
const vpColor &color,
882 unsigned int thickness = 1);
885 static void displayText(
const vpImage<vpRGBa> &I,
int i,
int j,
const std::string &s,
const vpColor &color);
893 bool blocking =
true);
896 bool blocking =
true);
900 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
bool blocking =
true);
901 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I, std::string &key,
bool blocking =
true);
902 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
char *key,
bool blocking =
true);
907 static void setFont(
const vpImage<vpRGBa> &I,
const std::string &font);
908 static void setTitle(
const vpImage<vpRGBa> &I,
const std::string &windowtitle);
909 static void setWindowPosition(
const vpImage<vpRGBa> &I,
int winx,
int winy);
Generic class defining intrinsic camera parameters.
Class to define RGB colors available for display functionnalities.
static const vpColor white
static const vpColor black
static const vpColor none
static const vpColor green
Class that defines generic functionnalities 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 point in an image. This class is useful for image processing and stores only ...
Defines a rectangle in the plane.