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