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 Project Download Mailing lists
|
pixmapelement.h00001 /* 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 PIXMAPELEMENT_H 00012 #define PIXMAPELEMENT_H 00013 00014 #include <orcaqgui2dfactory/pixmapbackgroundpainter.h> 00015 #include <orcaqguielementutil/icestormelement.h> 00016 #include <hydroqgui/hydroqgui.h> 00017 #include <orcaqgui2dfactory/connectutils.h> 00018 00019 namespace orcaqgui2d { 00020 00021 class PixMapElement 00022 : public orcaqguielementutil::IceStormElement<PixMapBackgroundPainter, 00023 orca::PixMapData, 00024 orca::PixMapPrx, 00025 orca::PixMapConsumer, 00026 orca::PixMapConsumerPrx> 00027 { 00028 00029 public: 00030 PixMapElement( 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::PixMapPrx, PixMapBackgroundPainter> 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 PixMapBackgroundPainter 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)