Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / mfc / standard / Common / Primitive / Sample2D_Rectangle.h
1 #ifndef _Sample2D_Rectangle_HeaderFile
2 #define _Sample2D_Rectangle_HeaderFile
3
4 #include <Standard_Macro.hxx>
5 #include <Standard_DefineHandle.hxx>
6
7 DEFINE_STANDARD_HANDLE(Sample2D_Rectangle,AIS2D_InteractiveObject)
8 class Sample2D_Rectangle : public AIS2D_InteractiveObject {
9
10 public:
11
12  // Methods PUBLIC
13  // 
14  Standard_EXPORT Sample2D_Rectangle (Quantity_Length     XPosition ,
15                      Quantity_Length     YPosition ,
16                      Quantity_Length     aWidth    ,
17                      Quantity_Length     anHeight  ,
18                      Quantity_PlaneAngle anAngle   );
19
20
21 DEFINE_STANDARD_RTTI(Sample2D_Rectangle)
22
23
24 Standard_EXPORT virtual void SetContext(const Handle(AIS2D_InteractiveContext)& theContext);
25
26
27 protected:
28
29  // Methods PROTECTED
30  // 
31
32
33  // Fields PROTECTED
34  //
35
36
37 private: 
38
39  // Methods PRIVATE
40  // 
41  // Fields PRIVATE
42  //
43
44 Quantity_Length          myXPosition   ; 
45 Quantity_Length          myYPosition   ; 
46 Quantity_Length          myWidth       ;
47 Quantity_Length          myHeight      ;
48 Quantity_PlaneAngle      myAngle       ;
49
50 Graphic2d_Array1OfVertex myArray1OfVertex;
51 void  ComputeArrayOfVertex();
52
53 };
54
55
56
57 // other inCurve functions and methods (like "C++: function call" methods)
58 //
59
60
61
62 #endif