orca-robotics


INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

REPOSITORY
Interfaces
Components
Libraries
Utilities
Software Map

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard
Wiki
login/pass: orca/orca

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

ogmapelement.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This copy of Orca is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef OGMAPELEMENT_H
00012 #define OGMAPELEMENT_H
00013 
00014 #include <orcaqgui2dfactory/ogmappainter.h>
00015 #include <orcaqguielementutil/icestormelement.h>
00016 #include <hydroqgui/hydroqgui.h>
00017 #include <orcaqgui2dfactory/connectutils.h>
00018 
00019 namespace orcaqgui2d {
00020 
00021 class OgMapElement
00022     : public orcaqguielementutil::IceStormElement<OgMapPainter,
00023                              orca::OgMapData,
00024                              orca::OgMapPrx,
00025                              orca::OgMapConsumer,
00026                              orca::OgMapConsumerPrx>
00027 {
00028 
00029 public:
00030     OgMapElement( const orcaice::Context  &context,
00031                   const std::string       &proxyString,
00032                   hydroqguielementutil::IHumanManager* humanManager );
00033 
00034     virtual bool isInGlobalCS() { return true; }
00035     virtual void actionOnConnection() 
00036     { 
00037         std::cout << "Paint initial data begin" << std::endl;
00038         paintInitialData<orca::OgMapPrx, OgMapPainter>
00039             ( context_, listener_.interfaceName(), painter_ );
00040         std::cout << "Paint initial data finished" << std::endl;
00041     }
00042     virtual QStringList contextMenu();
00043     virtual void execute( int action );
00044 
00045 public:
00046     void saveMapAs();
00047     void saveMap();
00048 
00049 private:
00050     OgMapPainter painter_;
00051     hydroqguielementutil::IHumanManager *humanManager_;
00052     QString mapFileName_;
00053     bool mapFileNameSet_;
00054 };
00055 
00056 }
00057 
00058 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5