MGCL V10
V10
MGCL V10
|
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 () | |
mgSysGLList & | operator= (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) |
mgSysGL * | getSysGLByFunctionCode (int fc) |
bool | includes (int fc) const |
Test if this list includes the fucntion code fc's SysGL or not. [詳解] | |
mgSysGL * | push_back (int fc, const MGGel *oi) |
mgSysGL * | push_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.
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.
oi | target gel to delete. |
functions | mgSysGL 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.
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.
|
inline |
Get the size of this list.