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