1 // Glue_Presentation.h: interface for the Glue_Presentation class.
2 // Glue two solid shapes with contiguous faces
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_Glue_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
6 #define AFX_Glue_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
10 #endif // _MSC_VER > 1000
12 #include <OCCDemo_Presentation.h>
14 class TCollection_AsciiString;
16 class AIS_InteractiveObject;
17 #include <TopTools_ListOfShape.hxx>
19 class Glue_Presentation : public OCCDemo_Presentation
26 // Iteration on samples
27 virtual void DoSample();
28 // one phase of iterations
33 // displays the shapes to be glued, given same domain faces and edges
34 // and at last - the glued shape
35 Standard_Boolean displayShapesFaces(TopoDS_Shape&, TopoDS_Shape&,
36 TopoDS_Shape&, TopTools_ListOfShape&, TopTools_ListOfShape&,
37 TopTools_ListOfShape&, TopTools_ListOfShape&);
39 // display a given shape in wire frame mode
40 Standard_Boolean drawShapeWf(TopoDS_Shape&,Handle(AIS_InteractiveObject)&);
42 // display a given shape in shaded mode
43 Standard_Boolean drawShapeSh(TopoDS_Shape&,Handle(AIS_InteractiveObject)&);
46 void sampleCylinder();
47 void sampleMoreBoxes();
50 // Array of pointers to sample functions
51 typedef void (Glue_Presentation::*PSampleFuncType)();
52 static const PSampleFuncType SampleFuncs[];
56 #endif // !defined(AFX_Glue_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)