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>
201 unsigned int w=4,
unsigned int h=2,
202 unsigned int thickness=1) =0;
214 virtual void displayCharString(
const vpImagePoint &ip,
const char *text,
225 virtual void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
228 unsigned int thickness=1) =0;
236 virtual void displayCross(
const vpImagePoint &ip,
unsigned int size,
238 unsigned int thickness=1) =0;
248 unsigned int thickness=1) =0;
258 unsigned int thickness=1) =0;
280 virtual void displayRectangle(
const vpImagePoint &topLeft,
281 unsigned int width,
unsigned int height,
282 const vpColor &color,
bool fill =
false,
283 unsigned int thickness=1)=0 ;
297 virtual void displayRectangle(
const vpImagePoint &topLeft,
299 const vpColor &color,
bool fill =
false,
300 unsigned int thickness=1 )=0;
314 virtual void displayRectangle(
const vpRect &rectangle,
315 const vpColor &color,
bool fill =
false,
316 unsigned int thickness=1)=0 ;
329 virtual void closeDisplay() =0;
357 virtual void displayImageROI(
const vpImage<vpRGBa> &I,
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height) =0 ;
364 virtual void flushDisplay() =0;
370 virtual void flushDisplayROI(
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height) =0;
390 virtual bool getClick(
bool blocking=
true) =0;
408 bool blocking=
true) =0;
429 bool blocking=
true) =0 ;
454 bool blocking=
true) =0;
471 virtual bool getKeyboardEvent(
bool blocking=
true) =0;
491 virtual bool getKeyboardEvent(
char *
string,
bool blocking=
true) =0;
502 virtual bool getPointerMotionEvent (
vpImagePoint &ip) =0;
520 inline unsigned int getHeight()
const {
return height ; }
525 inline unsigned int getWidth()
const {
return width ; }
536 const char *title=NULL) =0 ;
547 const char *title=NULL) =0 ;
556 virtual void init(
unsigned int width,
unsigned int height,
558 const char *title=NULL) =0;
580 virtual void setFont(
const char *font) =0;
585 virtual void setTitle(
const char *title) =0;
593 virtual void setWindowPosition(
int winx,
int winy) = 0 ;
603 unsigned int w=4,
unsigned int h=2,
604 unsigned int thickness=1) ;
606 int i1,
int j1,
int i2,
int j2,
608 unsigned int w=4,
unsigned int h=2,
609 unsigned int thickness=1) ;
613 double size,
const vpColor &color,
614 unsigned int thickness) ;
619 int i,
int j,
const char *
string,
625 unsigned int thickness=1);
627 int i,
int j,
unsigned int radius,
630 unsigned int thickness=1);
634 unsigned int thickness=1) ;
636 int i,
int j,
unsigned int size,
638 unsigned int thickness=1) ;
643 unsigned int thickness=1) ;
645 int i1,
int j1,
int i2,
int j2,
647 unsigned int thickness=1) ;
651 double size,
const vpColor &color,
652 unsigned int thickness=1) ;
657 unsigned int thickness=1) ;
659 int i1,
int j1,
int i2,
int j2,
661 unsigned int thickness=1) ;
670 unsigned int width,
unsigned int height,
671 const vpColor &color,
bool fill =
false,
672 unsigned int thickness=1);
676 const vpColor &color,
bool fill =
false,
677 unsigned int thickness=1);
680 const vpColor &color,
bool fill =
false,
681 unsigned int thickness=1);
685 unsigned int width,
unsigned int height,
687 unsigned int thickness=1);
690 unsigned int width,
unsigned int height,
691 const vpColor &color,
bool fill =
false,
692 unsigned int thickness=1);
694 unsigned int i,
unsigned int j,
float angle,
695 unsigned int width,
unsigned int height,
697 unsigned int thickness=1);
709 bool blocking=
true) ;
713 bool blocking=
true) ;
719 char *
string,
bool blocking=
true);
727 const char *windowtitle);
740 unsigned int w=4,
unsigned int h=2,
741 unsigned int thickness=1) ;
743 int i1,
int j1,
int i2,
int j2,
745 unsigned int w=4,
unsigned int h=2,
746 unsigned int thickness=1) ;
750 double size,
const vpColor &color,
751 unsigned int thickness) ;
756 int i,
int j,
const char *
string,
762 unsigned int thickness=1);
764 int i,
int j,
unsigned int radius,
767 unsigned int thickness=1);
771 unsigned int thickness=1) ;
773 int i,
int j,
unsigned int size,
775 unsigned int thickness=1) ;
780 unsigned int thickness=1) ;
782 int i1,
int j1,
int i2,
int j2,
784 unsigned int thickness=1) ;
788 double size,
const vpColor &color,
789 unsigned int thickness=1) ;
794 unsigned int thickness=1) ;
796 int i1,
int j1,
int i2,
int j2,
798 unsigned int thickness=1) ;
807 unsigned int width,
unsigned int height,
808 const vpColor &color,
bool fill =
false,
809 unsigned int thickness=1);
813 const vpColor &color,
bool fill =
false,
814 unsigned int thickness=1);
817 const vpColor &color,
bool fill =
false,
818 unsigned int thickness=1);
822 unsigned int width,
unsigned int height,
824 unsigned int thickness=1);
827 unsigned int width,
unsigned int height,
828 const vpColor &color,
bool fill =
false,
829 unsigned int thickness=1);
831 unsigned int i,
unsigned int j,
833 unsigned int width,
unsigned int height,
835 unsigned int thickness=1);
846 bool blocking=
true) ;
850 bool blocking=
true) ;
856 char *
string,
bool blocking=
true);
862 static void setTitle(
const vpImage<vpRGBa> &I,
const char *windowtitle);
863 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