This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
IndoorMap/mapview/model/MapModelElement.h
2018-10-25 12:19:36 +02:00

49 lines
1.0 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* © Copyright 2014 Urheberrechtshinweis
* Alle Rechte vorbehalten / All Rights Reserved
*
* Programmcode ist urheberrechtlich geschuetzt.
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
* Keine Verwendung ohne explizite Genehmigung.
* (vgl. § 106 ff UrhG / § 97 UrhG)
*/
#ifndef MAPMODELELEMENT_H
#define MAPMODELELEMENT_H
#include "MapLayer.h"
class MV2DElement;
class MV3DElement;
class MapModelElement {
protected:
MapLayer* parent;
public:
/** ctor */
MapModelElement(MapLayer* parent) : parent(parent) {;}
/** dtor */
virtual ~MapModelElement() {;}
/** get the 2D interaction class for this element */
virtual MV2DElement* getMV2D() const {return nullptr;}
/** get the 3D interaction class for this element */
virtual MV3DElement* getMV3D() const {return nullptr;}
/** delete this element from the model */
virtual void deleteMe() const {;}
/** get the parent element */
MapLayer* getParent() const {return parent;}
};
#endif // MAPMODELELEMENT_H