Дипломная работа: Разработка программного обеспечения для голосового управления трехмерными моделями функционирования промышленных роботов
BITMAPINFO *m_pBMI; BYTE
*m_pBits; BOOL mbMyBits; private:
int DibHeightO
(return
m_pBMI->bmiHeader.biHeight;} int DibWidthQ
(return
m_pBMI->bmiHeader.biWidth;} int StorageWidthO
(return
(((m_pBMI->bmiHeader.biWidth * m_pBMI->bmiHeader.biBitCount)}}; class
CDIBPal. public CPalette (public:
CDIBPalO;
~CDIBPal();
BOOL Create(CDIB *pDIB);
BOOL Create(BITMAPINFO*
pBMI);
BOOL Create(RGBQUAD*
pRGB, int iClrs);
void Draw(CDC *pDC, CRect
*pRect, BOOL bBkgnd = FALSE);
void Draw(HDC hDC, RECT*
pRect, BOOL bBkgnd = FALSE);
int GetNumColorsQ;
BOOL SetSysPalColors();
BOOL Load(const char*
pszFileName = NULL);
BOOL Load(CFile* fp);
BOOL Load(UINT hFile);
BOOL Load(HMMIO hmmio);
BOOL Save(const char*
pszFileName = NULL);
BOOL Save(CFile* fp);
BOOL SavefUTNT hFile);
BOOL Save(HMMIO hmmio);
BOOL CreateWash();
BOOL
CreateSystemColorPaletteO;}; typedef HDC (WLNGAPI WinGCreateDCProc)(void);
typedef HBITMAP (WLNGAPI WinGCreateBitmapProc)(HDC WinGDC,
const BITMAPINFO*
pHeader, void** ppBits);
typedef UINT (WLNGAPI
WinGSetDIBColorTableProc)(HDC WinGDC,
UINT Startlndex,
UINT NumberOfEntries,
const RGBQUAD* pCoIors);
typedef BOOL (WLNGAPI
WinGBitBlfProc)(HDC hdcDest, int nXOriginDest,int
nYOriginDest, int
nWidthDest,int nHeightDest,HDC hdcSrc, int nXOriginSrc,
int nYOriginSrc);
typedef BOOL (WINGAPI
WinGStretchBltProcXHDC hdcDest, int
nXOriginDest,int
nYOriginDest,int nWidthDest,int nHeightDest, HDC hdcSrc,irt
nXOriginSrc, int
nYOriginSrc, int nWidthSrc, int nHeightSrc);
class CDIBSurface: public
CDIB { DECLARE_SERIAL(CDrBSurface) public: CDIBSurfaceQ; -CDIBSurfaceO; public:
CDC* GetDCO {return
&m_dcBuffer;} HDC GetHDCQ {return (HDC) m_dcBuffer.GetSafeHdc();} public:
BOOL Create(int cx, int
cy, CPalette* pPal = NULL); BOOL Create(int width, int height, HP ALETTE hPal);
void BitBlt(CDC* pDC, int xd, int yd, int w, int h,
int xs, int ys); void
BitBlt(HDC hDC, int xd, int yd, int w, int h,
int xs, int ys);
void StretchBlt(CDC* pDC,
int xd, int yd, int wd, int hd,
int xs, int ys, int ws,
int hs); void Draw(CDC* pDC); void Draw(HDC hDC, int x, int y); void
SefPalettelCPalette* pPal);
BOOL Load(const char*
pszFileName = NULL);
BOOL
MapColorsToPalette(CPalette *pPal);
BOOL
MapColorsToPalette(HPALETTE hPal); protected:
CPalette* m_pPal;
HP ALETTE m_hPal;
CDC m_dcBuffer; private:
static BOOL
mbUseCreateDIBSection;
static BOOL mbUseWinG;
static WinGCreateDCProc*
m_pWinGCDCProc;
static
WinGCreateBitmapProc* m_pWinGCBProc;
static
WinGSetDIBColorTableProc* m_pWinGSDCTProc;
static WinGBitBltProc*
mjpWinGBBProe;
static
WinGStretchBltProc* m_pWinGSBProc;
HBITMAP mhbmBufFer;
HBITMAP mhbmOld;
static BOOL
CDIBSurface::TestPlatform();}; class COSBView: public CScrollView {protected:
COSBViewQ;
DECLAREDYNCREATE(COSBView)
public:
CDocument* GetDocumentO;
CDIB* GetDffiO {return m_pDIBSurf;} CDIBPal* GetPaletteQ {return m_pPal;} CDC*
GetBufferDCO; public:
BOOL Create(CDIB* pDIB);
BOOL Create(int w, int h, CPalette* pPal); void Draw(CRect* pClipRect = NULL);
virtual void RenderfCRect* pClipRect = NULL) {return;} void AddDirtyRegion(CRect*
pRect); void RenderAndDrawDirtyListO; public: virtual -COSBViewQ; virtual void
OnDraw(CDC* pDC); virtual void OnInitialUpdate(); virtual void OnUpdate{CView*
pSender,
LP ARAM Hint,
CObject* pHint);
virtual void
AssertValid() const;
virtual void
Dump(CDumpContext& dc) const; protected:
CDIBSurface* mjpDIBSurf;
CDffiPal* m_pPal;
private:
CObList mDirtyList;
void EmptyDirtyList();
protected:
afxmsg void
OnPaletteChanged(CWnd* pFocusWnd);
afxmsg BOOL
OnQueryNewPalette();
afxmsg BOOL OnEraseBkgnd(CDC*
pDC);
DECLAREMESSAGEMAPO};
inline CDocument* COSBView::GetDocument()
{ return (CDocument*)
m_pDocument; } class CSprite;
class CSpriteNotifyObj:
public CObject {public:
enum CHANGETYPE { ZORDER =0x0001,
POSITION =0x0002, IMAGE 0x0004 };
public:
virtual void
Change(CSprite *pSprite,CHANGETYPE change, CRect*
pRectl = NULL, CRect*
pRect2 = NULL) = 0;};
class CSprite: public
CDBB { DECLARE_SERIAL(CSprite) public:
CSprite();
~CSprite();
virtual int GetXQ {
return m_x;} // get x
virtual int GetY() { return
m_y;} // get y
virtual int GetZ() {
return m_z;} // get z order
virtual void Render(CDIB*
pDIB, CRect* pClipRect = NULL);
virtual BOOL
HitTest(CPoint point);
virtual void
SetPosition(int x, int y);
virtual void SetZ(int z);
virtual void
SetNotificationObject(CSpriteNotifyObj* pNO)
{m_pNotifyObj = pNO;}
virtual void Serialize(CArchive& ar); virtual BOOL Load(CFile *fp); virtual
BOOL Load(char *pszFileName = NULL); virtual BOOL Load(WORD wResid);
Формат |
Зона |
Поз. |
Позначення |
Назва |
Кільк. |
Примітка |
|
|
|
|
|
|
|
|
|
1 |
ГЮИК.
505330.002 ПЗ |
Текстові
документи |
|
|
|
|
|
|
Пояснювальна
записка |
1 |
___ |
|
|
|
|
|
|
арк. ф.А.4 |
|
|
|
|
|
|
|
|
|
|
|
Графічні документи
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Елементи
текстів програмного коду |
|
|
|
|
|
|
файл формату
*.doc |
1 |
__ арк. ф. |
|
|
|
|
|
|
А4 |
|
|
|
|
|
|
|
|
|
|
|
Демонстраційний
графічний матеріал |
|
|
|
|
|
|
у вигляді
презентації, файл формату |
1 |
__ арк. ф. |
|
|
|
|
*.ppt |
|
А4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ГЮИК.
505330.002
ВД |
|
|
|
|
|
|
|
№ докум |
Підп. |
Дата |
Виконав
|
|
|
|
Голосове
керування тривимірними моделями функціонування ПР
відомість
дипломної роботи
|
Літера |
Аркушш |
Аркушів |
Перевір. |
|
|
|
|
|
|
|
1 |
Н.контр. |
|
|
|
ХНУРЕ
КАФЕДРА
ТАВР
|
|
|
|
|
Затв.
|
Невлюдов |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Страницы: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 |