mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
80 lines
1.9 KiB
C++
Executable File
80 lines
1.9 KiB
C++
Executable File
// NSGViewBib.h : interface of the CNSGView class
|
|
//
|
|
|
|
#if !defined(AFX_NSGVIEWBIB_H__7BCE3513_40A8_11D1_8BEC_00C04FB657CF__INCLUDED_)
|
|
#define AFX_NSGVIEWBIB_H__7BCE3513_40A8_11D1_8BEC_00C04FB657CF__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
|
|
#include <OCC_2dView.h>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
/*
|
|
enum CurrentAction2d {
|
|
CurAction_Nothing,
|
|
CurAction_DynamicZooming,
|
|
CurAction_WindowZooming,
|
|
CurAction_DynamicPanning,
|
|
CurAction_GlobalPanning,
|
|
};
|
|
*/
|
|
#define ValZWMin 1
|
|
|
|
|
|
|
|
class CGeometryView2D : public OCC_2dView
|
|
{
|
|
protected: // create from serialization only
|
|
CGeometryView2D();
|
|
DECLARE_DYNCREATE(CGeometryView2D)
|
|
|
|
// Attributes
|
|
public:
|
|
CGeometryDoc* GetDocument();
|
|
public:
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CNSGViewBib)
|
|
public:
|
|
virtual void OnDraw(CDC* pDC); // overridden to draw this view
|
|
virtual void OnInitialUpdate(); // called first time after construct
|
|
|
|
//}}AFX_VIRTUAL
|
|
|
|
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CGeometryView2D();
|
|
#ifdef _DEBUG
|
|
virtual void AssertValid() const;
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
#endif
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CGeometryView2D)
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
|
afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
|
|
afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
|
|
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
|
|
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
#ifndef _DEBUG // debug version in NSGViewBibliotheque.cpp
|
|
inline CGeometryDoc* CGeometryView2D::GetDocument()
|
|
{ return (CGeometryDoc*)m_pDocument; }
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#endif
|