refs #742, allow to search by colors

* color distance in livery
* and in container
This commit is contained in:
Klaus Basan
2016-08-25 00:20:41 +02:00
committed by Mathew Sutcliffe
parent 940137b921
commit 74740991a3
4 changed files with 62 additions and 0 deletions

View File

@@ -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);