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

 

         

orcaqgui3dfactory/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 <orcaqgui3dfactory/ogmappainter.h>
00015 #include <orcaqgui3d/icestormelement3d.h>
00016 #include <hydroqgui/hydroqgui.h>
00017 #include <orcaqgui2dfactory/connectutils.h>
00018 
00019 namespace orcaqgui3d {
00020 
00021 class OgMapElement
00022     : public orcaqgui3d::IceStormElement3d<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         orcaqgui2d::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     osg::Node *osgNode() const { return painter_.osgNode(); }
00046 
00047 private:
00048     OgMapPainter painter_;
00049     hydroqguielementutil::IHumanManager &humanManager_;
00050     QString mapFileName_;
00051     bool mapFileNameSet_;
00052 };
00053 
00054 }
00055 
00056 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5