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 Project Download Mailing lists
|
pixmapbackgroundpainter.h00001 /* 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 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 PixMapBackgroundPainter 00023 { 00024 00025 public: 00026 PixMapBackgroundPainter(); 00027 ~PixMapBackgroundPainter(); 00028 00029 void paint( QPainter *p, int z ); 00030 bool paintThisLayer( int z ) const { return z==hydroqguielementutil::Z_BACKGROUND; } 00031 00032 // Give the PixmapPainter the data relevant for painting 00033 void setData( const orca::PixMapData& data ); 00034 00035 void clear() {}; 00036 void toggleDisplayMap() { pixmapPainter_->toggleDisplayMap(); }; 00037 00038 int saveMap( const orcaice::Context &context, 00039 const QString &fileName, 00040 hydroqguielementutil::IHumanManager *humanManager ); 00041 00042 private: 00043 PixmapPainter *pixmapPainter_; 00044 bool checkFileExtension( QString &fe, 00045 hydroqguielementutil::IHumanManager *humanManager ); 00046 }; 00047 00048 } // namespace 00049 00050 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)