CVR-Lib last update 20 Sep 2009

cvr::viewer2D::viewer2D::configDialog Class Reference

Configuration dialog for 2D data. More...

#include <cvrViewer2D.h>

Inheritance diagram for cvr::viewer2D::viewer2D::configDialog:

Inheritance graph
[legend]
Collaboration diagram for cvr::viewer2D::viewer2D::configDialog:

Collaboration graph
[legend]

List of all members.

Classes

class  tk
 Private class of the configuration dialogs which deals with all internal issues of the GTK toolkit. More...

Public Member Functions

 configDialog (viewer2D &parent)
 configDialog (const configDialog &other, viewerBase &parent)
virtual ~configDialog ()
virtual bool useInformation (const viewerBase::information *dataInfo)
const informationgetInformation () const
virtual bool setParameters (const parameters &par)
virtual bool saveButtonPressed (const std::string &filename)
configDialogcopy (const configDialog &other)
virtual configDialogclone (viewerBase &parent) const
Toolkit dependent functions
virtual bool build ()
virtual bool show ()
virtual bool hide ()
virtual bool destroy ()

Protected Member Functions

tkgetToolkit ()


Detailed Description

Configuration dialog for 2D data.

Constructor & Destructor Documentation

cvr::viewer2D::viewer2D::configDialog::configDialog ( viewer2D parent  ) 

Construction.

cvr::viewer2D::viewer2D::configDialog::configDialog ( const configDialog other,
viewerBase parent 
)

Sort of copy constructor but with a new parent.

virtual cvr::viewer2D::viewer2D::configDialog::~configDialog (  )  [virtual]

Destruction.

Reimplemented from cvr::viewerBase::viewerBase::configDialog.


Member Function Documentation

virtual bool cvr::viewer2D::viewer2D::configDialog::build (  )  [virtual]

Constructs the main window.

You usually don't need to call this method directly, as it is called by show() if necessary.

This is called just once for the configuration dialog at its construction time.

In inherited classes it is usually employed to build the basic structure of the configuration dialog

Reimplemented from cvr::viewerBase::viewerBase::configDialog.

virtual configDialog* cvr::viewer2D::viewer2D::configDialog::clone ( viewerBase parent  )  const [virtual]

This clone requires the parent window.

Reimplemented from cvr::viewerBase::viewerBase::configDialog.

configDialog& cvr::viewer2D::viewer2D::configDialog::copy ( const configDialog other  ) 

Copy method.

Copies everything, but the parent main window

virtual bool cvr::viewer2D::viewer2D::configDialog::destroy (  )  [virtual]

Destroys the widget completely.

Before the widget is destroyed, the window is hidden, and the parent viewer is signalized accordingly in order to destroy the configuration dialog.

Reimplemented from cvr::viewerBase::viewerBase::configDialog.

const information& cvr::viewer2D::viewer2D::configDialog::getInformation (  )  const

Get a read-only reference to the data block.

Reimplemented from cvr::viewerBase::viewerBase::configDialog.

tk* cvr::viewer2D::viewer2D::configDialog::getToolkit (  )  [protected]

Get the toolkit with the proper type.

virtual bool cvr::viewer2D::viewer2D::configDialog::hide (  )  [virtual]

Hides the configuration dialog.

Reimplemented from cvr::viewerBase::viewerBase::configDialog.

virtual bool cvr::viewer2D::viewer2D::configDialog::saveButtonPressed ( const std::string &  filename  )  [virtual]

Save button pressed.

Method called when the user pressed the save button. Usually this method just call the viewer2D::saveButtonPressed();

virtual bool cvr::viewer2D::viewer2D::configDialog::setParameters ( const parameters par  )  [virtual]

Set a copy of the given parameters.

This method just calls for the base class one and then indicates the toolkit instance to update its GUI elements.

Reimplemented from cvr::viewerBase::viewerBase::configDialog.

virtual bool cvr::viewer2D::viewer2D::configDialog::show (  )  [virtual]

Show the configuration dialog.

Reimplemented from cvr::viewerBase::viewerBase::configDialog.

virtual bool cvr::viewer2D::viewer2D::configDialog::useInformation ( const viewerBase::information dataInfo  )  [virtual]

Use the given information block.

This method does not copy the information block, it just stores a reference to the given instance.

Inherited methods should call this one and transfer all data in the information block to the GUI elements.

Reimplemented from cvr::viewerBase::viewerBase::configDialog.


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