USGS

Isis 3.0 Object Programmers' Reference

Home

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