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

 

         

ogmapscombinedelement.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 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 OGMAPS_COMBINED_ELEMENT_H
00012 #define OGMAPS_COMBINED_ELEMENT_H
00013 
00014 #include <vector>
00015 #include <orcaqguielementutil/icestormlistener.h>
00016 #include <hydroqguielementutil/guielement2d.h>
00017 #include <orcaqgui2dfactory/ogmapscombinedpainter.h>
00018 
00019 namespace orcaqgui2d {
00020     
00021 // A GuiElement which can combine several (at the moment two) ogmaps
00022 // Subscribes to several (at the moment two) OgMap interfaces
00023 // Author: Tobias Kaupp
00024 class OgMapsCombinedElement : public hydroqguielementutil::GuiElement2d
00025 {
00026 
00027 public:
00028     OgMapsCombinedElement( const hydroqguielementutil::GuiElementInfo &guiElementInfo,
00029                            const orcaice::Context                     &context );
00030 
00031     // inherited from guielement
00032     void update();
00033     bool needToUpdate();
00034     void paint( QPainter *p, int z ) 
00035         { painter_->paint( p, z ); };
00036     bool paintThisLayer( int z ) const
00037         { return painter_->paintThisLayer(z); }
00038     
00039     virtual bool isInGlobalCS() { return true; }
00040     virtual QStringList contextMenu();
00041     virtual void execute( int action );
00042 
00043 private:
00044     orcaice::Context context_;
00045     std::vector<orcaqguielementutil::IceStormListener<
00046             orca::OgMapData,
00047             orca::OgMapPrx,
00048             orca::OgMapConsumer,
00049             orca::OgMapConsumerPrx>* > listeners_;
00050     OgMapsCombinedPainter* painter_;
00051     bool isConnected_;
00052 };
00053 
00054 }
00055 
00056 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5