217 void setScale(
vpScaleType scaleType,
unsigned int width,
unsigned int height);
226 unsigned int computeAutoScale(
unsigned int width,
unsigned int height);
236 inline unsigned int getHeight()
const {
return m_height; }
241 inline unsigned int getWidth()
const {
return m_width; }
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;
334 unsigned int thickness = 1) = 0;
343 unsigned int thickness = 1) = 0;
352 unsigned int thickness = 1) = 0;
381 unsigned int height) = 0;
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;
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;
593 virtual unsigned int getScreenHeight() = 0;
598 virtual void getScreenSize(
unsigned int &width,
unsigned int &height) = 0;
602 virtual unsigned int getScreenWidth() = 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;
724 unsigned int thickness = 1);
727 unsigned int thickness = 1);
735 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
737 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
739 bool fill =
false,
unsigned int thickness = 1);
741 const vpColor &color,
unsigned int thickness = 1);
743 unsigned int thickness = 1);
745 const vpColor &color,
unsigned int thickness = 1);
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);
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);
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);
765 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
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);
773 unsigned int thickness = 1);
775 unsigned int thickness = 1);
777 const vpColor &color,
unsigned int thickness = 1,
bool closed =
true);
779 unsigned int height,
const vpColor &color,
bool fill =
false,
780 unsigned int thickness = 1);
783 unsigned int thickness = 1);
785 bool fill =
false,
unsigned int thickness = 1);
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);
805 bool blocking =
true);
808 bool blocking =
true);
810 bool blocking =
true);
833 unsigned int thickness = 1);
834 static void displayArrow(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
836 unsigned int thickness = 1);
838 double size,
const vpColor &color,
unsigned int thickness);
841 static void displayCharString(
const vpImage<vpRGBa> &I,
int i,
int j,
const char *
string,
const vpColor &color);
843 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
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);
849 unsigned int thickness = 1);
851 unsigned int thickness = 1);
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);
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);
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);
872 const vpColor &color,
unsigned int thickness = 1,
bool segment =
true);
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);
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);
885 unsigned int height,
const vpColor &color,
bool fill =
false,
886 unsigned int thickness = 1);
888 const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
890 bool fill =
false,
unsigned int thickness = 1);
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);
900 static void displayText(
const vpImage<vpRGBa> &I,
int i,
int j,
const std::string &s,
const vpColor &color);
908 bool blocking =
true);
911 bool blocking =
true);
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);
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);