MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
sysGLList.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGSYSGLList_HH_
6 #define _MGSYSGLList_HH_
7 
8 #include <vector>
9 #include <utility>
10 #include <bitset>
11 #include <list>
12 #include "mg/MGCL.h"
13 #include "mg/Pvector.h"
14 #include "mgGL/sysGL.h"
15 
16 class MGGel;
17 class MGCurve;
18 
23 
33 class MG_DLL_DECLR mgSysGLList{
34 
35 public:
36 
37 typedef std::list<mgSysGL*> container_type;
38 
39 typedef container_type::iterator iterator;
40 typedef container_type::const_iterator const_iterator;
41 
43 
44 mgSysGLList();
45 
47 mgSysGLList(const mgSysGLList& list2);
48 
50 ~mgSysGLList();
51 
53 
55 mgSysGLList& operator=(const mgSysGLList& list2);
56 
58 
61 
64 void clear();
65 
69 bool delete_lists_by_function_code(int fc);
70 
74 bool delete_lists_by_object_id(
75  const MGGel* oi,
76  MGPvector<mgSysGL>& functions
77 );
78 
82 bool delete_lists_by_function_object_code(int fc, const MGGel* gel);
83 
86 void draw_list(MGCL::VIEWMODE vMode);
87 
88 //ファンクションコードに対応するSysGLを取得する
89 mgSysGL* getSysGLByFunctionCode(int fc);
90 
92 bool includes(int fc)const;
93 
96 
99 mgSysGL* push_back(int fc, const MGGel* oi);
100 mgSysGL* push_front(int fc, const MGGel* oi);
101 
104 void push_back(mgSysGL* sysgl);
105 
107 int size()const{return int(m_sysgls.size());};
108 
109 private:
110 
112 container_type m_sysgls;
113 
114 };
115  // end of DisplayHandling group
117 #endif
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
MGGel is an abstract class which represents a group element.
Definition: Gel.h:53
container_type::iterator iterator
Definition: sysGLList.h:39
VIEWMODE
Definition: MGCL.h:271
Defines a list of mgSysGL.
Definition: sysGLList.h:33
container_type::const_iterator const_iterator
Definition: sysGLList.h:40
int size() const
Get the size of this list.
Definition: sysGLList.h:107
std::list< mgSysGL * > container_type
Definition: sysGLList.h:37
mgSysGL is a class to provide a facility to draw temporal pictures.
Definition: sysGL.h:26
Defines Vector of newed object pointers.
Definition: Pvector.h:27