1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0031521: Samples - update MFC ImportExport sample to use AIS_ViewController

The following MFC samples have been updated to use AIS_ViewController:
Geometry, HLR, ImportExport, Modeling, OCAF, Triangulation, Viewer2D.
This commit is contained in:
kgv
2020-04-24 17:03:20 +03:00
committed by bugmaster
parent ab9e277f15
commit 7ff18fb9cc
17 changed files with 593 additions and 1447 deletions

View File

@@ -28,9 +28,10 @@ public:
virtual ~OCC_BaseDoc();
Handle(AIS_InteractiveContext)& GetAISContext() { return myAISContext; }
const Handle(AIS_InteractiveContext)& GetAISContext() const { return myAISContext; }
const Handle(AIS_InteractiveContext)& GetInteractiveContext() const { return myAISContext; };
Handle(V3d_Viewer) GetViewer() { return myViewer; }
const Handle(V3d_Viewer)& GetViewer() const { return myViewer; }
// Returns string with supported export pixel and vector images formats.
const CString SupportedImageFormats() const;
@@ -69,6 +70,10 @@ public:
const Standard_Integer /*theMouseY*/,
const Handle(V3d_View)& /*theView*/) {}
//! Callback called by handleMoveTo() on Selection in 3D Viewer.
virtual void OnSelectionChanged (const Handle(AIS_InteractiveContext)& ,
const Handle(V3d_View)& ) {}
void ResetDocumentViews (CDocTemplate* theTemplate);
protected: