Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/doc/src/modules/overlays/hud/HUDRadar.h @ 7297

Last change on this file since 7297 was 7297, checked in by landauf, 14 years ago

fixed lots of Doxygen warnings

Note: Doxygen prints a warning if only a part of the parameters of a function are documented.

Added documentation for missing parameters (as good as I could), removed documentation of obsolete parameters and fixed names of renamed parameters.
Some parameters are tagged with "FIXME", please replace this with an appropriate documentation if you know what it does.

  • Property svn:eol-style set to native
File size: 2.8 KB
RevLine 
[1505]1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
[1502]4 *
[1505]5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
[1502]22 *   Author:
23 *      Yuning Chai
[1614]24 *      Felix Schulthess
[1502]25 *   Co-authors:
[1614]26 *      Reto Grieder
[1502]27 *
28 */
[1283]29
[1604]30#ifndef _HUDRadar_H__
31#define _HUDRadar_H__
[1283]32
[5693]33#include "overlays/OverlaysPrereqs.h"
[1502]34
[3196]35#include <map>
[1614]36#include <vector>
[3196]37
38#include "util/OgreForwardRefs.h"
39#include "interfaces/RadarListener.h"
40#include "interfaces/RadarViewable.h"
[1604]41#include "overlays/OrxonoxOverlay.h"
[1407]42
[1283]43namespace orxonox
44{
[5693]45    class _OverlaysExport HUDRadar : public OrxonoxOverlay, public RadarListener
[1329]46    {
[1615]47    public:
[2087]48        HUDRadar(BaseObject* creator);
[3196]49        virtual ~HUDRadar();
[1400]50
[7297]51        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
[2662]52        virtual void changedOwner();
[1604]53
[1615]54    private:
55        // XML accessors
[1613]56        float getHalfDotSizeDistance() const { return this->halfDotSizeDistance_; }
57        void setHalfDotSizeDistance(float distance) { this->halfDotSizeDistance_ = distance; }
[1604]58
[1613]59        float getMaximumDotSize() const { return this->maximumDotSize_; }
60        void setMaximumDotSize(float size) { this->maximumDotSize_ = size; }
61
[1615]62        float getRadarSensitivity() const { return this->sensitivity_; }
63        // used also by RadarListener interface!
64        void setRadarSensitivity(float sensitivity) { this->sensitivity_ = sensitivity; }
65
66        // RadarListener interface
[7163]67        virtual void addObject(RadarViewable* viewable);
68        virtual void removeObject(RadarViewable* viewable);
69        virtual void objectChanged( RadarViewable* rv );
[1613]70        void radarTick(float dt);
[1604]71
[7163]72        void gatherObjects();
73
[1613]74        std::map<RadarViewable::Shape, std::string> shapeMaterials_;
[1604]75
[7163]76//         std::vector<Ogre::PanelOverlayElement*> radarDots_;
77//         std::vector<Ogre::PanelOverlayElement*>::iterator itRadarDots_;
78        std::map<RadarViewable*, Ogre::PanelOverlayElement*> radarObjects_;
[1613]79        Ogre::PanelOverlayElement* marker_;
80
81        float halfDotSizeDistance_;
82        float maximumDotSize_;
83
84        float sensitivity_;
[2662]85
86        Pawn* owner_;
[1604]87    };
[1302]88}
[1283]89
[1604]90#endif /* _HUDRadar_H__ */
Note: See TracBrowser for help on using the repository browser.