mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 03:45:30 +08:00
refs #742, allow to search by colors
* color distance in livery * and in container
This commit is contained in:
committed by
Mathew Sutcliffe
parent
940137b921
commit
74740991a3
@@ -122,6 +122,9 @@ namespace BlackMisc
|
||||
//! Matches combined code
|
||||
bool matchesCombinedCode(const QString &candidate) const;
|
||||
|
||||
//! Matches colors
|
||||
bool matchesColors(const BlackMisc::CRgbColor &fuselage, const BlackMisc::CRgbColor &tail) const;
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::Index::propertyByIndex
|
||||
CVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const;
|
||||
|
||||
@@ -155,6 +158,9 @@ namespace BlackMisc
|
||||
//! Color livery
|
||||
bool isColorLivery() const;
|
||||
|
||||
//! Combined color distance (fuselage/tail): 0..1
|
||||
double getColorDistance(const BlackMisc::CRgbColor &fuselage, const BlackMisc::CRgbColor &tail) const;
|
||||
|
||||
//! Update missing parts
|
||||
void updateMissingParts(const CLivery &otherLivery);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user