MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
sysGL.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGSYSGL_HH_
6 #define _MGSYSGL_HH_
7 
8 #include "mg/MGCL.h"
9 #include "mgGL/VBO.h"
10 #include <iosfwd>
11 
12 class MGGel;
13 class MGOpenGLView;
14 
20 
26 class MG_DLL_DECLR mgSysGL: public mgVBO{
27 
28 public:
29 
31 MG_DLL_DECLR friend std::ostream& operator<< (std::ostream& outp, const mgSysGL& sysgl);
32 
34 
35 mgSysGL();
36 mgSysGL(int fucntion_code,const MGGel* object_id);
37 
39 mgSysGL(const mgSysGL& sp);
40 
42 mgSysGL(mgSysGL& glold,const MGGel* gel_old, const MGGel* gel_new);
43 
44 virtual ~mgSysGL();
45 
47 
49 mgSysGL& operator=(const mgSysGL& sgl);
50 
52 
55 virtual mgSysGL* clone()const;
56 
59 virtual void drawSysGL(){;};
60 
64 
66 virtual void makeSysGLDisplayList(MGOpenGLView& glv);
67 
69 int function_code()const{return m_fucntion_id;};
70 
74 virtual bool includes(const MGGel* gel)const;
75 
78 virtual std::ostream& out(std::ostream& ostrm) const;
79 
82 virtual void replace(const MGGel* gel_old, const MGGel* gel_new);
83 
84 void set_function_code(int fc){m_fucntion_id=fc;};
85 
86 protected:
87 MGGel* object_id()const{return m_gel;};
88 void set_object_id(MGGel* oi){m_gel=oi;};
89 
90 private:
91 
92  int m_fucntion_id;
93  MGGel* m_gel;
94 };
97  // end of DisplayHandling group
99 #endif
Definition: MGCL.h:272
virtual void drawSysGL()
Definition: sysGL.h:59
virtual void make_display_list(MGCL::VIEWMODE vmode=MGCL::DONTCARE)
int function_code() const
Get the i-th ellement's object_id or fucntion_code.
Definition: sysGL.h:69
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
MGGel is an abstract class which represents a group element.
Definition: Gel.h:53
Defines OpenGL display class for MGCL objects.
Definition: openglView.h:43
MGAttribedGel * m_gel
name to register in MGDNameControl.
Definition: VBO.h:454
VIEWMODE
Definition: MGCL.h:271
MGGel * object_id() const
Definition: sysGL.h:87
mgVBO & operator=(const mgVBO &vbo)
Assignment.
void set_object_id(MGGel *oi)
Definition: sysGL.h:88
mgSysGL is a class to provide a facility to draw temporal pictures.
Definition: sysGL.h:26
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
void set_function_code(int fc)
Definition: sysGL.h:84