|
Isis 3.0 Application Source Code Reference |
Home |
00001 #include "IsisDebug.h" 00002 00003 #include "AdjustedLongitudeFilter.h" 00004 00005 #include "ControlPoint.h" 00006 #include "Longitude.h" 00007 00008 00009 namespace Isis { 00010 namespace CnetViz { 00011 AdjustedLongitudeFilter::AdjustedLongitudeFilter( 00012 AbstractFilter::FilterEffectivenessFlag flag, 00013 int minimumForSuccess) : AbstractNumberFilter(flag, minimumForSuccess) { 00014 } 00015 00016 00017 AdjustedLongitudeFilter::AdjustedLongitudeFilter( 00018 const AdjustedLongitudeFilter & other) : AbstractNumberFilter(other) { 00019 } 00020 00021 00022 AdjustedLongitudeFilter::~AdjustedLongitudeFilter() { 00023 } 00024 00025 00026 bool AdjustedLongitudeFilter::evaluate( 00027 const ControlCubeGraphNode * node) const { 00028 return evaluateImageFromPointFilter(node); 00029 } 00030 00031 00032 bool AdjustedLongitudeFilter::evaluate(const ControlPoint * point) const { 00033 return AbstractNumberFilter::evaluate( 00034 point->GetAdjustedSurfacePoint().GetLongitude().degrees()); 00035 } 00036 00037 00038 bool AdjustedLongitudeFilter::evaluate( 00039 const ControlMeasure * measure) const { 00040 return true; 00041 } 00042 00043 00044 AbstractFilter * AdjustedLongitudeFilter::clone() const { 00045 return new AdjustedLongitudeFilter(*this); 00046 } 00047 00048 00049 QString AdjustedLongitudeFilter::getImageDescription() const { 00050 QString description = AbstractFilter::getImageDescription(); 00051 if (getMinForSuccess() == 1) 00052 description += "point that has an adjusted surface point longitude " 00053 "which is "; 00054 else 00055 description += "points that have adjusted surface point longitudes " 00056 "which are "; 00057 00058 description += descriptionSuffix(); 00059 return description; 00060 } 00061 00062 00063 QString AdjustedLongitudeFilter::getPointDescription() const { 00064 return "have adjusted surface point longitudes which are " + 00065 descriptionSuffix(); 00066 } 00067 } 00068 } 00069