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