Isis 3 Programmer Reference
AdjustedLatitudeFilter.cpp
1 #include "IsisDebug.h"
2 
3 #include "AdjustedLatitudeFilter.h"
4 
5 #include <QPair>
6 #include <QString>
7 
8 #include "ControlPoint.h"
9 #include "ControlNet.h"
10 #include "Latitude.h"
11 
12 
13 namespace Isis {
14  AdjustedLatitudeFilter::AdjustedLatitudeFilter(
15  AbstractFilter::FilterEffectivenessFlag flag,
16  int minimumForSuccess) : AbstractNumberFilter(flag, minimumForSuccess) {
17  }
18 
19 
20  AdjustedLatitudeFilter::AdjustedLatitudeFilter(
21  const AdjustedLatitudeFilter &other) : AbstractNumberFilter(other) {
22  }
23 
24 
25  AdjustedLatitudeFilter::~AdjustedLatitudeFilter() {
26  }
27 
28 
29  bool AdjustedLatitudeFilter::evaluate(const QPair<QString, ControlNet *> *imageAndNet) const {
30  return evaluateImageFromPointFilter(imageAndNet);
31  }
32 
33 
34  bool AdjustedLatitudeFilter::evaluate(const ControlPoint *point) const {
35  return AbstractNumberFilter::evaluate(
36  point->GetAdjustedSurfacePoint().GetLatitude().degrees());
37  }
38 
39 
40  bool AdjustedLatitudeFilter::evaluate(const ControlMeasure *measure) const {
41  return true;
42  }
43 
44 
45  AbstractFilter *AdjustedLatitudeFilter::clone() const {
46  return new AdjustedLatitudeFilter(*this);
47  }
48 
49 
50  QString AdjustedLatitudeFilter::getImageDescription() const {
51  QString description = AbstractFilter::getImageDescription();
52  if (getMinForSuccess() == 1)
53  description += "point that has an adjusted surface point latitude "
54  "which is ";
55  else
56  description += "points that have adjusted surface point latitudes "
57  "which are ";
58 
59  description += descriptionSuffix();
60  return description;
61  }
62 
63 
64  QString AdjustedLatitudeFilter::getPointDescription() const {
65  return "have adjusted surface point latitudes which are " +
66  descriptionSuffix();
67  }
68 }
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Unless noted otherwise, the portions of Isis written by the USGS are public domain.