MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGPickObject クラス

MGPickObject is a class to locate where an object is in a group hierarchy. [詳解]

MGPickObject の継承関係図
MGGelPosition MGPickObjectCB MGPickObjectFB MGPickObjectSB

公開メンバ関数

 MGPickObject ()
 
 MGPickObject (MGGroup *group, MGObject *obj=0)
 Constructor of no hierarched group(m_Ghierarcy.size()==0). [詳解]
 
 MGPickObject (const MGGelPosition &gelp2)
 constructor. [詳解]
 
 MGPickObject (const MGPickObject &obj2)
 constructor. [詳解]
 
virtual ~MGPickObject ()
 
virtual MGPickObjectoperator= (const MGPickObject &pobj)
 Assignment operator. [詳解]
 
bool operator< (const MGPickObject &po2) const
 
bool operator> (const MGPickObject &po2) const
 
bool operator<= (const MGPickObject &po2) const
 
bool operator>= (const MGPickObject &po2) const
 
virtual MGPickObjectclone () const
 Generate a newed clone object. [詳解]
 
virtual void hilight_using_display_list (double span_length, int line_density) const
 Highlightthe object using the display list of this object. [詳解]
 
MGPositionparameter ()
 Get the parameter value of the object at the picked position. [詳解]
 
const MGPositionparameter () const
 
void set_parameter (const MGPosition &param)
 Set the object parameter value. [詳解]
 
- 基底クラス MGGelPosition に属する継承公開メンバ関数
 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 MGGelPositionoperator= (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 MGGelgel (int i) const
 Return the MGGel i;. [詳解]
 
MGGelgel (int i)
 
void do_add ()
 
void do_remove ()
 
const MGGroupbottom_group () const
 Get the group pointer that includes leaf_gel();. [詳解]
 
MGGroupbottom_group ()
 
const MGGrouptop_group () const
 Get the top group pointer. [詳解]
 
MGGrouptop_group ()
 
MGShellget_shell_of_shell_face () const
 
const MGGroupis_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 MGObjecttop_object () const
 
MGObjecttop_object ()
 
const MGObjectleaf_object () const
 
MGObjectleaf_object ()
 
const MGAttribedGelleafAttribedGel () const
 
MGAttribedGelleafAttribedGel ()
 
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
 
MGAttribedGeltargetGel ()
 

その他の継承メンバ

- 基底クラス MGGelPosition に属する継承限定公開変数類
MGGroupm_group
 
std::vector< MGGel * > m_Ghierarcy
 
MGAttribedGelm_agel
 
MGObjectm_object
 MGAttribedGel(MGGroup for attribute update) pointer. [詳解]
 

詳解

MGPickObject is a class to locate where an object 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. MGPickObject 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; m_object is the leaf MGObject pointer. 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, m_object is the MGFace.

構築子と解体子

MGPickObject::MGPickObject ( )
inline
MGPickObject::MGPickObject ( MGGroup group,
MGObject obj = 0 
)
inlineexplicit

Constructor of no hierarched group(m_Ghierarcy.size()==0).

MGPickObject::MGPickObject ( const MGGelPosition gelp2)
inline

constructor.

MGPickObject::MGPickObject ( const MGPickObject obj2)
inline

constructor.

virtual MGPickObject::~MGPickObject ( )
inlinevirtual

関数詳解

virtual MGPickObject* MGPickObject::clone ( ) const
virtual

Generate a newed clone object.

MGGelPositionを再実装しています。

MGPickObjectFB, MGPickObjectCB, MGPickObjectSBで再実装されています。

virtual void MGPickObject::hilight_using_display_list ( double  span_length,
int  line_density 
) const
virtual

Highlightthe object using the display list of this object.

引数
span_lengthLine segment span length.
line_densityline density to draw a surface in wire mode.

MGPickObjectFB, MGPickObjectCB, MGPickObjectSBで再実装されています。

bool MGPickObject::operator< ( const MGPickObject po2) const
bool MGPickObject::operator<= ( const MGPickObject po2) const
inline
virtual MGPickObject& MGPickObject::operator= ( const MGPickObject pobj)
virtual

Assignment operator.

MGPickObjectFB, MGPickObjectCB, MGPickObjectSBで再実装されています。

bool MGPickObject::operator> ( const MGPickObject po2) const
inline
bool MGPickObject::operator>= ( const MGPickObject po2) const
inline
MGPosition& MGPickObject::parameter ( )
inline

Get the parameter value of the object at the picked position.

const MGPosition& MGPickObject::parameter ( ) const
inline
void MGPickObject::set_parameter ( const MGPosition param)
inline

Set the object parameter value.


このクラス詳解は次のファイルから抽出されました: