7fd59977 |
1 | // Sweep_Presentation.h: interface for the Sweep_Presentation class. |
2 | // Sweeping capabilities presentation |
3 | ////////////////////////////////////////////////////////////////////// |
4 | |
5 | #if !defined(AFX_Sweep_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_) |
6 | #define AFX_Sweep_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_ |
7 | |
8 | #if _MSC_VER > 1000 |
9 | #pragma once |
10 | #endif // _MSC_VER > 1000 |
11 | |
12 | #include <OCCDemo_Presentation.h> |
92efcf78 |
13 | class Geom2d_Curve; |
14 | class Geom_Surface; |
7fd59977 |
15 | |
16 | class Sweep_Presentation : public OCCDemo_Presentation |
17 | { |
18 | public: |
19 | // Construction |
20 | Sweep_Presentation(); |
21 | |
22 | public: |
23 | // Iteration on samples |
24 | virtual void DoSample(); |
25 | // one phase of iterations |
26 | |
92efcf78 |
27 | Handle(AIS_InteractiveObject) drawCurveOnSurface |
28 | (const Handle(Geom2d_Curve)& aC2d, |
29 | const Handle(Geom_Surface)& aSurf, |
7fd59977 |
30 | const Quantity_Color& aColor); |
31 | |
32 | private: |
33 | // Sample functions |
34 | void sample1(); |
35 | void sample2(); |
36 | void sample3(); |
37 | void sample4(); |
38 | void sample5(); |
39 | |
40 | private: |
41 | // Array of pointers to sample functions |
42 | typedef void (Sweep_Presentation::*PSampleFuncType)(); |
43 | static const PSampleFuncType SampleFuncs[]; |
44 | |
45 | }; |
46 | |
47 | #endif // !defined(AFX_Sweep_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_) |