260 virtual void setDownScalingFactor(
unsigned int scale);
261 virtual void setDownScalingFactor(vpScaleType scaleType);
264#ifndef DOXYGEN_SHOULD_SKIP_THIS
275 virtual void closeDisplay() = 0;
287 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1) = 0;
309 inline virtual void displayCircle(
const vpImageCircle &circle,
const vpColor &color,
bool fill =
false,
310 unsigned int thickness = 1)
312 this->displayCircle(circle.
getCenter(),
static_cast<unsigned int>(circle.
getRadius()), color, fill, thickness);
324 virtual void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
325 unsigned int thickness = 1) = 0;
333 virtual void displayCross(
const vpImagePoint &ip,
unsigned int size,
const vpColor &color,
334 unsigned int thickness = 1) = 0;
342 virtual void displayDotLine(
const vpImagePoint &ip1,
const vpImagePoint &ip2,
const vpColor &color,
343 unsigned int thickness = 1) = 0;
351 virtual void displayLine(
const vpImagePoint &ip1,
const vpImagePoint &ip2,
const vpColor &color,
352 unsigned int thickness = 1) = 0;
365 virtual void displayImage(
const vpImage<unsigned char> &I) = 0;
378 virtual void displayImage(
const vpImage<vpRGBa> &I) = 0;
380 virtual void displayImageROI(
const vpImage<unsigned char> &I,
const vpImagePoint &iP,
unsigned int width,
381 unsigned int height) = 0;
382 virtual void displayImageROI(
const vpImage<vpRGBa> &I,
const vpImagePoint &iP,
unsigned int width,
383 unsigned int height) = 0;
391 virtual void displayPoint(
const vpImagePoint &ip,
const vpColor &color,
unsigned int thickness = 1) = 0;
407 virtual void displayRectangle(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
408 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1) = 0;
422 virtual void displayRectangle(
const vpImagePoint &topLeft,
const vpImagePoint &bottomRight,
const vpColor &color,
423 bool fill =
false,
unsigned int thickness = 1) = 0;
437 virtual void displayRectangle(
const vpRect &rectangle,
const vpColor &color,
bool fill =
false,
438 unsigned int thickness = 1) = 0;
444 virtual void flushDisplay() = 0;
450 virtual void flushDisplayROI(
const vpImagePoint &iP,
unsigned int width,
unsigned int height) = 0;
469 virtual bool getClick(
bool blocking =
true) = 0;
486 virtual bool getClick(vpImagePoint &ip,
bool blocking =
true) = 0;
545 virtual bool getKeyboardEvent(
bool blocking =
true) = 0;
565 virtual bool getKeyboardEvent(std::string &key,
bool blocking =
true) = 0;
576 virtual bool getPointerMotionEvent(vpImagePoint &ip) = 0;
588 virtual bool getPointerPosition(vpImagePoint &ip) = 0;
593 virtual unsigned int getScreenHeight() = 0;
598 virtual void getScreenSize(
unsigned int &width,
unsigned int &height) = 0;
602 virtual unsigned int getScreenWidth() = 0;
612 virtual void init(vpImage<unsigned char> &I,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
622 virtual void init(vpImage<vpRGBa> &I,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
684 virtual void init(
unsigned int width,
unsigned int height,
int x = -1,
int y = -1,
const std::string &title =
"") = 0;
699 virtual void setFont(
const std::string &font) = 0;
704 virtual void setTitle(
const std::string &title) = 0;
712 virtual void setWindowPosition(
int x,
int y) = 0;
720 static void close(vpImage<unsigned char> &I);
721 static void display(
const vpImage<unsigned char> &I);
722 static void displayArrow(
const vpImage<unsigned char> &I,
const vpImagePoint &ip1,
const vpImagePoint &ip2,
723 const vpColor &color =
vpColor::white,
unsigned int w = 4,
unsigned int h = 2,
724 unsigned int thickness = 1);
725 static void displayArrow(
const vpImage<unsigned char> &I,
int i1,
int j1,
int i2,
int j2,
726 const vpColor &color =
vpColor::white,
unsigned int w = 4,
unsigned int h = 2,
727 unsigned int thickness = 1);
728 static void displayCamera(
const vpImage<unsigned char> &I,
const vpHomogeneousMatrix &cMo,
729 const vpCameraParameters &cam,
double size,
const vpColor &color,
unsigned int thickness);
730 static void displayCharString(
const vpImage<unsigned char> &I,
const vpImagePoint &ip,
const char *
string,
731 const vpColor &color);
732 static void displayCharString(
const vpImage<unsigned char> &I,
int i,
int j,
const char *
string,
733 const vpColor &color);
734 static void displayCircle(
const vpImage<unsigned char> &I,
const vpImageCircle &circle,
735 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
736 static void displayCircle(
const vpImage<unsigned char> &I,
const vpImagePoint ¢er,
unsigned int radius,
737 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
738 static void displayCircle(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int radius,
const vpColor &color,
739 bool fill =
false,
unsigned int thickness = 1);
740 static void displayCross(
const vpImage<unsigned char> &I,
const vpImagePoint &ip,
unsigned int size,
741 const vpColor &color,
unsigned int thickness = 1);
742 static void displayCross(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int size,
const vpColor &color,
743 unsigned int thickness = 1);
744 static void displayDotLine(
const vpImage<unsigned char> &I,
const vpImagePoint &ip1,
const vpImagePoint &ip2,
745 const vpColor &color,
unsigned int thickness = 1);
746 static void displayDotLine(
const vpImage<unsigned char> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
747 unsigned int thickness = 1);
748 static void displayDotLine(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
749 const vpColor &color,
unsigned int thickness = 1);
750 static void displayDotLine(
const vpImage<unsigned char> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
751 const vpColor &color,
unsigned int thickness = 1);
752 static void displayEllipse(
const vpImage<unsigned char> &I,
const vpImagePoint ¢er,
const double &coef1,
753 const double &coef2,
const double &coef3,
bool use_normalized_centered_moments,
754 const vpColor &color,
unsigned int thickness = 1,
bool display_center =
false,
755 bool display_arc =
false);
756 static void displayEllipse(
const vpImage<unsigned char> &I,
const vpImagePoint ¢er,
const double &coef1,
757 const double &coef2,
const double &coef3,
const double &smallalpha,
758 const double &highalpha,
bool use_normalized_centered_moments,
const vpColor &color,
759 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
760 static void displayFrame(
const vpImage<unsigned char> &I,
const vpHomogeneousMatrix &cMo,
761 const vpCameraParameters &cam,
double size,
const vpColor &color =
vpColor::none,
762 unsigned int thickness = 1,
const vpImagePoint &offset = vpImagePoint(0, 0),
763 const std::string &frameName =
"",
const vpColor &textColor =
vpColor::black,
const vpImagePoint &textOffset = vpImagePoint(15, 15));
764 static void displayLine(
const vpImage<unsigned char> &I,
const vpImagePoint &ip1,
const vpImagePoint &ip2,
765 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
766 static void displayLine(
const vpImage<unsigned char> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
767 unsigned int thickness = 1,
bool segment =
true);
768 static void displayLine(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
769 const vpColor &color,
unsigned int thickness = 1);
770 static void displayLine(
const vpImage<unsigned char> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
771 const vpColor &color,
unsigned int thickness = 1);
772 static void displayPoint(
const vpImage<unsigned char> &I,
const vpImagePoint &ip,
const vpColor &color,
773 unsigned int thickness = 1);
774 static void displayPoint(
const vpImage<unsigned char> &I,
int i,
int j,
const vpColor &color,
775 unsigned int thickness = 1);
776 static void displayPolygon(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &vip,
777 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
778 static void displayRectangle(
const vpImage<unsigned char> &I,
const vpImagePoint &topLeft,
unsigned int width,
779 unsigned int height,
const vpColor &color,
bool fill =
false,
780 unsigned int thickness = 1);
781 static void displayRectangle(
const vpImage<unsigned char> &I,
const vpImagePoint &topLeft,
782 const vpImagePoint &bottomRight,
const vpColor &color,
bool fill =
false,
783 unsigned int thickness = 1);
784 static void displayRectangle(
const vpImage<unsigned char> &I,
const vpRect &rectangle,
const vpColor &color,
785 bool fill =
false,
unsigned int thickness = 1);
786 static void displayRectangle(
const vpImage<unsigned char> &I,
const vpImagePoint ¢er,
float angle,
787 unsigned int width,
unsigned int height,
const vpColor &color,
788 unsigned int thickness = 1);
789 static void displayRectangle(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int width,
unsigned int height,
790 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
791 static void displayRectangle(
const vpImage<unsigned char> &I,
unsigned int i,
unsigned int j,
float angle,
792 unsigned int width,
unsigned int height,
const vpColor &color,
793 unsigned int thickness = 1);
794 static void displayROI(
const vpImage<unsigned char> &I,
const vpRect &roi);
795 static void displayText(
const vpImage<unsigned char> &I,
const vpImagePoint &ip,
const std::string &s,
796 const vpColor &color);
797 static void displayText(
const vpImage<unsigned char> &I,
int i,
int j,
const std::string &s,
const vpColor &color);
799 static void flush(
const vpImage<unsigned char> &I);
800 static void flushROI(
const vpImage<unsigned char> &I,
const vpRect &roi);
802 static bool getClick(
const vpImage<unsigned char> &I,
bool blocking =
true);
803 static bool getClick(
const vpImage<unsigned char> &I, vpImagePoint &ip,
bool blocking =
true);
805 bool blocking =
true);
808 bool blocking =
true);
810 bool blocking =
true);
811 static unsigned int getDownScalingFactor(
const vpImage<unsigned char> &I);
812 static void getImage(
const vpImage<unsigned char> &Is, vpImage<vpRGBa> &Id);
813 static bool getKeyboardEvent(
const vpImage<unsigned char> &I,
bool blocking =
true);
814 static bool getKeyboardEvent(
const vpImage<unsigned char> &I, std::string &key,
bool blocking =
true);
815 static bool getKeyboardEvent(
const vpImage<unsigned char> &I,
char *key,
bool blocking =
true);
816 static bool getPointerMotionEvent(
const vpImage<unsigned char> &I, vpImagePoint &ip);
817 static bool getPointerPosition(
const vpImage<unsigned char> &I, vpImagePoint &ip);
819 static void setBackground(
const vpImage<unsigned char> &I,
const vpColor &color);
820 static void setFont(
const vpImage<unsigned char> &I,
const std::string &font);
821 static void setTitle(
const vpImage<unsigned char> &I,
const std::string &windowtitle);
822 static void setWindowPosition(
const vpImage<unsigned char> &I,
int winx,
int winy);
829 static void close(vpImage<vpRGBa> &I);
830 static void display(
const vpImage<vpRGBa> &I);
831 static void displayArrow(
const vpImage<vpRGBa> &I,
const vpImagePoint &ip1,
const vpImagePoint &ip2,
832 const vpColor &color =
vpColor::white,
unsigned int w = 4,
unsigned int h = 2,
833 unsigned int thickness = 1);
834 static void displayArrow(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
835 const vpColor &color =
vpColor::white,
unsigned int w = 4,
unsigned int h = 2,
836 unsigned int thickness = 1);
837 static void displayCamera(
const vpImage<vpRGBa> &I,
const vpHomogeneousMatrix &cMo,
const vpCameraParameters &cam,
838 double size,
const vpColor &color,
unsigned int thickness);
839 static void displayCharString(
const vpImage<vpRGBa> &I,
const vpImagePoint &ip,
const char *
string,
840 const vpColor &color);
841 static void displayCharString(
const vpImage<vpRGBa> &I,
int i,
int j,
const char *
string,
const vpColor &color);
842 static void displayCircle(
const vpImage<vpRGBa> &I,
const vpImageCircle &circle,
843 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
844 static void displayCircle(
const vpImage<vpRGBa> &I,
const vpImagePoint ¢er,
unsigned int radius,
845 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
846 static void displayCircle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int radius,
const vpColor &color,
847 bool fill =
false,
unsigned int thickness = 1);
848 static void displayCross(
const vpImage<vpRGBa> &I,
const vpImagePoint &ip,
unsigned int size,
const vpColor &color,
849 unsigned int thickness = 1);
850 static void displayCross(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int size,
const vpColor &color,
851 unsigned int thickness = 1);
852 static void displayDotLine(
const vpImage<vpRGBa> &I,
const vpImagePoint &ip1,
const vpImagePoint &ip2,
853 const vpColor &color,
unsigned int thickness = 1);
854 static void displayDotLine(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
855 unsigned int thickness = 1);
856 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
857 const vpColor &color,
unsigned int thickness = 1);
858 static void displayDotLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
859 const vpColor &color,
unsigned int thickness = 1);
860 static void displayEllipse(
const vpImage<vpRGBa> &I,
const vpImagePoint ¢er,
const double &coef1,
861 const double &coef2,
const double &coef3,
bool use_centered_moments,
const vpColor &color,
862 unsigned int thickness = 1,
bool display_center =
false,
bool display_arc =
false);
863 static void displayEllipse(
const vpImage<vpRGBa> &I,
const vpImagePoint ¢er,
const double &coef1,
864 const double &coef2,
const double &coef3,
const double &theta1,
const double &theta2,
865 bool use_centered_moments,
const vpColor &color,
unsigned int thickness = 1,
866 bool display_center =
false,
bool display_arc =
false);
867 static void displayFrame(
const vpImage<vpRGBa> &I,
const vpHomogeneousMatrix &cMo,
const vpCameraParameters &cam,
868 double size,
const vpColor &color =
vpColor::none,
unsigned int thickness = 1,
869 const vpImagePoint &offset = vpImagePoint(0, 0),
const std::string &frameName =
"",
870 const vpColor &textColor =
vpColor::black,
const vpImagePoint &textOffset = vpImagePoint(15, 15));
871 static void displayLine(
const vpImage<vpRGBa> &I,
const vpImagePoint &ip1,
const vpImagePoint &ip2,
872 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
873 static void displayLine(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
874 unsigned int thickness = 1,
bool segment =
true);
875 static void displayLine(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &ips,
bool closeTheShape,
876 const vpColor &color,
unsigned int thickness = 1);
877 static void displayLine(
const vpImage<vpRGBa> &I,
const std::list<vpImagePoint> &ips,
bool closeTheShape,
878 const vpColor &color,
unsigned int thickness = 1);
879 static void displayPoint(
const vpImage<vpRGBa> &I,
const vpImagePoint &ip,
const vpColor &color,
880 unsigned int thickness = 1);
881 static void displayPoint(
const vpImage<vpRGBa> &I,
int i,
int j,
const vpColor &color,
unsigned int thickness = 1);
882 static void displayPolygon(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &vip,
const vpColor &color,
883 unsigned int thickness = 1,
bool closed =
true);
884 static void displayRectangle(
const vpImage<vpRGBa> &I,
const vpImagePoint &topLeft,
unsigned int width,
885 unsigned int height,
const vpColor &color,
bool fill =
false,
886 unsigned int thickness = 1);
887 static void displayRectangle(
const vpImage<vpRGBa> &I,
const vpImagePoint &topLeft,
const vpImagePoint &bottomRight,
888 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
889 static void displayRectangle(
const vpImage<vpRGBa> &I,
const vpRect &rectangle,
const vpColor &color,
890 bool fill =
false,
unsigned int thickness = 1);
891 static void displayRectangle(
const vpImage<vpRGBa> &I,
const vpImagePoint ¢er,
float angle,
unsigned int width,
892 unsigned int height,
const vpColor &color,
unsigned int thickness = 1);
893 static void displayRectangle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int width,
unsigned int height,
894 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
895 static void displayRectangle(
const vpImage<vpRGBa> &I,
unsigned int i,
unsigned int j,
float angle,
896 unsigned int width,
unsigned int height,
const vpColor &color,
897 unsigned int thickness = 1);
898 static void displayROI(
const vpImage<vpRGBa> &I,
const vpRect &roi);
899 static void displayText(
const vpImage<vpRGBa> &I,
const vpImagePoint &ip,
const std::string &s,
const vpColor &color);
900 static void displayText(
const vpImage<vpRGBa> &I,
int i,
int j,
const std::string &s,
const vpColor &color);
902 static void flush(
const vpImage<vpRGBa> &I);
903 static void flushROI(
const vpImage<vpRGBa> &I,
const vpRect &roi);
905 static bool getClick(
const vpImage<vpRGBa> &I,
bool blocking =
true);
906 static bool getClick(
const vpImage<vpRGBa> &I, vpImagePoint &ip,
bool blocking =
true);
908 bool blocking =
true);
911 bool blocking =
true);
913 static unsigned int getDownScalingFactor(
const vpImage<vpRGBa> &I);
914 static void getImage(
const vpImage<vpRGBa> &Is, vpImage<vpRGBa> &Id);
915 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
bool blocking =
true);
916 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I, std::string &key,
bool blocking =
true);
917 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
char *key,
bool blocking =
true);
918 static bool getPointerMotionEvent(
const vpImage<vpRGBa> &I, vpImagePoint &ip);
919 static bool getPointerPosition(
const vpImage<vpRGBa> &I, vpImagePoint &ip);
921 static void setBackground(
const vpImage<vpRGBa> &I,
const vpColor &color);
922 static void setFont(
const vpImage<vpRGBa> &I,
const std::string &font);
923 static void setTitle(
const vpImage<vpRGBa> &I,
const std::string &windowtitle);
924 static void setWindowPosition(
const vpImage<vpRGBa> &I,
int winx,
int winy);
929 virtual void getImage(vpImage<vpRGBa> &I) = 0;