|
ActiveLib
|
#include <XList.h>
Public Types | |
| typedef container::List< XPoint > | base |
| The list container type. | |
| typedef base::iterator | iterator |
| The list iterator type. | |
| typedef base::const_iterator | const_iterator |
| The list const_iterator type. | |
| typedef base::size_type | size_type |
| The list size type. | |
Public Member Functions | |
| XList (const XInfo &targetFilter=XInfo(), const XInfo &bladeFilter=XInfo()) | |
| const_iterator | begin () const |
| const_iterator | end () const |
| const XPoint * | front () const |
| const XPoint * | back () const |
| size_type | size () const |
| bool | empty () const |
| const XInfo & | getFilter (XPoint::Role role) const |
| bool | withPos (XPoint::Role role, Position pos) const |
| bool | isPos (XPoint::Role role) const |
| void | setFilter (XPoint::Role role, const XInfo &filter) |
| iterator | begin () |
| iterator | end () |
| XPoint * | front () |
| XPoint * | back () |
| bool | insert (XPoint &&pt) |
| bool | insert (XPoint::Unique &&pt) |
| iterator | erase (iterator iter) |
| auto | release (iterator &iter) |
| void | clear () |
| void | removeDuplicates (double prec=math::eps) |
| template<class Compare > | |
| void | sort (Compare comp) |
| void | reverse () |
| void | addPos (XPoint::Role role, Position pos) |
| void | setVertex (XPoint::Role role, vertOption vertexIndex) |
| void | setPart (XPoint::Role role, partOption partIndex) |
| void | swapFilters () |
Class to represent a list of intersection points
NB: The word "intersection" is generally abbreviated to "X" in class names, e.g. XPoint, XInfo etc. Refer to the documentation for XInfo and Xpoint for a better understanding of the terminology and management of intersections, e.g. blade and target (defined in XPoint).
Constructor
| targetFilter | A filter for intersections with the target |
| bladeFilter | A filter for intersections with the blade |
| void XList::addPos | ( | XPoint::Role | role, |
| Position | pos ) |
Add an intersection type to the target filter
| role | The component role |
| pos | The relative position of the point with respect to the component |
|
inline |
Get the back intersection in the list
|
inline |
Get the back intersection in the list
|
inline |
Get an iterator at the first intersection
|
inline |
Get an iterator at the first intersection

|
inline |
Clear the list of intersections
|
inline |
Determine if the intersection list is empty
|
inline |
Get an iterator one beyond the last intersection
|
inline |
Get an iterator one beyond the last intersection

Erase the intersection at the specified iterator
| iter | The iterator pointing to the intersection to erase |

|
inline |
Get the front intersection in the list
|
inline |
Get the front intersection in the list
|
inline |
Get the intersection filter for a specified role

| bool XList::insert | ( | XPoint && | pt | ) |
Insert an intersection point
| pt | A new intersection point |


| bool XList::insert | ( | XPoint::Unique && | pt | ) |
Insert an intersection point
| pt | A new intersection point |

| bool XList::isPos | ( | XPoint::Role | role | ) | const |
Determine if the list filters intersections for a specified role based on its relative position
| role | The component role |

|
inline |
Release the intersection at the specified iterator
| iter | The iterator pointing to the intersection to release |

| void XList::removeDuplicates | ( | double | prec = math::eps | ) |
Remove duplicate intersections
| prec | The comparison precision |


|
inline |
Reverse the order of intersections in the list
|
inline |
Set the current target intersection filter
| filter | The target intersection filter |

|
inline |
Set the current blade object ID
| partIndex | The current blade part index |

|
inline |
Set the current target vertex index
| vertexIndex | The current target vertex index |

|
inline |
Get the list size

|
inline |
Template method to sort the list of intersections
| comp | The object to make the sort comparisons |

| void XList::swapFilters | ( | ) |
Swap the target and blade filters

| bool XList::withPos | ( | XPoint::Role | role, |
| Position | pos ) const |
Determine if the list accepts intersections having a relative position to a component with a specified role
| role | The component role |
| pos | The relative position of the point with respect to the component |
