1 #include "QnetPointIdFilter.h" 33 QLabel *label =
new QLabel(
"Filter by Point ID (Wildcard)");
34 m_pointIdEdit =
new QLineEdit;
37 QVBoxLayout *vertLayout =
new QVBoxLayout;
38 vertLayout->addWidget(label);
39 vertLayout->addWidget(m_pointIdEdit);
40 vertLayout->addStretch();
41 this->setLayout(vertLayout);
57 if (controlNet() == NULL) {
58 QMessageBox::information((
QWidget *)parent(),
59 "Error",
"No points to filter");
64 QRegExp rx(m_pointIdEdit->text().trimmed());
65 rx.setPatternSyntax(QRegExp::Wildcard);
67 QMessageBox::information((
QWidget *)parent(),
68 "Error",
"Enter search string");
76 for (
int i = filteredPoints().size() - 1; i >= 0; i--) {
78 QString cNetId = (*controlNet())[filteredPoints()[i]]->GetId();
79 if (rx.indexIn(QString(cNetId)) != -1) {
83 filteredPoints().removeAt(i);
87 emit filteredListModified();
Namespace for the standard library.
Namespace for ISIS/Bullet specific routines.
virtual void filter()
Filters a list of images looking for cube names using the regular expression entered.