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

 

         

icestormelement2d.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_ICESTORM_ELEMENT_2D_H
00012 #define ORCAGUI_ICESTORM_ELEMENT_2D_H
00013 
00014 #include <orcaqguielementutil/icestormelement.h>
00015 
00016 namespace orcaqguielementutil {
00017 
00018     template<class PainterType, class DataType, class ProxyType, class ConsumerType, class ConsumerPrxType>
00019     class
00020     IceStormElement2d : public hydroqguielementutil::GuiElement2d,
00021                         public IceStormElement<PainterType,DataType,ProxyType,ConsumerType,ConsumerPrxType>
00022     {
00023     public:
00024 
00027         IceStormElement2d( const orcaice::Context  &context,
00028                            const std::string       &proxyString,
00029                            PainterType             &painter,
00030                            const double            timeoutMs=5000.0 )
00031             : IceStormElement<PainterType,DataType,ProxyType,ConsumerType,ConsumerPrxType>(
00032                 context,proxyString,painter,timeoutMs)
00033             {}
00034 
00036         virtual void paint( QPainter *p, int z )
00037             { IceStormElement<PainterType,
00038                   DataType,
00039                   ProxyType,
00040                   ConsumerType,
00041                   ConsumerPrxType>::painter_.paint( p, z ); }
00042 
00043         bool paintThisLayer( int z ) const
00044             { return IceStormElement<PainterType,
00045                   DataType,
00046                   ProxyType,
00047                   ConsumerType,
00048                   ConsumerPrxType>::painter_.paintThisLayer( z ); }
00049 
00051         void update() 
00052             { IceStormElement<PainterType,
00053                   DataType,
00054                   ProxyType,
00055                   ConsumerType,
00056                   ConsumerPrxType>::updateFromBuffer(); }
00057     };
00058 
00059 }
00060 
00061 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5