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

Defines a list of mgSysGL. [詳解]

公開型

typedef std::list< mgSysGL * > container_type
 
typedef container_type::iterator iterator
 
typedef
container_type::const_iterator 
const_iterator
 

公開メンバ関数

 mgSysGLList ()
 
 mgSysGLList (const mgSysGLList &list2)
 Copy constructor. [詳解]
 
 ~mgSysGLList ()
 
mgSysGLListoperator= (const mgSysGLList &list2)
 Assignment operator. [詳解]
 
void clear ()
 オペレーション [詳解]
 
bool delete_lists_by_function_code (int fc)
 
bool delete_lists_by_object_id (const MGGel *oi, MGPvector< mgSysGL > &functions)
 
bool delete_lists_by_function_object_code (int fc, const MGGel *gel)
 
void draw_list (MGCL::VIEWMODE vMode)
 
mgSysGLgetSysGLByFunctionCode (int fc)
 
bool includes (int fc) const
 Test if this list includes the fucntion code fc's SysGL or not. [詳解]
 
mgSysGLpush_back (int fc, const MGGel *oi)
 
mgSysGLpush_front (int fc, const MGGel *oi)
 
void push_back (mgSysGL *sysgl)
 
int size () const
 Get the size of this list. [詳解]
 

詳解

Defines a list of mgSysGL.

mgSysGLList is a class to constrol system generated display list. System generated display list means the display lists not generated from the document, m_display_list of the document. mgSysGLList returns a display list name(mgVBO*) when an mgSysGL(fucntion code, object id) is added(push_back, or push_front). Using the display list name, mgSysGLList invokes mgVBO->draw(). Then mgSysGLList will manage to delete the display list, giving the fucntion code or the object id.

型定義メンバ詳解

typedef container_type::const_iterator mgSysGLList::const_iterator
typedef std::list<mgSysGL*> mgSysGLList::container_type
typedef container_type::iterator mgSysGLList::iterator

構築子と解体子

mgSysGLList::mgSysGLList ( )
mgSysGLList::mgSysGLList ( const mgSysGLList list2)

Copy constructor.

mgSysGLList::~mgSysGLList ( )

関数詳解

void mgSysGLList::clear ( )

オペレーション

const_iterator begin()const{return m_sysgls.begin();}; iterator begin(){return m_sysgls.begin();}; Clear the list. Delete all the display lists. makeRCCurrent() of MGOpenGLView is necessary to use.

bool mgSysGLList::delete_lists_by_function_code ( int  fc)

Delete all the display lists that have the fucntion_code fc. makeRCCurrent() of MGOpenGLView is necessary to use. function's retrurn value is true if any one is deleted.

bool mgSysGLList::delete_lists_by_function_object_code ( int  fc,
const MGGel gel 
)

Delete the display list that have the fucntion_code fc and the object id gel. makeRCCurrent() of MGOpenGLView is necessary to use. function's retrurn value is true if any one is deleted.

bool mgSysGLList::delete_lists_by_object_id ( const MGGel oi,
MGPvector< mgSysGL > &  functions 
)

Delete all the display lists that have the object_id oi. makeRCCurrent() of MGOpenGLView is necessary to use. function's retrurn value is true if any one is deleted.

引数
oitarget gel to delete.
functionsmgSysGL pointer will be appended.
void mgSysGLList::draw_list ( MGCL::VIEWMODE  vMode)

Draw all the objects by calling glCallList in this list. makeRCCurrent() of MGOpenGLView is necessary to use.

mgSysGL* mgSysGLList::getSysGLByFunctionCode ( int  fc)
bool mgSysGLList::includes ( int  fc) const

Test if this list includes the fucntion code fc's SysGL or not.

mgSysGLList& mgSysGLList::operator= ( const mgSysGLList list2)

Assignment operator.

mgSysGL* mgSysGLList::push_back ( int  fc,
const MGGel oi 
)

const_iterator end()const{return m_sysgls.end();}; iterator end(){return m_sysgls.end();}; Push back (function_code, object id) to the end or the beginning of the list. Function's return value is the mgSysGL pointer pushed.

void mgSysGLList::push_back ( mgSysGL sysgl)

sysgl must be a newed object, and the ownership will be transfered to this.

mgSysGL* mgSysGLList::push_front ( int  fc,
const MGGel oi 
)
int mgSysGLList::size ( ) const
inline

Get the size of this list.


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