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

 

         

ogmapscombinedpainter.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 OGMAPS_COMBINED_PAINTER_H
00012 #define OGMAPS_COMBINED_PAINTER_H
00013 
00014 #include <orca/ogmap.h>
00015 #include <hydroqguielementutil/definitions2d.h>
00016 #include <orcaqgui2dfactory/pixmappainter.h>
00017 #include <memory>
00018 
00019 namespace orcaqgui2d
00020 {
00021 
00022 // A painter which can overlay several (at the moment two) OgMaps
00023 // Author: Tobias Kaupp
00024 class OgMapsCombinedPainter
00025 {
00026   public:
00027     OgMapsCombinedPainter( const orcaice::Context  &context );
00028     ~OgMapsCombinedPainter();
00029 
00030     void paint( QPainter *p, int z );
00031     bool paintThisLayer( int z ) const { return z==hydroqguielementutil::Z_OG_MAP; }
00032 
00033     // Give the PixmapPainter the data relevant for painting
00034     void setData( const orca::OgMapData& data0, const orca::OgMapData& data1 );
00035     
00036     void toggleDisplayMap() { pixmapPainter_->toggleDisplayMap(); };
00037     
00038   private:
00039     std::auto_ptr<PixmapPainter> pixmapPainter_;
00040     QImage *lookupTable_;
00041 
00042 };
00043 
00044 } // namespace
00045   
00046 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5