SHAPER
9.12.0
|
This class is used to explore edges of wire in the order of connectivity. More...
Public Member Functions | |
GEOMAPI_EXPORT | GeomAPI_WireExplorer () |
Default constructor. Creates an empty explorer, becomes usefull after Init. More... | |
GEOMAPI_EXPORT | GeomAPI_WireExplorer (const std::shared_ptr< GeomAPI_Wire > &theWire) |
Constructs an iterator on a wire. More... | |
GEOMAPI_EXPORT void | init (const std::shared_ptr< GeomAPI_Wire > &theWire) |
Resets this explorer. More... | |
GEOMAPI_EXPORT bool | more () const |
GEOMAPI_EXPORT void | next () |
Moves to the next Shape in the exploration or do nothing if there are no more shapes to explore. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Edge > | current () |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Vertex > | currentVertex () |
GEOMAPI_EXPORT void | clear () |
Clears the content of the explorer. It will return False on more(). More... | |
template<class T > | |
T * | implPtr () |
Returns the pointer to the impl. More... | |
template<class T > | |
const T * | implPtr () const |
Returns the pointer to the impl. More... | |
template<class T > | |
const T & | impl () const |
Returns the reference object of the impl. More... | |
template<class T > | |
void | setImpl (T *theImpl) |
Updates the impl (deletes the old one) More... | |
GEOMAPI_EXPORT bool | empty () const |
Returns true if the impl is empty. More... | |
This class is used to explore edges of wire in the order of connectivity.
GeomAPI_WireExplorer::GeomAPI_WireExplorer | ( | ) |
Default constructor. Creates an empty explorer, becomes usefull after Init.
GeomAPI_WireExplorer::GeomAPI_WireExplorer | ( | const std::shared_ptr< GeomAPI_Wire > & | theWire | ) |
Constructs an iterator on a wire.
[in] | theWire | a wire to explore. |
void GeomAPI_WireExplorer::init | ( | const std::shared_ptr< GeomAPI_Wire > & | theWire | ) |
Resets this explorer.
[in] | theWire | a wire to explore. |
bool GeomAPI_WireExplorer::more | ( | ) | const |
void GeomAPI_WireExplorer::next | ( | ) |
Moves to the next Shape in the exploration or do nothing if there are no more shapes to explore.
std::shared_ptr< GeomAPI_Edge > GeomAPI_WireExplorer::current | ( | ) |
std::shared_ptr< GeomAPI_Vertex > GeomAPI_WireExplorer::currentVertex | ( | ) |
void GeomAPI_WireExplorer::clear | ( | ) |
Clears the content of the explorer. It will return False on more().
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the reference object of the impl.
|
inlineinherited |
Updates the impl (deletes the old one)
|
inherited |
Returns true if the impl is empty.