MGCL V10
V10
MGCL V10
|
MGisects defines a vector of MGisect. [詳解]
公開型 | |
typedef MGPvector< MGisect > ::iterator | iterator |
typedef MGPvector< MGisect > ::const_iterator | const_iterator |
typedef MGPvector< MGisect > ::reverse_iterator | reverse_iterator |
typedef MGPvector< MGisect > ::const_reverse_iterator | const_reverse_iterator |
typedef MGPvector< MGisect > ::reference | reference |
typedef MGPvector< MGisect > ::const_reference | const_reference |
typedef MGPvector< MGisect > ::size_type | size_type |
公開メンバ関数 | |
MGisects (const MGObject *obj1=0, const MGObject *obj2=0) | |
Constructor(of size 0) [詳解] | |
MGisects (MGCCisect_list &ccis) | |
Construct from MGCCisect_list. [詳解] | |
MGisects (MGCSisect_list &csis) | |
Construct from MGCSisect_list. [詳解] | |
MGisects (MGSSisect_list &ssis) | |
Construct from MGCSisect_list. [詳解] | |
MGisects (MGCFisect_vector &cfis) | |
Construct from MGCFisect_vector. [詳解] | |
MGisects (MGHHisect &hhi) | |
Construct from MGHHisect. [詳解] | |
MGisects (MGHHisect_vector &hhis) | |
Construct from MGCFisect_vector. [詳解] | |
const MGisect * | operator[] (int i) const |
MGisect * | operator[] (int i) |
const MGisect * | back () const |
MGisect * | back () |
iterator | begin () |
Get the iterator of the first element of the m_is_vector. [詳解] | |
const_iterator | begin () const |
void | clear () |
Clear all the elements in m_is_vector. [詳解] | |
bool | empty () const |
Return true if there are no items in the vector, false(0) otherwise. [詳解] | |
iterator | end () |
Get the iterator of the next of the last element of the m_is_vector. [詳解] | |
const_iterator | end () const |
iterator | erase (iterator i) |
void | exchange12 () |
Exchange first and second order of MGisect. [詳解] | |
const MGisect * | front () const |
MGisect * | front () |
void | insertAt (iterator i, MGisect *isect) |
const MGObject * | object1 (int i) const |
const MGObject * | object2 (int i) const |
void | pop_back () |
Erase the last element of m_is_vector if not null. [詳解] | |
void | push_back (MGisect *isect) |
void | push_back (MGisects &isects) |
int | size () const |
Return the number of items that are in the vector. [詳解] | |
フレンド | |
MG_DLL_DECLR friend std::ostream & | operator<< (std::ostream &ostrm, const MGisects &is) |
String stream Function. [詳解] | |
MGisects defines a vector of MGisect.
The vector is implemeted using MGPvector<MGisect>. All the methods to handle the vector are available from the MGPvector class, and public member m_is_vector. Refer to MGPvector template class. MGisects is used to represent an array of intersection lines of two objects. The behavior of MGisects is like an auto_ptr. Copy or assignment of MGisects means transfer of the ownership of all the included MGisect to copied or assigned MGisects and original MGisects does not have the ownership any more. Users should be aware of this fact. Intersections are obtained from two objects, which are known using the member functions object1() and object2(). ****NOTE**** When two objects' manifold dimension are the same, object1 is this object at the invocation of MGObject::intersection(), and object2 is the argument object. However, their manifold dimension are not the same, object1 is always the lower dimension's object and object2 is the higer dimension's object.
typedef MGPvector<MGisect>::iterator MGisects::iterator |
typedef MGPvector<MGisect>::reference MGisects::reference |
typedef MGPvector<MGisect>::size_type MGisects::size_type |
MGisects::MGisects | ( | MGCCisect_list & | ccis | ) |
Construct from MGCCisect_list.
MGisects::MGisects | ( | MGCSisect_list & | csis | ) |
Construct from MGCSisect_list.
MGisects::MGisects | ( | MGSSisect_list & | ssis | ) |
Construct from MGCSisect_list.
MGisects::MGisects | ( | MGCFisect_vector & | cfis | ) |
Construct from MGCFisect_vector.
MGisects::MGisects | ( | MGHHisect_vector & | hhis | ) |
Construct from MGCFisect_vector.
|
inline |
|
inline |
|
inline |
Get the iterator of the first element of the m_is_vector.
|
inline |
|
inline |
Clear all the elements in m_is_vector.
|
inline |
Return true if there are no items in the vector, false(0) otherwise.
|
inline |
Get the iterator of the next of the last element of the m_is_vector.
|
inline |
Erase the element of iterator i. Returned is the iterator located after the element i.
void MGisects::exchange12 | ( | ) |
Exchange first and second order of MGisect.
|
inline |
Return(but does not remove) first element in the vector. If vector is empty, behavior is undefined.
|
inline |
Insert MGisect at the index position i. Transfers the ownership of the isect to this vector.
const MGObject* MGisects::object1 | ( | int | i | ) | const |
Get the 1st object pointer of the i-th intersection. Generally objects are different for each intersection. Ex. in the case of Shell to Shell intersection, different Face pointer will be returned.
const MGObject* MGisects::object2 | ( | int | i | ) | const |
Get the 2nd object pointer of the i-th intersection. Generally objects are different for each intersection. Ex. in the case of Shell to Shell intersection, different Face pointer will be returned.
|
inline |
|
inline |
|
inline |
Erase the last element of m_is_vector if not null.
|
inline |
Adds one MGisect* to the end of the vector. Transfers the ownership of the isect to this vector.
void MGisects::push_back | ( | MGisects & | isects | ) |
append all the member of isects to the end of the vector. Transfers the ownership of the isect in isects to this vector.
|
inline |
Return the number of items that are in the vector.
|
friend |
String stream Function.