VR-Forces 4.0.4 Class Documentation
include/terrainEventHandler/compassHandler.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2007 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: compassHandler.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef COMPASSHANDLER_H_
00013 #define COMPASSHANDLER_H_
00014 
00015 #include "tmqt/eventHandler.h"
00016 #include "qhash.h"
00017 #include "drawerNative/displayPoint.h"
00018 
00019 class DtTerrainDatabase;
00020 class DtCompassModelData;
00021 class DtModelData;
00022 class DtTMViewportExtents;
00023 
00027 
00028 #include "terrainEventHandler/terrainEventHandlerDefines.h"
00029 #include "ngutil/entityMapperKey.h"
00030 
00031 class DT_DLL_terrainEventHandler DtCompassHandler : public DtEventHandler
00032 {
00033    Q_OBJECT
00034 
00035 public:
00037    DtCompassHandler();
00038    
00040    virtual ~DtCompassHandler();
00041 
00042 public slots:
00044    virtual void setPosition(int);
00045 
00047    virtual void showMapCompass(bool b);
00048 
00049 protected slots:
00053    virtual void setTerrainDatabase(const DtTerrainDatabase*);
00054    virtual void viewportExtentsChanged(const DtTMViewportExtents*);
00055 
00056 protected:
00058    virtual DtEntityMapperKey compassMapperKey() const;
00059 
00061    virtual DtCompassModelData* createCompassData(DtTMMapArea*) const;
00062 
00064    virtual DtCompassModelData* createCompassModelData() const;
00065 
00066    virtual bool connecting(DtTMMapArea*);
00067    virtual bool disconnecting(DtTMMapArea*);
00068 
00069 public:
00071    static DtEventHandler* create(DtEventController* owner, void* usr);
00072 };
00073 
00074 #endif //COMPASSHANDLER_H_
00075 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)