3 #include "AdjustedLongitudeFilter.h"
11 AdjustedLongitudeFilter::AdjustedLongitudeFilter(
12 AbstractFilter::FilterEffectivenessFlag flag,
13 int minimumForSuccess) : AbstractNumberFilter(flag, minimumForSuccess) {
17 AdjustedLongitudeFilter::AdjustedLongitudeFilter(
18 const AdjustedLongitudeFilter &other) : AbstractNumberFilter(other) {
22 AdjustedLongitudeFilter::~AdjustedLongitudeFilter() {
26 bool AdjustedLongitudeFilter::evaluate(
27 const ControlCubeGraphNode *node)
const {
28 return evaluateImageFromPointFilter(node);
32 bool AdjustedLongitudeFilter::evaluate(
const ControlPoint *point)
const {
33 return AbstractNumberFilter::evaluate(
34 point->GetAdjustedSurfacePoint().GetLongitude().degrees());
38 bool AdjustedLongitudeFilter::evaluate(
39 const ControlMeasure *measure)
const {
44 AbstractFilter *AdjustedLongitudeFilter::clone()
const {
45 return new AdjustedLongitudeFilter(*
this);
49 QString AdjustedLongitudeFilter::getImageDescription()
const {
50 QString description = AbstractFilter::getImageDescription();
51 if (getMinForSuccess() == 1)
52 description +=
"point that has an adjusted surface point longitude "
55 description +=
"points that have adjusted surface point longitudes "
58 description += descriptionSuffix();
63 QString AdjustedLongitudeFilter::getPointDescription()
const {
64 return "have adjusted surface point longitudes which are " +