mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T259, Ref T243 interpolation setup list
This commit is contained in:
22
src/blackmisc/simulation/interpolationsetuplist.cpp
Normal file
22
src/blackmisc/simulation/interpolationsetuplist.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
/* Copyright (C) 2018
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "interpolationsetuplist.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Simulation
|
||||
{
|
||||
CInterpolationSetupList::CInterpolationSetupList() { }
|
||||
|
||||
CInterpolationSetupList::CInterpolationSetupList(const CSequence<CInterpolationAndRenderingSetupPerCallsign> &other) :
|
||||
CSequence<CInterpolationAndRenderingSetupPerCallsign>(other)
|
||||
{ }
|
||||
} // namespace
|
||||
} // namespace
|
||||
48
src/blackmisc/simulation/interpolationsetuplist.h
Normal file
48
src/blackmisc/simulation/interpolationsetuplist.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/* Copyright (C) 2018
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISC_SIMULATION_INTERPOLATIONSETUPLIST_H
|
||||
#define BLACKMISC_SIMULATION_INTERPOLATIONSETUPLIST_H
|
||||
|
||||
#include "interpolationrenderingsetup.h"
|
||||
#include "blackmisc/aviation/callsignobjectlist.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/collection.h"
|
||||
#include "blackmisc/sequence.h"
|
||||
#include "blackmisc/variant.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Simulation
|
||||
{
|
||||
//! Value object encapsulating a list of distributors.
|
||||
class BLACKMISC_EXPORT CInterpolationSetupList :
|
||||
public CSequence<CInterpolationAndRenderingSetupPerCallsign>,
|
||||
public Aviation::ICallsignObjectList<CInterpolationAndRenderingSetupPerCallsign, CInterpolationSetupList>,
|
||||
public Mixin::MetaType<CInterpolationSetupList>
|
||||
{
|
||||
public:
|
||||
BLACKMISC_DECLARE_USING_MIXIN_METATYPE(CInterpolationSetupList)
|
||||
|
||||
//! Default constructor.
|
||||
CInterpolationSetupList();
|
||||
|
||||
//! Construct from a base class object.
|
||||
CInterpolationSetupList(const CSequence<CInterpolationAndRenderingSetupPerCallsign> &other);
|
||||
};
|
||||
} //namespace
|
||||
} // namespace
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Simulation::CInterpolationSetupList)
|
||||
Q_DECLARE_METATYPE(BlackMisc::CCollection<BlackMisc::Simulation::CInterpolationAndRenderingSetupPerCallsign>)
|
||||
Q_DECLARE_METATYPE(BlackMisc::CSequence<BlackMisc::Simulation::CInterpolationAndRenderingSetupPerCallsign>)
|
||||
|
||||
#endif //guard
|
||||
@@ -31,6 +31,7 @@ namespace BlackMisc
|
||||
CDistributorListPreferences::registerMetadata();
|
||||
CInterpolationAndRenderingSetupPerCallsign::registerMetadata();
|
||||
CInterpolationAndRenderingSetupGlobal::registerMetadata();
|
||||
CInterpolationSetupList::registerMetadata();
|
||||
CInterpolationHints::registerMetadata();
|
||||
CMatchingStatisticsEntry::registerMetadata();
|
||||
CMatchingStatistics::registerMetadata();
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "blackmisc/simulation/distributorlistpreferences.h"
|
||||
#include "blackmisc/simulation/interpolationhints.h"
|
||||
#include "blackmisc/simulation/interpolationrenderingsetup.h"
|
||||
#include "blackmisc/simulation/interpolationsetuplist.h"
|
||||
#include "blackmisc/simulation/matchingstatistics.h"
|
||||
#include "blackmisc/simulation/simulatedaircraft.h"
|
||||
#include "blackmisc/simulation/simulatedaircraftlist.h"
|
||||
|
||||
Reference in New Issue
Block a user