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

 

         

pixmapbackgroundpainter.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 ORCAGUI_PIXMAP_BACKGROUND_PAINTER_H
00012 #define ORCAGUI_PIXMAP_BACKGROUND_PAINTER_H
00013 
00014 #include <orca/pixmap.h>
00015 #include <orcaice/context.h>
00016 #include <hydroqguielementutil/definitions2d.h>
00017 #include <orcaqgui2dfactory/pixmappainter.h>
00018 
00019 namespace orcaqgui2d
00020 {
00021     
00022 class hydroqguielementutil::IHumanManager;  
00023 
00024 class PixMapBackgroundPainter
00025 {
00026     
00027   public:
00028     PixMapBackgroundPainter();
00029     ~PixMapBackgroundPainter();
00030 
00031     void paint( QPainter *p, int z );
00032     bool paintThisLayer( int z ) const { return z==hydroqguielementutil::Z_BACKGROUND; }
00033 
00034     // Give the PixmapPainter the data relevant for painting
00035     void setData( const orca::PixMapData& data );
00036     
00037     void clear() {};
00038     void toggleDisplayMap() { pixmapPainter_->toggleDisplayMap(); };
00039     
00040     int saveMap( const orcaice::Context   &context,
00041                  const QString            &fileName,
00042                  hydroqguielementutil::IHumanManager *humanManager );
00043     
00044   private:
00045     PixmapPainter *pixmapPainter_;
00046     bool checkFileExtension( QString &fe,
00047                              hydroqguielementutil::IHumanManager *humanManager );
00048 };
00049 
00050 } // namespace
00051   
00052 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5