INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydroqgui::IGuiElementFactory Class Reference

#include <iguielementfactory.h>

Inherits hydroutil::Uncopyable.

Inherited by orcaqgui::IGuiElementFactory.

List of all members.

Public Member Functions

std::vector< QString > supportedElementTypes () const
std::vector< std::string > supportedElementTypesAsStdString () const
 An STL version of the function above.
bool isSupported (const QString &elementType) const
virtual bool lookupElementType (const QStringList &ids, QString &elementType) const =0
virtual
::hydroqguielementutil::GuiElement
create (const ::hydroqguielementutil::GuiElementInfo &guiElementInfo) const =0

Protected Member Functions

void addSupportedType (const QString &elementType)
 Adds type to the list of supported elements.

Detailed Description

Intended as a base class for plug-in Gui Element factories.


Member Function Documentation

virtual ::hydroqguielementutil::GuiElement* hydroqgui::IGuiElementFactory::create ( const ::hydroqguielementutil::GuiElementInfo guiElementInfo  )  const [pure virtual]

Creates a GuiElement using the the information stored in guiElementInfo. Returns a NULL pointer if something goes wrong

bool hydroqgui::IGuiElementFactory::isSupported ( const QString &  elementType  )  const

Returns TRUE if the specified list of interface types is supported by this factory. Use addSupportedType() to define a list of supported types during initialization.

virtual bool hydroqgui::IGuiElementFactory::lookupElementType ( const QStringList &  ids,
QString &  elementType 
) const [pure virtual]

Looks up the elementType corresponding to the ids coming back from the required interfaces when connecting through clicking on the registry view. Example: 'ids' orca::LaserScanner2d maps to 'elementType' LaserScanner2d Needs to be augmented only for complicated elementTypes which have more than one interface. Returns true if an elementType was found otherwise false.

Implemented in orcaqgui2d::DefaultFactory, and orcaqgui3d::DefaultFactory.

std::vector< QString > hydroqgui::IGuiElementFactory::supportedElementTypes (  )  const

Returns a vector of all supported interface types. Use addSupportedType() to define a list of supported types during initialization.


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

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5