AURobotServers
4
|
#include <uclientfuncimggui.h>
Public Member Functions | |
UImage * | getImage () |
UImage * | getImage () |
int | getImageNum () |
bool | isTime (UTime dueTime) |
UImage * | makeImage (const char *name) |
void | removeImage () |
bool | setImage (UImage *toImg) |
bool | setImage (UImage *toImg, int imgPoolNum) |
bool | showImage (UImage *toImg, bool force) |
bool | showImage (bool useHighGui) |
UHighGuiWindowHandle () | |
UHighGuiWindowHandle () | |
~UHighGuiWindowHandle () | |
Public Attributes | |
char | cvWndName [MAX_CV_WINDOW_NAME_SIZE] |
Protected Attributes | |
int | imgNum |
Static Protected Attributes | |
static const int | MAX_CV_WINDOW_NAME_SIZE = 60 |
Private Attributes | |
UImage * | img |
Dispalyed window information
UHighGuiWindowHandle::UHighGuiWindowHandle | ( | ) |
UHighGuiWindowHandle::UHighGuiWindowHandle | ( | ) |
Constructor
UHighGuiWindowHandle::~UHighGuiWindowHandle | ( | ) |
Constructor
References img, and removeImage().
|
inline |
Get pointer to image
References img, makeImage(), and showImage().
Referenced by UClientFuncLaserGui::doImage(), UClientFuncImgGui::getImage(), UClientFuncImgGui::saveImage(), UClientFuncImgGui::setUVSource(), and UClientFuncImgGui::showUVImage().
|
inline |
Get image pool number
References imgNum, isTime(), removeImage(), and showImage().
Referenced by UResDisp::addImagePoolImg(), UResDisp::doRepaintImages(), and UResDisp::removeImagePoolImg().
bool UHighGuiWindowHandle::isTime | ( | UTime | dueTime | ) |
Is it time to redisplay this image
References UImage::getUpdatedTime(), and img.
Referenced by UResDisp::doRepaintImages(), getImageNum(), and showImage().
UImage * UHighGuiWindowHandle::makeImage | ( | const char * | name | ) |
Create an empty image of max size. Returns a pointer to the created image.
References UImage::clear(), cvWndName, img, MAX_CV_WINDOW_NAME_SIZE, on_mouse(), and UImage::setMaxSize43().
Referenced by UClientFuncLaserGui::doImage(), and getImage().
void UHighGuiWindowHandle::removeImage | ( | ) |
Remove window with this name
References cvWndName.
Referenced by getImageNum(), UResDisp::removeImagePoolImg(), and ~UHighGuiWindowHandle().
bool UHighGuiWindowHandle::setImage | ( | UImage * | toImg | ) |
Set image
References UImage::copy(), and img.
Referenced by UResDisp::addImagePoolImg(), and showImage().
bool UHighGuiWindowHandle::setImage | ( | UImage * | toImg, |
int | imgPoolNum | ||
) |
Set image
References cvWndName, img, imgNum, and MAX_CV_WINDOW_NAME_SIZE.
bool UHighGuiWindowHandle::showImage | ( | UImage * | toImg, |
bool | force | ||
) |
Show this image (and save a copy) shows image, if imgTime is different than existing image, of if force is true. Returns true is shown.
References UImage::cvArr(), cvWndName, img, UImage::imgTime, on_mouse(), and setImage().
Referenced by UClientFuncLaserGui::doImage(), UResDisp::doRepaintImages(), getImage(), getImageNum(), and UClientFuncImgGui::gotNewImage().
bool UHighGuiWindowHandle::showImage | ( | bool | useHighGui | ) |
Show this image (and save a copy) shows image if the used flag is 0. if shown, the use flag is set to 1 (true);
useHighGui | if true, then image is actually shown using highgui - window, this is in conflict with gstreamer, so may be disabled. true if shown/updated (also set if highgui is not used). |
References UImage::cvArr(), cvWndName, UImage::getConvertBuffer(), UImage::height(), img, UImage::isBGR(), isTime(), on_mouse(), UImage::toBGR(), ULock::tryLock(), ULock::unlock(), UImage::used, and UImage::width().
char UHighGuiWindowHandle::cvWndName |
String that identifies the window to openCV highgui
Referenced by UClientFuncImgGui::getWndName(), makeImage(), on_trackbar(), removeImage(), UClientFuncImgGui::saveImage(), setImage(), showImage(), and UClientFuncImgGui::~UClientFuncImgGui().
|
private |
Copy of image to display
image source to display
Referenced by getImage(), isTime(), UResDisp::loadImgToPool(), makeImage(), on_trackbar(), UResDisp::setAutoHereNow(), setImage(), showImage(), UClientFuncImgGui::showImage(), UResDisp::test4NewImages(), UHighGuiWindowHandle(), and ~UHighGuiWindowHandle().
|
protected |
image pool number
Referenced by getImageNum(), and setImage().
|
staticprotected |
Maximum length of openCV window name
Referenced by makeImage(), on_trackbar(), and setImage().