last update 20 Sep 2009 |
#include <cvrExternViewer2D.h>
Classes | |
class | parameters |
Parameters of the cvr::externViewer2D class. More... | |
Public Member Functions | |
externViewer2D () | |
externViewer2D (const std::string &wndName) | |
externViewer2D (const parameters &par) | |
externViewer2D (const externViewer2D &other) | |
~externViewer2D () | |
virtual const std::string & | name () const |
virtual externViewer2D * | clone () const |
virtual externViewer2D * | newInstance () const |
externViewer2D & | copy (const externViewer2D &other) |
externViewer2D & | operator= (const externViewer2D &other) |
const parameters & | getParameters () const |
bool | show (const matrix< rgbaPixel > &data) |
virtual bool | show (const matrix< ubyte > &data) |
virtual bool | show (const matrix< float > &data) |
virtual bool | show (const matrix< int32 > &data) |
virtual bool | hide () |
Static Protected Attributes | |
static int | numberShows |
This object shows an image using an external application like kview, xv, mspaint, etc.
Use the externViewer::parameters to specify which application should be used.
A temporal image file will be created to transfer the image data to the external application. If you need a faster viewer, use the cvr::viewer2D instead!
The default viewer used in Linux is the kview and in Windows the mspaint. Make sure that these programs are included in one of the directories specified by the system variable PATH.
cvr::externViewer2D::externViewer2D | ( | ) |
Default constructor.
cvr::externViewer2D::externViewer2D | ( | const std::string & | wndName | ) |
Constructor with a window name.
(some implementations ignore the given name)
cvr::externViewer2D::externViewer2D | ( | const parameters & | par | ) |
Constructor with parameters.
cvr::externViewer2D::externViewer2D | ( | const externViewer2D & | other | ) |
Copy constructor.
cvr::externViewer2D::~externViewer2D | ( | ) |
Default destructor.
virtual externViewer2D* cvr::externViewer2D::clone | ( | ) | const [virtual] |
externViewer2D& cvr::externViewer2D::copy | ( | const externViewer2D & | other | ) |
copy data of "other" functor.
const parameters& cvr::externViewer2D::getParameters | ( | ) | const |
virtual bool cvr::externViewer2D::hide | ( | ) | [virtual] |
hides the display window
virtual const std::string& cvr::externViewer2D::name | ( | ) | const [virtual] |
virtual externViewer2D* cvr::externViewer2D::newInstance | ( | ) | const [virtual] |
externViewer2D& cvr::externViewer2D::operator= | ( | const externViewer2D & | other | ) |
copy data of "other" functor.
virtual bool cvr::externViewer2D::show | ( | const matrix< float > & | data | ) | [virtual] |
Shows an cvr::image.
data | the object to be shown. |
int cvr::externViewer2D::numberShows [static, protected] |
How many times has 'show' been used?