File failed to load: https://isis.astrogeology.usgs.gov/8.3.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
LineFilter.cpp
1
7/* SPDX-License-Identifier: CC0-1.0 */
8
9#include "LineFilter.h"
10
11#include <QPair>
12#include <QString>
13
14#include "ControlMeasure.h"
15#include "ControlNet.h"
16#include "ControlPoint.h"
17
18
19namespace Isis {
20 LineFilter::LineFilter(
21 AbstractFilter::FilterEffectivenessFlag flag,
22 int minimumForSuccess) : AbstractNumberFilter(flag, minimumForSuccess) {
23 }
24
25
26 LineFilter::LineFilter(const LineFilter &other) : AbstractNumberFilter(other) {
27 }
28
29
30 LineFilter::~LineFilter() {
31 }
32
33
34 bool LineFilter::evaluate(const QPair<QString, ControlNet *> *imageAndNet) const {
35 return evaluateImageFromMeasureFilter(imageAndNet);
36 }
37
38
39 bool LineFilter::evaluate(const ControlPoint *point) const {
40 return evaluatePointFromMeasureFilter(point);
41 }
42
43
44 bool LineFilter::evaluate(const ControlMeasure *measure) const {
45 return AbstractNumberFilter::evaluate(measure->GetLine());
46 }
47
48
49 AbstractFilter *LineFilter::clone() const {
50 return new LineFilter(*this);
51 }
52
53
54 QString LineFilter::getImageDescription() const {
55 QString description = AbstractFilter::getImageDescription();
56 if (getMinForSuccess() == 1) {
57 description += "measure that has a line which is ";
58 }
59 else {
60 description += "measures that have lines which are ";
61 }
62
63 description += descriptionSuffix();
64 return description;
65 }
66
67
68 QString LineFilter::getPointDescription() const {
69 return getImageDescription();
70 }
71
72
73 QString LineFilter::getMeasureDescription() const {
74 return "have lines which are " + descriptionSuffix();
75 }
76}
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/24/2025 16:15:02