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 ;
329 virtual void setFont(
const char *font) =0;
334 virtual void setTitle(
const char *title) =0;
342 virtual void setWindowPosition(
int winx,
int winy) = 0 ;
352 virtual void closeDisplay() =0;
363 const char *title=NULL) =0 ;
374 const char *title=NULL) =0 ;
383 virtual void init(
unsigned int width,
unsigned int height,
385 const char *title=NULL) =0;
413 virtual void displayImageROI(
const vpImage<vpRGBa> &I,
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height) =0 ;
420 virtual void flushDisplay() =0;
426 virtual void flushDisplayROI(
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height) =0;
453 virtual bool getClick(
bool blocking=
true) =0;
471 bool blocking=
true) =0;
492 bool blocking=
true) =0 ;
517 bool blocking=
true) =0;
534 virtual bool getKeyboardEvent(
bool blocking=
true) =0;
554 virtual bool getKeyboardEvent(
char *
string,
bool blocking=
true) =0;
565 virtual bool getPointerMotionEvent (
vpImagePoint &ip) =0;
583 inline unsigned int getWidth()
const {
return width ; }
588 inline unsigned int getHeight()
const {
return height ; }
596 const char *windowtitle);
606 unsigned int w=4,
unsigned int h=2,
607 unsigned int thickness=1) ;
609 int i1,
int j1,
int i2,
int j2,
611 unsigned int w=4,
unsigned int h=2,
612 unsigned int thickness=1) ;
617 int i,
int j,
const char *
string,
623 unsigned int thickness=1);
625 int i,
int j,
unsigned int radius,
628 unsigned int thickness=1);
632 unsigned int thickness=1) ;
634 int i,
int j,
unsigned int size,
636 unsigned int thickness=1) ;
641 unsigned int thickness=1) ;
643 int i1,
int j1,
int i2,
int j2,
645 unsigned int thickness=1) ;
649 double size,
const vpColor &color,
650 unsigned int thickness=1) ;
654 double size,
const vpColor &color) ;
659 unsigned int thickness=1) ;
661 int i1,
int j1,
int i2,
int j2,
663 unsigned int thickness=1) ;
672 unsigned int width,
unsigned int height,
673 const vpColor &color,
bool fill =
false,
674 unsigned int thickness=1);
678 const vpColor &color,
bool fill =
false,
679 unsigned int thickness=1);
682 const vpColor &color,
bool fill =
false,
683 unsigned int thickness=1);
687 unsigned int width,
unsigned int height,
689 unsigned int thickness=1);
692 unsigned int width,
unsigned int height,
693 const vpColor &color,
bool fill =
false,
694 unsigned int thickness=1);
696 unsigned int i,
unsigned int j,
float angle,
697 unsigned int width,
unsigned int height,
699 unsigned int thickness=1);
710 bool blocking=
true) ;
714 bool blocking=
true) ;
720 char *
string,
bool blocking=
true);
730 static void setTitle(
const vpImage<vpRGBa> &I,
const char *windowtitle);
731 static void setWindowPosition(
const vpImage<vpRGBa> &I,
int winx,
int winy);
741 unsigned int w=4,
unsigned int h=2,
742 unsigned int thickness=1) ;
744 int i1,
int j1,
int i2,
int j2,
746 unsigned int w=4,
unsigned int h=2,
747 unsigned int thickness=1) ;
752 int i,
int j,
const char *
string,
758 unsigned int thickness=1);
760 int i,
int j,
unsigned int radius,
763 unsigned int thickness=1);
767 unsigned int thickness=1) ;
769 int i,
int j,
unsigned int size,
771 unsigned int thickness=1) ;
776 unsigned int thickness=1) ;
778 int i1,
int j1,
int i2,
int j2,
780 unsigned int thickness=1) ;
784 double size,
const vpColor &color,
785 unsigned int thickness=1) ;
789 double size,
const vpColor &color) ;
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);
845 bool blocking=
true) ;
849 bool blocking=
true) ;
855 char *
string,
bool blocking=
true);
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