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

 

         

ptricestormelement2d.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_PTRICESTORM_ELEMENT_2D_H
00012 #define ORCAGUI_PTRICESTORM_ELEMENT_2D_H
00013 
00014 #include <orcaqguielementutil/ptricestormelement.h>
00015 
00016 namespace orcaqguielementutil {
00017 
00018     template<class PainterType, class DataType, class DataPtrType, class ProxyType, class ConsumerType, class ConsumerPrxType>
00019     class
00020     PtrIceStormElement2d : public hydroqguielementutil::GuiElement2d,
00021                            public PtrIceStormElement<PainterType,
00022                                                      DataType,
00023                                                      DataPtrType,
00024                                                      ProxyType,
00025                                                      ConsumerType,
00026                                                      ConsumerPrxType>
00027     {
00028     public:
00029 
00032         PtrIceStormElement2d( const orcaice::Context  &context,
00033                        const std::string       &proxyString,
00034                        PainterType             &painter,
00035                        const double            timeoutMs=5000.0 )
00036         : PtrIceStormElement<PainterType,DataType,DataPtrType,ProxyType,ConsumerType,ConsumerPrxType>(
00037             context,proxyString,painter,timeoutMs)
00038             {}
00039         
00040 
00042         virtual void paint( QPainter *p, int z )
00043             { PtrIceStormElement<PainterType,
00044                   DataType,
00045                   DataPtrType,
00046                   ProxyType,
00047                   ConsumerType,
00048                   ConsumerPrxType>::painter_.paint( p, z ); }
00049 
00050         bool paintThisLayer( int z ) const
00051             { return PtrIceStormElement<PainterType,
00052                   DataType,
00053                   DataPtrType,
00054                   ProxyType,
00055                   ConsumerType,
00056                   ConsumerPrxType>::painter_.paintThisLayer( z ); }
00057 
00059         void update() 
00060             { PtrIceStormElement<PainterType,
00061                   DataType,
00062                   DataPtrType,
00063                   ProxyType,
00064                   ConsumerType,
00065                   ConsumerPrxType>::updateFromBuffer(); }
00066     };
00067 
00068 }
00069 
00070 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5