0023821: Improve qmake project files for Qt samples
[occt.git] / samples / mfc / standard / Common / Primitive / Sample2D_Curve.h
1 #ifndef _Sample2D_Curve_HeaderFile
2 #define _Sample2D_Curve_HeaderFile
3
4 #include <Standard_Macro.hxx>
5 #include <Standard_DefineHandle.hxx>
6
7
8 #include <Quantity_Length.hxx>
9 #include <Aspect_TypeOfline.hxx>
10 #include <Aspect_WidthOfline.hxx>
11 #include <Standard_Integer.hxx>
12 #include <SelectMgr_SelectableObject.hxx>
13 #include <Handle_PrsMgr_PresentationManager2d.hxx>
14 #include <Handle_Graphic2d_GraphicObject.hxx>
15 #include <Handle_SelectMgr_Selection.hxx>
16 #include <Standard_OStream.hxx>
17 #include <Standard_IStream.hxx>
18 #include <Standard_CString.hxx>
19
20 class TColGeom2d_HSequenceOfCurve;
21 class PrsMgr_PresentationManager2d;
22 class Graphic2d_GraphicObject;
23 class SelectMgr_Selection;
24 class ISession2D_ObjectOwner;
25
26 #include "Geom2d_Curve.hxx"
27
28 #include "AIS2D_InteractiveObject.hxx"  
29 DEFINE_STANDARD_HANDLE(Sample2D_Curve,AIS2D_InteractiveObject)
30 class Sample2D_Curve : public AIS2D_InteractiveObject {
31
32 public:
33
34  // Methods PUBLIC
35  // 
36    Standard_EXPORT Sample2D_Curve(const Handle_Geom2d_Curve aGeom2dCurve,
37                   const Standard_Integer aTypeOfline = 1,
38                   const Standard_Integer aWidthOfLine = 1,
39                   const Standard_Integer aColorIndex = 4);
40
41 inline   Standard_Integer  GetTypeOfLineIndex
42                               () const;
43 inline   void               SetTypeOfLineIndex
44                               (const Standard_Integer aNewTypeOfLineIndex) ;
45 inline   Standard_Integer GetWidthOfLineIndex
46                               () const;
47 inline   void               SetWidthOfLineIndex
48                               (const Standard_Integer aNewWidthOfLineIndex) ;
49 inline   Standard_Integer   GetColorIndex
50                               () const;
51 inline   void               SetColorIndex
52                               (const Standard_Integer aNewColorIndex) ;
53
54 DEFINE_STANDARD_RTTI(Sample2D_Curve)
55
56
57 protected:
58
59  // Methods PROTECTED
60  // 
61
62
63  // Fields PROTECTED
64  //
65
66
67 private: 
68
69  // Methods PRIVATE
70  // 
71 virtual  void SetContext(const Handle(AIS2D_InteractiveContext)& theContext) ;
72
73
74  // Fields PRIVATE
75  //
76 Handle_Geom2d_Curve myGeom2dCurve;
77 Standard_Integer   myTypeOfLineIndex;
78 Standard_Integer  myWidthOfLineIndex;
79 Standard_Integer    myColorIndex;
80
81
82 };
83
84
85
86 // other inCurve functions and methods (like "C++: function call" methods)
87 //
88
89
90 inline  Standard_Integer Sample2D_Curve::GetTypeOfLineIndex() const
91 {
92   return myTypeOfLineIndex ;
93 }
94  
95 inline  void Sample2D_Curve::SetTypeOfLineIndex(const Standard_Integer aNewTypeOfLineIndex) 
96 {
97   myTypeOfLineIndex = aNewTypeOfLineIndex;
98 }
99
100 inline  Standard_Integer Sample2D_Curve::GetWidthOfLineIndex() const
101 {
102   return myWidthOfLineIndex ;
103 }
104
105 inline  void Sample2D_Curve::SetWidthOfLineIndex(const Standard_Integer aNewWidthOfLineIndex) 
106 {
107   myWidthOfLineIndex = aNewWidthOfLineIndex;
108 }
109
110 inline  Standard_Integer Sample2D_Curve::GetColorIndex() const
111 {
112   return myColorIndex ;
113 }
114
115 inline  void Sample2D_Curve::SetColorIndex(const Standard_Integer aNewColorIndex) 
116 {
117   myColorIndex = aNewColorIndex;
118 }
119
120  
121
122
123 #endif