| 1 | // Primitives_Presentation.h: interface for the Primitives_Presentation class. |
| 2 | // |
| 3 | ////////////////////////////////////////////////////////////////////// |
| 4 | |
| 5 | #if !defined(AFX_Primitives_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_) |
| 6 | #define AFX_Primitives_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 | |
| 14 | class Primitives_Presentation : public OCCDemo_Presentation |
| 15 | { |
| 16 | public: |
| 17 | // Construction |
| 18 | Primitives_Presentation(); |
| 19 | |
| 20 | public: |
| 21 | // Iteration on samples |
| 22 | virtual void DoSample(); |
| 23 | // one phase of iterations |
| 24 | |
| 25 | private: |
| 26 | // Sample functions |
| 27 | void sample1(); |
| 28 | void sample2(); |
| 29 | void sample3(); |
| 30 | void sample4(); |
| 31 | void sample5(); |
| 32 | |
| 33 | private: |
| 34 | // Array of pointers to sample functions |
| 35 | typedef void (Primitives_Presentation::*PSampleFuncType)(); |
| 36 | static const PSampleFuncType SampleFuncs[]; |
| 37 | |
| 38 | }; |
| 39 | |
| 40 | #endif // !defined(AFX_Primitives_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_) |