MRPT logo

mrpt::gui::CDisplayWindow Class Reference

This class creates a window as a graphical user interface (GUI) for displaying images to the user. More...

#include <mrpt/gui/CDisplayWindow.h>

Inheritance diagram for mrpt::gui::CDisplayWindow:

mrpt::utils::CSerializable mrpt::gui::CBaseGUIWindow

List of all members.

Public Member Functions

 CDisplayWindow (const std::string &windowCaption=std::string())
 Constructor.
virtual ~CDisplayWindow ()
 Destructor.
void showImageAndPoints (const CImage &img, const vector_float &x, const vector_float &y, const TColor &color=TColor::red)
 Show a given color or grayscale image on the window and print a set of points on it.
void showImageAndPoints (const CImageFloat &img, const vector_float &x, const vector_float &y, const TColor &color=TColor::red)
 Show a given color or grayscale image on the window and print a set of points on it.
void showImageAndPoints (const CImage &img, const mrpt::vision::CFeatureList &list, const TColor &color=TColor::red)
 Show a given color or grayscale image on the window and print a set of points on it.
void showImage (const CImage &img)
 Show a given color or grayscale image on the window.
void showImage (const CImageFloat &img)
 Show a given grayscale image on the window.
void plot (const vector_float &x, const vector_float &y)
 Plots a graph in MATLAB-like style.
void plot (const vector_float &y)
 Plots a graph in MATLAB-like style.
void resize (unsigned int width, unsigned int height)
 Resizes the window, stretching the image to fit into the display area.
void setPos (int x, int y)
 Changes the position of the window on the screen.
void enableCursorCoordinatesVisualization (bool enable)
 Enables or disables the visualization of cursor coordinates on the window caption (default = enabled).
void setWindowTitle (const std::string &str)
 Changes the window title text.

Protected Attributes

bool m_enableCursorCoordinates
 Enables or disables the visualization of cursor coordinates on the window caption.


Detailed Description

This class creates a window as a graphical user interface (GUI) for displaying images to the user.

Definition at line 51 of file CDisplayWindow.h.


Constructor & Destructor Documentation

mrpt::gui::CDisplayWindow::CDisplayWindow ( const std::string &  windowCaption = std::string()  ) 

Constructor.

virtual mrpt::gui::CDisplayWindow::~CDisplayWindow (  )  [virtual]

Destructor.


Member Function Documentation

void mrpt::gui::CDisplayWindow::enableCursorCoordinatesVisualization ( bool  enable  )  [inline]

Enables or disables the visualization of cursor coordinates on the window caption (default = enabled).

Definition at line 114 of file CDisplayWindow.h.

void mrpt::gui::CDisplayWindow::plot ( const vector_float y  ) 

Plots a graph in MATLAB-like style.

void mrpt::gui::CDisplayWindow::plot ( const vector_float x,
const vector_float y 
)

Plots a graph in MATLAB-like style.

void mrpt::gui::CDisplayWindow::resize ( unsigned int  width,
unsigned int  height 
) [virtual]

Resizes the window, stretching the image to fit into the display area.

Implements mrpt::gui::CBaseGUIWindow.

void mrpt::gui::CDisplayWindow::setPos ( int  x,
int  y 
) [virtual]

Changes the position of the window on the screen.

Implements mrpt::gui::CBaseGUIWindow.

void mrpt::gui::CDisplayWindow::setWindowTitle ( const std::string &  str  )  [virtual]

Changes the window title text.

Implements mrpt::gui::CBaseGUIWindow.

void mrpt::gui::CDisplayWindow::showImage ( const CImageFloat img  ) 

Show a given grayscale image on the window.

It adapts the size of the window to that of the image.

void mrpt::gui::CDisplayWindow::showImage ( const CImage img  ) 

Show a given color or grayscale image on the window.

It adapts the size of the window to that of the image.

void mrpt::gui::CDisplayWindow::showImageAndPoints ( const CImage img,
const mrpt::vision::CFeatureList list,
const TColor color = TColor::red 
)

Show a given color or grayscale image on the window and print a set of points on it.

It adapts the size of the window to that of the image.

void mrpt::gui::CDisplayWindow::showImageAndPoints ( const CImageFloat img,
const vector_float x,
const vector_float y,
const TColor color = TColor::red 
)

Show a given color or grayscale image on the window and print a set of points on it.

It adapts the size of the window to that of the image.

void mrpt::gui::CDisplayWindow::showImageAndPoints ( const CImage img,
const vector_float x,
const vector_float y,
const TColor color = TColor::red 
)

Show a given color or grayscale image on the window and print a set of points on it.

It adapts the size of the window to that of the image.


Member Data Documentation

Enables or disables the visualization of cursor coordinates on the window caption.

Definition at line 60 of file CDisplayWindow.h.




Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:32:05 EDT 2009