9#include "AdjustedLatitudeFilter.h"
14#include "ControlPoint.h"
15#include "ControlNet.h"
20 AdjustedLatitudeFilter::AdjustedLatitudeFilter(
21 AbstractFilter::FilterEffectivenessFlag flag,
22 int minimumForSuccess) : AbstractNumberFilter(flag, minimumForSuccess) {
26 AdjustedLatitudeFilter::AdjustedLatitudeFilter(
27 const AdjustedLatitudeFilter &other) : AbstractNumberFilter(other) {
31 AdjustedLatitudeFilter::~AdjustedLatitudeFilter() {
35 bool AdjustedLatitudeFilter::evaluate(
const QPair<QString, ControlNet *> *imageAndNet)
const {
36 return evaluateImageFromPointFilter(imageAndNet);
40 bool AdjustedLatitudeFilter::evaluate(
const ControlPoint *point)
const {
41 return AbstractNumberFilter::evaluate(
42 point->GetAdjustedSurfacePoint().GetLatitude().degrees());
46 bool AdjustedLatitudeFilter::evaluate(
const ControlMeasure *measure)
const {
51 AbstractFilter *AdjustedLatitudeFilter::clone()
const {
52 return new AdjustedLatitudeFilter(*
this);
56 QString AdjustedLatitudeFilter::getImageDescription()
const {
57 QString description = AbstractFilter::getImageDescription();
58 if (getMinForSuccess() == 1)
59 description +=
"point that has an adjusted surface point latitude "
62 description +=
"points that have adjusted surface point latitudes "
65 description += descriptionSuffix();
70 QString AdjustedLatitudeFilter::getPointDescription()
const {
71 return "have adjusted surface point latitudes which are " +
This is free and unencumbered software released into the public domain.