45 #include <visp/vpConfig.h>
46 #include <visp/vpDisplay.h>
52 #include <X11/Xutil.h>
59 #include <visp/vpImage.h>
60 #include <visp/vpRect.h>
165 unsigned long *x_color;
166 unsigned int screen_depth ;
167 unsigned short colortable[256];
171 bool ximage_data_init;
175 vpDisplayX(
int winx,
int winy,
const char *title=NULL) ;
177 const char *title=NULL) ;
179 const char *title=NULL) ;
184 int winx=-1,
int winy=-1,
185 const char *title=NULL) ;
187 int winx=-1,
int winy=-1,
188 const char *title=NULL) ;
190 void init(
unsigned int width,
unsigned int height,
191 int winx=-1,
int winy=-1 ,
192 const char *title=NULL) ;
194 unsigned int getScreenDepth();
195 void getScreenSize(
unsigned int &width,
unsigned int &height);
200 void setFont(
const char *font );
211 unsigned int w=4,
unsigned int h=2,
212 unsigned int thickness=1) ;
220 unsigned int thickness=1);
222 const vpColor &color,
unsigned int thickness=1) ;
225 const vpColor &color,
unsigned int thickness=1) ;
236 const vpColor &color,
unsigned int thickness=1) ;
240 unsigned int width,
unsigned int height,
241 const vpColor &color,
bool fill =
false,
242 unsigned int thickness=1) ;
245 const vpColor &color,
bool fill =
false,
246 unsigned int thickness=1) ;
248 const vpColor &color,
bool fill =
false,
249 unsigned int thickness=1) ;
258 bool blocking=
true) ;
virtual void displayCircle(const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1)=0
virtual void displayImage(const vpImage< unsigned char > &I)=0
virtual void init(vpImage< unsigned char > &I, int x=-1, int y=-1, const char *title=NULL)=0
Class that defines generic functionnalities for display.
virtual void displayArrow(const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1)=0
Class to define colors available for display functionnalities.
virtual void clearDisplay(const vpColor &color=vpColor::white)=0
Define the X11 console to display images.
virtual bool getClickUp(vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true)=0
virtual bool getPointerMotionEvent(vpImagePoint &ip)=0
static const vpColor green
unsigned int getHeight() const
virtual void flushDisplay()=0
virtual bool getPointerPosition(vpImagePoint &ip)=0
virtual bool getKeyboardEvent(bool blocking=true)=0
virtual void setWindowPosition(int winx, int winy)=0
static void display(const vpImage< unsigned char > &I)
virtual void displayCross(const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1)=0
virtual void displayImageROI(const vpImage< unsigned char > &I, const vpImagePoint &iP, const unsigned int width, const unsigned int height)=0
virtual void setTitle(const char *title)=0
virtual void setFont(const char *font)=0
virtual void displayRectangle(const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1)=0
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
virtual void displayDotLine(const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)=0
virtual void closeDisplay()=0
virtual void displayCharString(const vpImagePoint &ip, const char *text, const vpColor &color=vpColor::green)=0
unsigned int getWidth() const
Defines a rectangle in the plane.
virtual bool getClick(bool blocking=true)=0
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
virtual void displayLine(const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)=0
virtual void flushDisplayROI(const vpImagePoint &iP, const unsigned int width, const unsigned int height)=0
static const vpColor white
virtual void displayPoint(const vpImagePoint &ip, const vpColor &color)=0