Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / mfc / occtdemo / GProps / GProps_Presentation.h
1 // GProps_Presentation.h: interface for the GProps_Presentation class.
2 // Global Properties of Shapes
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_GProps_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
6 #define AFX_GProps_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 class GProp_GProps;
14 class TCollection_AsciiString;
15
16 class GProps_Presentation : public OCCDemo_Presentation
17 {
18 public:
19   // Construction
20   GProps_Presentation();
21
22 public:
23   // Iteration on samples
24   virtual void DoSample();
25   // one phase of iterations
26
27 private:
28   // Sample functions
29   Standard_Boolean GProps(GProp_GProps& aProps, gp_Ax1&,
30     TCollection_AsciiString& theText, TCollection_AsciiString theMassStr);
31
32   void samplePoints();
33   void sampleCurves();
34   void sampleSurfaces();
35   void sampleVolumes();
36   void sampleSystem();
37
38 private:
39   // Array of pointers to sample functions
40   typedef void (GProps_Presentation::*PSampleFuncType)();
41   static const PSampleFuncType SampleFuncs[];
42
43 };
44
45 #endif // !defined(AFX_GProps_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)