AURobotServers  4
Public Member Functions | Public Attributes | Protected Attributes | Static Protected Attributes | Private Attributes | List of all members
UHighGuiWindowHandle Class Reference

#include <uclientfuncimggui.h>

Public Member Functions

UImagegetImage ()
 
UImagegetImage ()
 
int getImageNum ()
 
bool isTime (UTime dueTime)
 
UImagemakeImage (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

UImageimg
 

Detailed Description

Dispalyed window information

Constructor & Destructor Documentation

UHighGuiWindowHandle::UHighGuiWindowHandle ( )

Constructor

References img.

Referenced by on_trackbar().

UHighGuiWindowHandle::UHighGuiWindowHandle ( )

Constructor

UHighGuiWindowHandle::~UHighGuiWindowHandle ( )

Constructor

References img, and removeImage().

Member Function Documentation

UImage* UHighGuiWindowHandle::getImage ( )
inline
UImage* UHighGuiWindowHandle::getImage ( )
inline

Get pointer to image

References img.

int UHighGuiWindowHandle::getImageNum ( )
inline
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);

Parameters
useHighGuiif 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().

Member Data Documentation

char UHighGuiWindowHandle::cvWndName
UImage * UHighGuiWindowHandle::img
private
int UHighGuiWindowHandle::imgNum
protected

image pool number

Referenced by getImageNum(), and setImage().

const int UHighGuiWindowHandle::MAX_CV_WINDOW_NAME_SIZE = 60
staticprotected

Maximum length of openCV window name

Referenced by makeImage(), on_trackbar(), and setImage().


The documentation for this class was generated from the following files: