A depth-first ImageTraversal.  
 More...
#include <DFS.h>
A depth-first ImageTraversal. 
Derived from base class ImageTraversal 
◆ DFS()
      
        
          | DFS::DFS | ( | const PNG & | png, | 
        
          |  |  | const Point & | start, | 
        
          |  |  | double | tolerance | 
        
          |  | ) |  |  | 
      
 
Initializes a depth-first ImageTraversal on a given png image, starting at start, and with a given tolerance. 
- Parameters
- 
  
    | png | The image this DFS is going to traverse |  | start | The start point of this DFS |  | tolerance | If the current point is too different (difference larger than tolerance) with the start point, it will not be included in this DFS |  
 
- Todo:
- [Part 1] 
 
 
◆ add()
  
  | 
        
          | void DFS::add | ( | const Point & | point | ) |  |  | virtual | 
 
 
◆ begin()
Returns an iterator for the traversal starting at the first point. 
- Todo:
- [Part 1] 
Implements ImageTraversal.
 
 
◆ empty()
  
  | 
        
          | bool DFS::empty | ( |  | ) | const |  | virtual | 
 
 
◆ end()
Returns an iterator for the traversal one past the end of the traversal. 
- Todo:
- [Part 1] 
Implements ImageTraversal.
 
 
◆ peek()
  
  | 
        
          | Point DFS::peek | ( |  | ) | const |  | virtual | 
 
 
◆ pop()
The documentation for this class was generated from the following files:
- imageTraversal/DFS.h
- imageTraversal/DFS.cpp