cogeometries.hxx
来自「有限元学习研究用源代码(老外的),供科研人员参考」· HXX 代码 · 共 47 行
HXX
47 行
#ifndef cogeometries_hxx
#define cogeometries_hxx
// collects the standard geometries
#ifndef cog_hxx
#include "cog.hxx"
#endif
#include "cogpoint.hxx"
#include "cog1d.hxx"
#include "cogfunction.hxx"
#include "cogpair.hxx"
#include "cogsimple.hxx"
void cogToGL(cogeometry g); // cog2gl.cxx
void cogToGL(cogeometry g, cogeometry g1); // cog2gl.cxx
void cogToGL(cogeometry g, cogeometry g1,cogeometry g2); // cog2gl.cxx
void cogToGL(cogeometry g, cogeometry g1,cogeometry g2,cogeometry g3);
inline void cogOutput(cogeometry g){cogToGL(g);}
inline void cogOutput(cogeometry g,cogeometry g1){cogToGL(g,g1);}
inline void cogOutput(cogeometry g,cogeometry g1,cogeometry g2)
{cogToGL(g,g1,g2);}
inline void cogOutput(cogeometry g,cogeometry g1,cogeometry g2,cogeometry g3)
{cogToGL(g,g1,g2,g3);}
class cogViewer{
public:
virtual void add(cogeometry g, char* name="", char* title="")=0;
virtual void show()=0;
virtual void reset()=0;
};
class cogGLViewer: public cogViewer{
void *rnd;int i;
public:
cogGLViewer(char *title="");
void add(cogeometry g, char* name="", char* title="");
void show();
void reset();
~cogGLViewer();
};
extern cogViewer& cogView;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?