7fd59977 |
1 | // TopLProps_Presentation.h: interface for the TopLProps_Presentation class. |
2 | // Presentation class: Determine the local properties of shapes. |
3 | ////////////////////////////////////////////////////////////////////// |
4 | |
5 | #if !defined(AFX_TopLProps_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_) |
6 | #define AFX_TopLProps_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> |
13 | //#include <Geom_BSplineSurface.hxx> |
14 | #include <TopoDS_Edge.hxx> |
15 | #include <TopoDS_Face.hxx> |
16 | |
17 | class TopLProps_Presentation : public OCCDemo_Presentation |
18 | { |
19 | public: |
20 | // Construction |
21 | TopLProps_Presentation(); |
22 | |
23 | public: |
24 | // Iteration on samples |
25 | virtual void DoSample(); |
26 | // one phase of iterations |
27 | |
28 | private: |
29 | // Sample functions |
30 | void sample1(); |
31 | void sample2(); |
32 | void sample3(); |
33 | void sample4(); |
34 | void showEdgeLProps(TopoDS_Edge& theEdge, |
35 | const Standard_Integer theNbPoints, |
36 | const Standard_Real thePoints[]); |
37 | void showFaceLProps(TopoDS_Face& theFace, |
38 | const Standard_Integer theNbPoints, |
39 | const Standard_Real thePoints[][2]); |
40 | |
41 | private: |
42 | // Array of pointers to sample functions |
43 | typedef void (TopLProps_Presentation::*PSampleFuncType)(); |
44 | static const PSampleFuncType SampleFuncs[]; |
45 | |
46 | }; |
47 | |
48 | #endif // !defined(AFX_TopLProps_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_) |