3 #include "PointTypeFilter.h" 16 PointTypeFilter::PointTypeFilter(
17 AbstractFilter::FilterEffectivenessFlag flag,
18 int minimumForSuccess) : AbstractMultipleChoiceFilter(flag, minimumForSuccess) {
20 options <<
"Fixed" <<
"Constrained" <<
"Free";
21 createWidget(options);
25 PointTypeFilter::PointTypeFilter(
const PointTypeFilter &other)
26 : AbstractMultipleChoiceFilter(other) {
30 PointTypeFilter::~PointTypeFilter() {
35 return evaluateImageFromPointFilter(imageAndNet);
39 bool PointTypeFilter::evaluate(
const ControlPoint *point)
const {
40 return ((QString) point->GetPointTypeString() == getCurrentChoice()) ^
45 bool PointTypeFilter::evaluate(
const ControlMeasure *)
const {
50 AbstractFilter *PointTypeFilter::clone()
const {
51 return new PointTypeFilter(*
this);
55 QString PointTypeFilter::getImageDescription()
const {
56 QString description = AbstractFilter::getImageDescription() +
"point";
58 if (getMinForSuccess() != 1) {
65 description +=
"that ";
67 if (getMinForSuccess() == 1) {
71 description +=
"are ";
75 description +=
"not ";
78 description +=
" of type " + getCurrentChoice();
84 QString PointTypeFilter::getPointDescription()
const {
85 QString description =
"are ";
88 description +=
"not ";
91 description +=
"of type " + getCurrentChoice();
Namespace for ISIS/Bullet specific routines.