01BIM社区

 找回密码
 立即注册

扫一扫,访问微社区

查看: 2128|回复: 2

CGLView类和COpenGLDC类成员变量函数表

[复制链接]

156

主题

647

帖子

2540

积分

金牌会员

Rank: 6Rank: 6

积分
2540
发表于 2015-10-30 13:39:58 | 显示全部楼层 |阅读模式
本帖最后由 tzbm123456 于 2015-10-30 13:43 编辑

 
CGLView

变量
protected:

COpenGLDC*
m_pGLDC;
 
BOOL
m_bDragMove;
 
CPoint
m_lastPoint;
函数
protected:


CGLView();
 
DECLARE_DYNCREATE(CGLView)
 
public:

virtual void
OnDraw(CDC*  pDC);
 
virtual BOOL
PreCreateWindow(CREATESTRUCT&  cs);
 
public:

virtual
~CGLView();
 
protected:

afx_msg int
OnCreate(LPCREATESTRUCT  lpCreateStruct);
 
afx_msg void
OnDestroy();
 
afx_msg void
OnSize(UINT nType,  int cx, int cy);
 
afx_msg BOOL
OnEraseBkgnd(CDC*  pDC);
 
afx_msg void
OnKeyDown(UINT nChar,  UINT nRepCnt, UINT nFlags);
 
afx_msg void
OnChar(UINT nChar,  UINT nRepCnt, UINT nFlags);
 
afx_msg void
OnLButtonDown(UINT  nFlags, CPoint point) ;
 
afx_msg void
OnMouseMove(UINT  nFlags, CPoint point);
 
afx_msg void
OnMButtonDown(UINT  nFlags, CPoint point);
 
DECLARE_MESSAGE_MAP()
 
virtual BOOL
GetBox(double&  x0,double& y0,double& z0,double& x1,double& y1,double&  z1);
 
void
Zoom(double dScale);
 
void
ZoomAll();
 
void
OnViewType(UINT  type);
 
void
MoveView(double  dpx,double dpy);
 
public:

void
setDragMove(BOOL  bOn);

回复

使用道具 举报

156

主题

647

帖子

2540

积分

金牌会员

Rank: 6Rank: 6

积分
2540
 楼主| 发表于 2015-10-30 13:41:21 | 显示全部楼层
本帖最后由 tzbm123456 于 2015-10-30 13:44 编辑

 
COpenGLDC

private:

HWND
m_hWnd;
 
HGLRC
m_hRC;
 
HDC
m_hDC;
 
COLORREF
m_clrBk;
 
COLORREF
m_clr;
 
COLORREF
m_clrHighlight;
 
COLORREF
m_clrMaterial;
 
BOOL
m_bShading;
 
GLfloat
m_vecLight[3];
 
BOOL
m_bSelectionMode;
 
GLuint
m_selectBuff[BUFFER_LENGTH];
 
public:

GCamera
m_Camera;
 
 
public:


COpenGLDC(HWND  hWnd);
 
virtual
~COpenGLDC();
 
protected:

void
ClearBkground();
 
void
OnShading();
 
public:

BOOL
InitDC();
 
void
GLResize(int  cx,int cy);
 
void
GLSetupRC();
 
void
Ready();
 
void
Finish();
 
void
Shading(BOOL  bShading);
 
BOOL
IsShading();
 
void
Lighting(BOOL  bLighting);
 
BOOL
BOOL  IsLighting();
 
void
SetLightDirection(float  dx,float dy,float dz);
 
void
GetLightDirection(float&  dx,float& dy,float& dz);
 
void
SetMaterialColor(COLORREF  clr);
 
void
GetMaterialColor(COLORREF&  clr);
 
void
SetBkColor(COLORREF  rgb);
 
void
GetBkColor(COLORREF&  rgb);
 
void
SetColor(COLORREF  rgb);
 
void
GetColor(COLORREF&  rgb);
 
void
SetHighlightColor(COLORREF  clr);
 
void
GetHighlightColor(COLORREF&  clr);
 
void
Highlight(BOOL  bLight = TRUE);
 
void
DrawPoint(const  CPoint3D&);
 
void
DrawCoord();
 
void
DrawLine(const  CPoint3D& sp,const CPoint3D& ep);
 
void
DrawPolyline(const  CPoint3D* pt,int size);
 
void
DrawBezierCurve(const  CPoint3D* pt,int size);
 
void
DrawBezierSurface(const  CPoint3D* pt,int uSize,int vSize);
 
void
DrawNurbsCurve(const  CPoint3D* pts,int size,int order,float* knots = NULL);
 
void
DrawNurbsSurface(const  CPoint3D* pts,int uSize,int vSize,int uOrder,int vOrder,
 
void
DrawTriChip(double  n0,double n1,double n2,double v00,double v01,double v02,double v10,double  v11,double v12,double v20,double v21,double v22);
 
void
DrawSphere(const  CPoint3D& cen,double r,const CVector3D& vec);
 
void
DrawCylinder(const  CPoint3D& cen,double r,const CVector3D& h);
 
void
DrawCone(const  CPoint3D& cen,double r,const CVector3D& h);
 
void
DrawTorus(const  CPoint3D& cen,const CVector3D& ax,double r_in,double r_out);
 
void
BeginSelection(int  xPos,int yPos);
 
int
EndSelection(UINT*  items);
 
BOOL
IsSelectionMode();
 
void
InitNames();
 
void
LoadName(UINT  name);
 
void
PushName(UINT  name);
 
void
PopName();

回复 支持 反对

使用道具 举报

0

主题

55

帖子

740

积分

高级会员

Rank: 4

积分
740
发表于 2016-2-26 13:10:05 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|01BIM社区 - 最专业的BIM技术交流平台 ( 渝ICP备15000873号 )

GMT+8, 2024-5-12 21:38 , Processed in 0.376559 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表