9#include "AdjustedLongitudeFilter.h"
14#include "ControlPoint.h"
15#include "ControlMeasure.h"
16#include "ControlNet.h"
21 AdjustedLongitudeFilter::AdjustedLongitudeFilter(
22 AbstractFilter::FilterEffectivenessFlag flag,
23 int minimumForSuccess)
24 : AbstractNumberFilter(flag, minimumForSuccess) {
28 AdjustedLongitudeFilter::AdjustedLongitudeFilter(
const AdjustedLongitudeFilter &other)
29 : AbstractNumberFilter(other) {
33 AdjustedLongitudeFilter::~AdjustedLongitudeFilter() {
37 bool AdjustedLongitudeFilter::evaluate(
const QPair<QString, ControlNet *> *imageAndNet)
const {
38 return evaluateImageFromPointFilter(imageAndNet);
42 bool AdjustedLongitudeFilter::evaluate(
const ControlPoint *point)
const {
43 return AbstractNumberFilter::evaluate(
44 point->GetAdjustedSurfacePoint().GetLongitude().degrees());
48 bool AdjustedLongitudeFilter::evaluate(
const ControlMeasure *measure)
const {
53 AbstractFilter *AdjustedLongitudeFilter::clone()
const {
54 return new AdjustedLongitudeFilter(*
this);
58 QString AdjustedLongitudeFilter::getImageDescription()
const {
59 QString description = AbstractFilter::getImageDescription();
60 if (getMinForSuccess() == 1)
61 description +=
"point that has an adjusted surface point longitude "
64 description +=
"points that have adjusted surface point longitudes "
67 description += descriptionSuffix();
72 QString AdjustedLongitudeFilter::getPointDescription()
const {
73 return "have adjusted surface point longitudes which are " +
This is free and unencumbered software released into the public domain.