46 #include <visp3/core/vpImage.h>
47 #include <visp3/core/vpColor.h>
48 #include <visp3/core/vpMouseButton.h>
49 #include <visp3/core/vpHomogeneousMatrix.h>
50 #include <visp3/core/vpCameraParameters.h>
51 #include <visp3/core/vpRect.h>
52 #include <visp3/core/vpImagePoint.h>
201 void setScale(
vpScaleType scaleType,
unsigned int width,
unsigned int height);
210 unsigned int computeAutoScale(
unsigned int width,
unsigned int height);
219 inline unsigned int getHeight()
const {
return m_height ; }
224 inline unsigned int getWidth()
const {
return m_width ; }
243 virtual void setDownScalingFactor(
unsigned int scale);
244 void setDownScalingFactor(vpScaleType scaleType);
247 #ifndef DOXYGEN_SHOULD_SKIP_THIS
258 virtual void closeDisplay() =0;
291 virtual void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1) =0;
299 virtual void displayCross(
const vpImagePoint &ip,
unsigned int size,
const vpColor &color,
unsigned int thickness=1) =0;
344 virtual void displayImageROI(
const vpImage<vpRGBa> &I,
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height) =0 ;
352 virtual void displayPoint(
const vpImagePoint &ip,
const vpColor &color,
unsigned int thickness=1) =0;
368 virtual void displayRectangle(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
369 const vpColor &color,
bool fill =
false,
unsigned int thickness=1)=0 ;
384 const vpColor &color,
bool fill =
false,
unsigned int thickness=1 )=0;
398 virtual void displayRectangle(
const vpRect &rectangle,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1)=0 ;
404 virtual void flushDisplay() =0;
410 virtual void flushDisplayROI(
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height) =0;
430 virtual bool getClick(
bool blocking=
true) =0;
447 virtual bool getClick(
vpImagePoint &ip,
bool blocking=
true) =0;
506 virtual bool getKeyboardEvent(
bool blocking=
true) =0;
526 virtual bool getKeyboardEvent(std::string &key,
bool blocking=
true) =0;
537 virtual bool getPointerMotionEvent (
vpImagePoint &ip) =0;
554 virtual unsigned int getScreenHeight() =0;
559 virtual void getScreenSize(
unsigned int &width,
unsigned int &height) =0;
563 virtual unsigned int getScreenWidth() =0;
583 virtual void init(
vpImage<vpRGBa> &I,
int x=-1,
int y=-1,
const std::string &title=
"") =0 ;
645 virtual void init(
unsigned int width,
unsigned int height,
int x=-1,
int y=-1,
const std::string &title=
"") =0;
660 virtual void setFont(
const std::string &font) =0;
665 virtual void setTitle(
const std::string &title) =0;
673 virtual void setWindowPosition(
int x,
int y) = 0 ;
675 #endif // ifndef DOXYGEN_SHOULD_SKIP_THIS
690 static void displayCircle(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int radius,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1);
694 static void displayDotLine(
const vpImage<unsigned char> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
unsigned int thickness=1) ;
695 static void displayEllipse(
const vpImage<unsigned char> &I,
const vpImagePoint ¢er,
const double &coef1,
const double &coef2,
const double &coef3,
bool use_centered_moments,
const vpColor &color,
unsigned int thickness=1);
696 static void displayEllipse(
const vpImage<unsigned char> &I,
const vpImagePoint ¢er,
const double &coef1,
const double &coef2,
const double &coef3,
const double &theta1,
const double &theta2,
bool use_centered_moments,
const vpColor &color,
unsigned int thickness=1);
702 static void displayPolygon(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &vip,
const vpColor &color,
unsigned int thickness=1) ;
707 static void displayRectangle(
const vpImage<unsigned char> &I,
int i,
int j,
unsigned int width,
unsigned int height,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1);
708 static void displayRectangle(
const vpImage<unsigned char> &I,
unsigned int i,
unsigned int j,
float angle,
unsigned int width,
unsigned int height,
const vpColor &color,
unsigned int thickness=1);
743 static void displayArrow(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color=
vpColor::white,
unsigned int w=4,
unsigned int h=2,
unsigned int thickness=1) ;
746 static void displayCharString(
const vpImage<vpRGBa> &I,
int i,
int j,
const char *
string,
const vpColor &color) ;
747 static void displayCircle(
const vpImage<vpRGBa> &I,
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1);
748 static void displayCircle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int radius,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1);
750 static void displayCross(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int size,
const vpColor &color,
unsigned int thickness=1) ;
752 static void displayDotLine(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
unsigned int thickness=1) ;
753 static void displayEllipse(
const vpImage<vpRGBa> &I,
const vpImagePoint ¢er,
const double &coef1,
const double &coef2,
const double &coef3,
bool use_centered_moments,
const vpColor &color,
unsigned int thickness=1);
754 static void displayEllipse(
const vpImage<vpRGBa> &I,
const vpImagePoint ¢er,
const double &coef1,
const double &coef2,
const double &coef3,
const double &theta1,
const double &theta2,
bool use_centered_moments,
const vpColor &color,
unsigned int thickness=1);
757 static void displayLine(
const vpImage<vpRGBa> &I,
int i1,
int j1,
int i2,
int j2,
const vpColor &color,
unsigned int thickness=1) ;
759 static void displayPoint(
const vpImage<vpRGBa> &I,
int i,
int j,
const vpColor &color,
unsigned int thickness=1) ;
760 static void displayPolygon(
const vpImage<vpRGBa> &I,
const std::vector<vpImagePoint> &vip,
const vpColor &color,
unsigned int thickness=1) ;
761 static void displayRectangle(
const vpImage<vpRGBa> &I,
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1);
763 static void displayRectangle(
const vpImage<vpRGBa> &I,
const vpRect &rectangle,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1);
764 static void displayRectangle(
const vpImage<vpRGBa> &I,
const vpImagePoint ¢er,
float angle,
unsigned int width,
unsigned int height,
const vpColor &color,
unsigned int thickness=1);
765 static void displayRectangle(
const vpImage<vpRGBa> &I,
int i,
int j,
unsigned int width,
unsigned int height,
const vpColor &color,
bool fill =
false,
unsigned int thickness=1);
766 static void displayRectangle(
const vpImage<vpRGBa> &I,
unsigned int i,
unsigned int j,
float angle,
unsigned int width,
unsigned int height,
const vpColor &color,
unsigned int thickness=1);
769 static void displayText(
const vpImage<vpRGBa> &I,
int i,
int j,
const std::string &s,
const vpColor &color) ;
782 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
bool blocking=
true);
783 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I, std::string &key,
bool blocking=
true);
784 static bool getKeyboardEvent(
const vpImage<vpRGBa> &I,
char *key,
bool blocking=
true);
789 static void setFont(
const vpImage<vpRGBa> &I,
const std::string &font);
790 static void setTitle(
const vpImage<vpRGBa> &I,
const std::string &windowtitle);
791 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.
unsigned int getWidth() const
Class to define 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.
int getWindowYPosition() const
vpScaleType
Values that could be applied to a display to down scale the size of the display.
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
int getWindowXPosition() const