|
EBGeometry 1.0
|
Edge iterator class. More...
#include <EBGeometry_DCEL_Iterator.hpp>
Public Types | |
| using | Vertex = VertexT< T, Meta > |
| Alias for DCEL vertex type. | |
| using | Edge = EdgeT< T, Meta > |
| Alias for DCEL edge type. | |
| using | Face = FaceT< T, Meta > |
| Alias for DCEL face type. | |
| using | VertexPtr = std::shared_ptr< Vertex > |
| Alias for vertex pointer. | |
| using | EdgePtr = std::shared_ptr< Edge > |
| Alias for edge pointer. | |
| using | FacePtr = std::shared_ptr< Face > |
| Alias for face pointer. | |
Public Member Functions | |
| EdgeIteratorT ()=delete | |
| Default construction is not allowed. Use one of the full constructors. | |
| EdgeIteratorT (Face &a_face) | |
| Constructor, taking a face as argument. The iterator begins at the half-edge pointer contained in the face. | |
| EdgeIteratorT (const Face &a_face) | |
| Constructor, taking a face as argument. The iterator begins at the half-edge pointer contained in the face. | |
| virtual | ~EdgeIteratorT ()=default |
| Destructor. | |
| EdgePtr & | operator() () noexcept |
| Operator returning a pointer to the current half-edge. | |
| const EdgePtr & | operator() () const noexcept |
| Operator returning a pointer to the current half-edge. | |
| void | reset () noexcept |
| Reset function for the iterator. This resets the iterator so that it begins from the starting half-edge. | |
| void | operator++ () noexcept |
| Incrementation operator, bringing the iterator to the next half-edge. | |
| bool | ok () const noexcept |
| Function which checks if the iteration can be continued. | |
Protected Attributes | |
| bool | m_fullLoop |
| If true, a full loop has been made around the polygon face. | |
| std::shared_ptr< Edge > | m_startEdge |
| Starting half-edge. | |
| std::shared_ptr< Edge > | m_curEdge |
| Current half-edge. | |
Edge iterator class.
Class which makes it easier to iterate through DCEL edges.
Constructor, taking a face as argument. The iterator begins at the half-edge pointer contained in the face.
| [in] | a_face | DCEL polygon face |
| DCEL::EdgeIteratorT< T, Meta >::EdgeIteratorT | ( | const Face & | a_face | ) |
Constructor, taking a face as argument. The iterator begins at the half-edge pointer contained in the face.
| [in] | a_face | DCEL polygon face |