* Returns the number of non-ignored control points * * @return Number of valid control points */
| 1501 | * @return Number of valid control points |
| 1502 | */ |
| 1503 | int ControlNet::GetNumValidPoints() { |
| 1504 | int validPoints = 0; |
| 1505 | foreach(ControlPoint * p, *points) { |
| 1506 | if (!p->IsIgnored()) |
| 1507 | validPoints++; |
| 1508 | } |
| 1509 | |
| 1510 | return validPoints; |
| 1511 | } |
| 1512 | |
| 1513 | |
| 1514 | //! Return the target name |