Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
**
|
||||
** @RDE_HEADER@
|
||||
** GeometryModelFactory to create geometry model
|
||||
** $Id$
|
||||
** $HeadURL$
|
||||
** $Author$
|
||||
**
|
||||
** -----------------------------------------------------------------------------------------------
|
||||
**
|
||||
** Hardware-Environment: Intel-PC
|
||||
** Software-Environment: Windows 7, Qt 5.4. ArcGIS 10.2.5
|
||||
**
|
||||
** Language ........: C++ 11
|
||||
**
|
||||
** -----------------------------------------------------------------------------------------------
|
||||
**
|
||||
** Author ...........: Jörg Turla, SPD G, Tel. 3132
|
||||
**
|
||||
** -----------------------------------------------------------------------------------------------
|
||||
**
|
||||
** Notes .........:
|
||||
**
|
||||
** 20.11.2015, JT : First edition for use with Qt5
|
||||
**
|
||||
** -----------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
#include "geometry_model_factory.h"
|
||||
#include "geometry_model_q_dom.h"
|
||||
|
||||
namespace SituationMap
|
||||
{
|
||||
|
||||
GeometryModelFactory *GeometryModelFactory::singleton()
|
||||
{
|
||||
static GeometryModelFactory s_factory;
|
||||
return &s_factory;
|
||||
} /* GeometryModelFactory::singleton() */
|
||||
|
||||
|
||||
GeometryModel *GeometryModelFactory::create()
|
||||
{
|
||||
return new GeometryModelQDom();
|
||||
} // GeometryModelFactory::create()
|
||||
|
||||
|
||||
GeometryModel *GeometryModelFactory::clone(GeometryModel *geoModel)
|
||||
{
|
||||
GeometryModelQDom * qdomModel = dynamic_cast<GeometryModelQDom*>(geoModel);
|
||||
if (qdomModel)
|
||||
return new GeometryModelQDom(*qdomModel);
|
||||
|
||||
return nullptr;
|
||||
} // GeometryModelFactory::clone()
|
||||
|
||||
} /* namespace SituationMap */
|
||||
Reference in new issue
Block a user