Isis 3 Programmer Reference
AdjustedLatitudeFilter.cpp
1
7/* SPDX-License-Identifier: CC0-1.0 */
8
9#include "AdjustedLatitudeFilter.h"
10
11#include <QPair>
12#include <QString>
13
14#include "ControlPoint.h"
15#include "ControlNet.h"
16#include "Latitude.h"
17
18
19namespace Isis {
20 AdjustedLatitudeFilter::AdjustedLatitudeFilter(
21 AbstractFilter::FilterEffectivenessFlag flag,
22 int minimumForSuccess) : AbstractNumberFilter(flag, minimumForSuccess) {
23 }
24
25
26 AdjustedLatitudeFilter::AdjustedLatitudeFilter(
27 const AdjustedLatitudeFilter &other) : AbstractNumberFilter(other) {
28 }
29
30
31 AdjustedLatitudeFilter::~AdjustedLatitudeFilter() {
32 }
33
34
35 bool AdjustedLatitudeFilter::evaluate(const QPair<QString, ControlNet *> *imageAndNet) const {
36 return evaluateImageFromPointFilter(imageAndNet);
37 }
38
39
40 bool AdjustedLatitudeFilter::evaluate(const ControlPoint *point) const {
41 return AbstractNumberFilter::evaluate(
42 point->GetAdjustedSurfacePoint().GetLatitude().degrees());
43 }
44
45
46 bool AdjustedLatitudeFilter::evaluate(const ControlMeasure *measure) const {
47 return true;
48 }
49
50
51 AbstractFilter *AdjustedLatitudeFilter::clone() const {
52 return new AdjustedLatitudeFilter(*this);
53 }
54
55
56 QString AdjustedLatitudeFilter::getImageDescription() const {
57 QString description = AbstractFilter::getImageDescription();
58 if (getMinForSuccess() == 1)
59 description += "point that has an adjusted surface point latitude "
60 "which is ";
61 else
62 description += "points that have adjusted surface point latitudes "
63 "which are ";
64
65 description += descriptionSuffix();
66 return description;
67 }
68
69
70 QString AdjustedLatitudeFilter::getPointDescription() const {
71 return "have adjusted surface point latitudes which are " +
72 descriptionSuffix();
73 }
74}
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16