MGCL V10
V10
MGCL V10
|
MGGelPosition is a class to locate where a gel is in a group hierarchy. [詳解]
公開メンバ関数 | |
MGGelPosition () | |
Void constructor. [詳解] | |
MGGelPosition (MGGroup *group, MGObject *obj=0) | |
Constructor of no hierarched group(m_Ghierarcy.size()==0). [詳解] | |
MGGelPosition (const MGGelPosition &obj2) | |
Copy constructor. [詳解] | |
virtual | ~MGGelPosition () |
Destructor. [詳解] | |
virtual MGGelPosition & | operator= (const MGGelPosition &GelPosition2) |
Assignment. [詳解] | |
bool | operator== (const MGGelPosition &gelp2) const |
Equal operator. [詳解] | |
bool | operator!= (const MGGelPosition &gelp2) const |
bool | operator< (const MGGelPosition &gp2) const |
bool | operator> (const MGGelPosition &gp2) const |
bool | operator<= (const MGGelPosition &gp2) const |
bool | operator>= (const MGGelPosition &gp2) const |
void | append_lower_gel (MGGel *gel) |
Append lower level group or shell data. [詳解] | |
const MGGel * | gel (int i) const |
Return the MGGel i;. [詳解] | |
MGGel * | gel (int i) |
virtual MGGelPosition * | clone () const |
Generate a newed clone object. [詳解] | |
void | do_add () |
void | do_remove () |
const MGGroup * | bottom_group () const |
Get the group pointer that includes leaf_gel();. [詳解] | |
MGGroup * | bottom_group () |
const MGGroup * | top_group () const |
Get the top group pointer. [詳解] | |
MGGroup * | top_group () |
MGShell * | get_shell_of_shell_face () const |
const MGGroup * | is_a_member_of (const MGGroup *grp) const |
bool | is_null () const |
Test if this is null. [詳解] | |
bool | is_shell_face () const |
bool | is_type (const MGAbstractGels &types) const |
bool | leaf_is_group () const |
const MGObject * | top_object () const |
MGObject * | top_object () |
const MGObject * | leaf_object () const |
MGObject * | leaf_object () |
const MGAttribedGel * | leafAttribedGel () const |
MGAttribedGel * | leafAttribedGel () |
void | set_attribedGel (MGAttribedGel *agel) |
Set the leaf object data. [詳解] | |
void | set_leaf_object (MGObject *obj) |
Set the leaf object data. [詳解] | |
void | set_top_group (MGGroup *group) |
Set the group data. [詳解] | |
void | set_null () |
Set this as null. [詳解] | |
bool | symmetric (const MGGelPosition &gp2) const |
MGAttribedGel * | targetGel () |
限定公開変数類 | |
MGGroup * | m_group |
std::vector< MGGel * > | m_Ghierarcy |
MGAttribedGel * | m_agel |
MGObject * | m_object |
MGAttribedGel(MGGroup for attribute update) pointer. [詳解] | |
フレンド | |
MG_DLL_DECLR friend std::ostream & | operator<< (std::ostream &, const MGGelPosition &) |
String stream function. [詳解] | |
MGGelPosition is a class to locate where a gel is in a group hierarchy.
MGGelPosition is a class to locate where a gel(MGObject(including MGShell) or MGGroup) is in a group hierarchy. Generally, A group includes other groups, and the included groups include other groups. In this way, the groups make a group hierachy. MGGelPosition represents this hierarcy. m_group is the top MGGroup that includes the object m_object if m_Ghierarcy.size()==0. If m_Ghierarcy.size()>0, m_group includes m_Ghierarcy[0]. Let n=m_Ghierarcy.size(), then group m_Ghierarcy[i-1] includes m_Ghierarcy[i] for n=0,...,n-2. m_Ghierarcy[n-1] includes m_object(if m_object!=0). m_object is the leaf MGObject pointer if exist. When n>0 and m_object=0, this means that leaf_is_group() is true and the positioning target is MGGroup. Although m_Ghierarcy[i] for i=0,...,n-2 are always MGGroup, m_Ghierarcy[n-1] may be MGShell that includes MGFace. In this case, is_shell_face() is true and m_object is the MGFace.
MGGelPosition::MGGelPosition | ( | ) |
Void constructor.
Constructor of no hierarched group(m_Ghierarcy.size()==0).
MGGelPosition::MGGelPosition | ( | const MGGelPosition & | obj2 | ) |
Copy constructor.
|
inlinevirtual |
Destructor.
void MGGelPosition::append_lower_gel | ( | MGGel * | gel | ) |
Append lower level group or shell data.
const MGGroup* MGGelPosition::bottom_group | ( | ) | const |
Get the group pointer that includes leaf_gel();.
MGGroup* MGGelPosition::bottom_group | ( | ) |
|
virtual |
Generate a newed clone object.
MGPickObject, MGPickObjectFB, MGPickObjectCB, MGPickObjectSBで再実装されています。
void MGGelPosition::do_add | ( | ) |
perform add operation of this gel position. (push back the object of m_object to the group that includes m_object)
void MGGelPosition::do_remove | ( | ) |
perform remove operation of this gel position. (Release the object of m_object from the group that includes m_object, but does not delete the gel).
|
inline |
MGShell* MGGelPosition::get_shell_of_shell_face | ( | ) | const |
Test if this MGGelPosition is a member of a group of the input grp. Test is done through the hierarchy of the group grp. Returned is null if not a member of (or a member group of) grp. The parent groupt pointer is returned if this geposiiton is a member of a group.
bool MGGelPosition::is_null | ( | ) | const |
Test if this is null.
bool MGGelPosition::is_shell_face | ( | ) | const |
Test if this is MGGelpotion that point shell and the member face. That is, m_object is MGFace and top_object() is MGShell.
bool MGGelPosition::is_type | ( | const MGAbstractGels & | types | ) | const |
bool MGGelPosition::leaf_is_group | ( | ) | const |
|
inline |
Get the leaf object pointer of this. Returned is MGObject excluding Shell.
|
inline |
|
inline |
Get the leaf AttribedGel pointer of this. Returned is MGAttribedGel excluding Shell.
|
inline |
|
inline |
bool MGGelPosition::operator< | ( | const MGGelPosition & | gp2 | ) | const |
|
inline |
|
virtual |
Assignment.
bool MGGelPosition::operator== | ( | const MGGelPosition & | gelp2 | ) | const |
Equal operator.
|
inline |
|
inline |
void MGGelPosition::set_attribedGel | ( | MGAttribedGel * | agel | ) |
Set the leaf object data.
void MGGelPosition::set_leaf_object | ( | MGObject * | obj | ) |
Set the leaf object data.
void MGGelPosition::set_null | ( | ) |
Set this as null.
|
inline |
Set the group data.
bool MGGelPosition::symmetric | ( | const MGGelPosition & | gp2 | ) | const |
Test if this is symmetric to gel2. Symmetric means: Both leaf objects are MGObject and they have the same manifold dimension.
MGAttribedGel* MGGelPosition::targetGel | ( | ) |
Get the target attribed gel to update. I.e., if this is shell_face, return the shell. Else, return the leaf AttribedGel.
|
inline |
Get the top group pointer.
|
inline |
const MGObject* MGGelPosition::top_object | ( | ) | const |
MGObject* MGGelPosition::top_object | ( | ) |
|
friend |
String stream function.
|
protected |
|
protected |
the object m_object if m_Ghierarcy.size()==0. If m_Ghierarcy.size()>0, m_group includes m_Ghierarcy[0].
|
protected |
The top group pointer which includes
|
protected |