48 #include <visp/vpImage.h>
51 #include <visp/vpColor.h>
52 #include <visp/vpMouseButton.h>
53 #include <visp/vpRGBa.h>
54 #include <visp/vpHomogeneousMatrix.h>
55 #include <visp/vpCameraParameters.h>
56 #include <visp/vpRect.h>
57 #include <visp/vpImagePoint.h>
193 unsigned int w=4,
unsigned int h=2,
194 unsigned int thickness=1) =0;
206 virtual void displayCharString(
const vpImagePoint &ip,
const char *text,
217 virtual void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
220 unsigned int thickness=1) =0;
228 virtual void displayCross(
const vpImagePoint &ip,
unsigned int size,
230 unsigned int thickness=1) =0;
240 unsigned int thickness=1) =0;
250 unsigned int thickness=1) =0;
272 virtual void displayRectangle(
const vpImagePoint &topLeft,
273 unsigned int width,
unsigned int height,
274 const vpColor &color,
bool fill =
false,
275 unsigned int thickness=1)=0 ;
289 virtual void displayRectangle(
const vpImagePoint &topLeft,
291 const vpColor &color,
bool fill =
false,
292 unsigned int thickness=1 )=0;
306 virtual void displayRectangle(
const vpRect &rectangle,
307 const vpColor &color,
bool fill =
false,
308 unsigned int thickness=1)=0 ;
324 virtual void closeDisplay() =0;
352 virtual void displayImageROI(
const vpImage<vpRGBa> &I,
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height) =0 ;
359 virtual void flushDisplay() =0;
365 virtual void flushDisplayROI(
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height) =0;
385 virtual bool getClick(
bool blocking=
true) =0;
403 bool blocking=
true) =0;
424 bool blocking=
true) =0 ;
449 bool blocking=
true) =0;
466 virtual bool getKeyboardEvent(
bool blocking=
true) =0;
486 virtual bool getKeyboardEvent(
char *
string,
bool blocking=
true) =0;
497 virtual bool getPointerMotionEvent (
vpImagePoint &ip) =0;
515 inline unsigned int getHeight()
const {
return height ; }
520 inline unsigned int getWidth()
const {
return width ; }
531 const char *title=NULL) =0 ;
542 const char *title=NULL) =0 ;
551 virtual void init(
unsigned int width,
unsigned int height,
553 const char *title=NULL) =0;
575 virtual void setFont(
const char *font) =0;
580 virtual void setTitle(
const char *title) =0;
588 virtual void setWindowPosition(
int winx,
int winy) = 0 ;
598 unsigned int w=4,
unsigned int h=2,
599 unsigned int thickness=1) ;
601 int i1,
int j1,
int i2,
int j2,
603 unsigned int w=4,
unsigned int h=2,
604 unsigned int thickness=1) ;
608 double size,
const vpColor &color) ;
613 int i,
int j,
const char *
string,
619 unsigned int thickness=1);
621 int i,
int j,
unsigned int radius,
624 unsigned int thickness=1);
628 unsigned int thickness=1) ;
630 int i,
int j,
unsigned int size,
632 unsigned int thickness=1) ;
637 unsigned int thickness=1) ;
639 int i1,
int j1,
int i2,
int j2,
641 unsigned int thickness=1) ;
645 double size,
const vpColor &color,
646 unsigned int thickness=1) ;
651 unsigned int thickness=1) ;
653 int i1,
int j1,
int i2,
int j2,
655 unsigned int thickness=1) ;
664 unsigned int width,
unsigned int height,
665 const vpColor &color,
bool fill =
false,
666 unsigned int thickness=1);
670 const vpColor &color,
bool fill =
false,
671 unsigned int thickness=1);
674 const vpColor &color,
bool fill =
false,
675 unsigned int thickness=1);
679 unsigned int width,
unsigned int height,
681 unsigned int thickness=1);
684 unsigned int width,
unsigned int height,
685 const vpColor &color,
bool fill =
false,
686 unsigned int thickness=1);
688 unsigned int i,
unsigned int j,
float angle,
689 unsigned int width,
unsigned int height,
691 unsigned int thickness=1);
703 bool blocking=
true) ;
707 bool blocking=
true) ;
713 char *
string,
bool blocking=
true);
721 const char *windowtitle);
734 unsigned int w=4,
unsigned int h=2,
735 unsigned int thickness=1) ;
737 int i1,
int j1,
int i2,
int j2,
739 unsigned int w=4,
unsigned int h=2,
740 unsigned int thickness=1) ;
744 double size,
const vpColor &color) ;
749 int i,
int j,
const char *
string,
755 unsigned int thickness=1);
757 int i,
int j,
unsigned int radius,
760 unsigned int thickness=1);
764 unsigned int thickness=1) ;
766 int i,
int j,
unsigned int size,
768 unsigned int thickness=1) ;
773 unsigned int thickness=1) ;
775 int i1,
int j1,
int i2,
int j2,
777 unsigned int thickness=1) ;
781 double size,
const vpColor &color,
782 unsigned int thickness=1) ;
787 unsigned int thickness=1) ;
789 int i1,
int j1,
int i2,
int j2,
791 unsigned int thickness=1) ;
800 unsigned int width,
unsigned int height,
801 const vpColor &color,
bool fill =
false,
802 unsigned int thickness=1);
806 const vpColor &color,
bool fill =
false,
807 unsigned int thickness=1);
810 const vpColor &color,
bool fill =
false,
811 unsigned int thickness=1);
815 unsigned int width,
unsigned int height,
817 unsigned int thickness=1);
820 unsigned int width,
unsigned int height,
821 const vpColor &color,
bool fill =
false,
822 unsigned int thickness=1);
824 unsigned int i,
unsigned int j,
826 unsigned int width,
unsigned int height,
828 unsigned int thickness=1);
839 bool blocking=
true) ;
843 bool blocking=
true) ;
849 char *
string,
bool blocking=
true);
855 static void setTitle(
const vpImage<vpRGBa> &I,
const char *windowtitle);
856 static void setWindowPosition(
const vpImage<vpRGBa> &I,
int winx,
int winy);
Class that defines generic functionnalities for display.
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
unsigned int getWidth() const
Class to define colors available for display functionnalities.
char * title
display title
bool displayHasBeenInitialized
display has been initialized
static const vpColor green
Generic class defining intrinsic camera parameters.
int windowXPosition
display position
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 ...
int windowYPosition
display position
static const vpColor white
unsigned int getHeight() const