mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-21 10:55:33 +03:00
- OCAF sample Save Document option: corrected conversion from LPCTSTR to Standard_CString - HLR sample: corrected mouse move event handling for HLR 2D view; Corrected CSelectionDialog view displaying and updating - Geometry sample: CGeometryDoc correction to avoid code duplication - OCC_3dBaseDoc: corrected DragEvent() handler for proper emulation of rectangle selection. - Viewer3d sample: moved resource files (resource.h; resource.hm; AISToolbar.bmp) from /src to /res Code style changes Fixed "About" dialog error in release. Corrected dimension dialogs Workaround for dimensions sample: AIS_LocalContext::SelectedShape() doesn't take into account TopoDS shape local transformation, and operates with selected interactive transformation.
65 lines
2.3 KiB
C++
Executable File
65 lines
2.3 KiB
C++
Executable File
// HLRView.h : interface of the CHLRView2D class
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_)
|
|
#define AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
#include "HLRDoc.h"
|
|
#include <OCC_2dView.h>
|
|
#include "Resource2d/RectangularGrid.h"
|
|
#include "Resource2d/CircularGrid.h"
|
|
|
|
|
|
class CHLRView2D : public OCC_2dView
|
|
{
|
|
protected: // create from serialization only
|
|
CHLRView2D();
|
|
DECLARE_DYNCREATE(CHLRView2D)
|
|
|
|
// Override MouseMove event to exclude rectangle selection emulation as
|
|
// no selection is supported in DragEvent2D for this view.
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CHLRView2D)
|
|
protected:
|
|
virtual void OnInitialUpdate(); // called first time after construct
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CHLRView2D();
|
|
CHLRDoc* GetDocument();
|
|
virtual void DragEvent2D (const Standard_Integer x,
|
|
const Standard_Integer y,
|
|
const Standard_Integer TheState);
|
|
virtual void InputEvent2D (const Standard_Integer x,
|
|
const Standard_Integer y);
|
|
virtual void MoveEvent2D (const Standard_Integer x,
|
|
const Standard_Integer y );
|
|
virtual void MultiMoveEvent2D (const Standard_Integer x,
|
|
const Standard_Integer y );
|
|
virtual void MultiDragEvent2D (const Standard_Integer x,
|
|
const Standard_Integer y ,
|
|
const Standard_Integer TheState);
|
|
virtual void MultiInputEvent2D (const Standard_Integer x,
|
|
const Standard_Integer y );
|
|
#ifdef _DEBUG
|
|
virtual void AssertValid() const;
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
#endif
|
|
};
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_)
|