📄 mdraw3d.h
字号:
#if !defined(AFX_MDRAW3D_H__2872ED00_F8D2_4113_87E6_CC74B375B924__INCLUDED_)
#define AFX_MDRAW3D_H__2872ED00_F8D2_4113_87E6_CC74B375B924__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
/////////////////////////////////////////////////////////////////////////////
// CMDraw3d wrapper class
class CMDraw3d : public CWnd
{
protected:
DECLARE_DYNCREATE(CMDraw3d)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x18fbe048, 0xc3b1, 0x4867, { 0x93, 0xd4, 0xbd, 0x29, 0xfd, 0xbf, 0x6d, 0x91 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey); }
// Attributes
public:
unsigned long GetBackColor();
void SetBackColor(unsigned long);
unsigned long GetCurrentColor();
void SetCurrentColor(unsigned long);
long GetCurrentMaterial();
void SetCurrentMaterial(long);
long GetCurrentTransparency();
void SetCurrentTransparency(long);
long GetCurrentColorIndex();
void SetCurrentColorIndex(long);
// Operations
public:
long CreateBox(double baseX, double baseY, double baseZ, double dX, double dY, double dZ);
void ZoomAll();
void Redraw();
short SetProj(long viewPos);
short SetMaterial(long handleID, long materialID);
long CreateSphere(double cenX, double cenY, double cenZ, double radius);
long CreateCircleBy3pt(double p0X, double p0Y, double p0Z, double p1X, double p1Y, double p1Z, double p2X, double p2Y, double p2Z);
long CreateRay(double p0X, double p0Y, double p0Z, double p1X, double p1Y, double p1Z);
long CreatePoint(double ptX, double ptY, double ptZ, long type, long size, LPCTSTR text, long texthei);
long CreateCylinder(double radius, double hei);
long SetObjectMaterial(long objID, long materialID);
long DeleteObject(long objID);
long SetObjectTransparency(long objID, long transVal);
long SetObjectColor(long objID, long colorVal);
long CreateCone(double radius0, double radius1, double hei);
long CreateConeEx(double baseX, double baseY, double baseZ, double dirX, double dirY, double dirZ, double radius0, double radius1, double hei, double angle);
long CreateSphereEx(double baseX, double baseY, double baseZ, double radius, double ang0, double ang1, double bang);
long CreateTorus(double tRadius, double cRadius);
long CreateTorusEx(double cenX, double cenY, double cenZ, double dirX, double dirY, double dirZ, double tRadius, double cRadius, double bang);
void DeleteAll();
CString GetOcxPath();
short OpenFile(LPCTSTR fname);
long CreateCircle(double cenX, double cenY, double cenZ, double axisX, double axisY, double axisZ, double radius);
long CreateSegment(double startX, double startY, double startZ, double endX, double endY, double endZ);
void AboutBox();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MDRAW3D_H__2872ED00_F8D2_4113_87E6_CC74B375B924__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -