CVR-Lib last update 20 Sep 2009

cvr::externViewer2D Class Reference

External viewer for 2D images. More...

#include <cvrExternViewer2D.h>

Inheritance diagram for cvr::externViewer2D:

Inheritance graph
[legend]
Collaboration diagram for cvr::externViewer2D:

Collaboration graph
[legend]

List of all members.

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 externViewer2Dclone () const
virtual externViewer2DnewInstance () const
externViewer2Dcopy (const externViewer2D &other)
externViewer2Doperator= (const externViewer2D &other)
const parametersgetParameters () 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


Detailed Description

External viewer for 2D images.

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual externViewer2D* cvr::externViewer2D::clone (  )  const [virtual]

Returns a pointer to a clone of this instance.

Implements cvr::ioObject.

externViewer2D& cvr::externViewer2D::copy ( const externViewer2D other  ) 

copy data of "other" functor.

const parameters& cvr::externViewer2D::getParameters (  )  const

returns the give parameters

Reimplemented from cvr::parametersManager.

virtual bool cvr::externViewer2D::hide (  )  [virtual]

hides the display window

Returns:
true if successful, false otherwise.

virtual const std::string& cvr::externViewer2D::name (  )  const [virtual]

Returns the name of this class.

Implements cvr::ioObject.

virtual externViewer2D* cvr::externViewer2D::newInstance (  )  const [virtual]

Returns a pointer to a new instance of this class.

Implements cvr::ioObject.

externViewer2D& cvr::externViewer2D::operator= ( const externViewer2D other  ) 

copy data of "other" functor.

virtual bool cvr::externViewer2D::show ( const matrix< int32 > &  data  )  [virtual]

Shows an integer matrix.

Parameters:
data the object to be shown.
Returns:
true if successful, false otherwise.

virtual bool cvr::externViewer2D::show ( const matrix< float > &  data  )  [virtual]

Shows a floating point channel.

Parameters:
data the object to be shown.
Returns:
true if successful, false otherwise.

virtual bool cvr::externViewer2D::show ( const matrix< ubyte > &  data  )  [virtual]

Shows a 8-bit channel.

Parameters:
data the object to be shown.
Returns:
true if successful, false otherwise.

bool cvr::externViewer2D::show ( const matrix< rgbaPixel > &  data  ) 

Shows an cvr::image.

Parameters:
data the object to be shown.
Returns:
true if successful, false otherwise.


Member Data Documentation

int cvr::externViewer2D::numberShows [static, protected]

How many times has 'show' been used?


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

Generated on Sun Sep 20 22:09:09 2009 for CVR-Lib by Doxygen 1.5.8