Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / java / inc / ISession2D_Curve.hxx
1 // File generated by CPPExt (Transient)
2 //
3 //                     Copyright (C) 1991,1995 by
4 //  
5 //                      MATRA DATAVISION, FRANCE
6 //  
7 // This software is furnished in accordance with the terms and conditions
8 // of the contract and with the inclusion of the above copyright notice.
9 // This software or any other copy thereof may not be provided or otherwise
10 // be made available to any other person. No title to an ownership of the
11 // software is hereby transferred.
12 //  
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
15 //
16 #ifndef _ISession2D_Curve_HeaderFile
17 #define _ISession2D_Curve_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_ISession2D_Curve_HeaderFile
23 #include <Handle_ISession2D_Curve.hxx>
24 #endif
25
26 #ifndef _Handle_Geom2d_Curve_HeaderFile
27 #include <Handle_Geom2d_Curve.hxx>
28 #endif
29 #ifndef _Aspect_TypeOfLine_HeaderFile
30 #include <Aspect_TypeOfLine.hxx>
31 #endif
32 #ifndef _Aspect_WidthOfLine_HeaderFile
33 #include <Aspect_WidthOfLine.hxx>
34 #endif
35 #ifndef _Standard_Integer_HeaderFile
36 #include <Standard_Integer.hxx>
37 #endif
38 #ifndef _Standard_Boolean_HeaderFile
39 #include <Standard_Boolean.hxx>
40 #endif
41 #ifndef _Standard_Real_HeaderFile
42 #include <Standard_Real.hxx>
43 #endif
44 #ifndef _AIS_InteractiveObject_HeaderFile
45 #include <AIS_InteractiveObject.hxx>
46 #endif
47 #ifndef _Handle_PrsMgr_PresentationManager2d_HeaderFile
48 #include <Handle_PrsMgr_PresentationManager2d.hxx>
49 #endif
50 #ifndef _Handle_Graphic2d_GraphicObject_HeaderFile
51 #include <Handle_Graphic2d_GraphicObject.hxx>
52 #endif
53 #ifndef _Handle_SelectMgr_Selection_HeaderFile
54 #include <Handle_SelectMgr_Selection.hxx>
55 #endif
56 class Geom2d_Curve;
57 class PrsMgr_PresentationManager2d;
58 class Graphic2d_GraphicObject;
59 class SelectMgr_Selection;
60
61
62 class ISession2D_Curve : public AIS_InteractiveObject {
63
64 public:
65
66     void* operator new(size_t,void* anAddress) 
67       {
68         return anAddress;
69       }
70     void* operator new(size_t size) 
71       { 
72         return Standard::Allocate(size); 
73       }
74     void  operator delete(void *anAddress) 
75       { 
76         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
77       }
78  // Methods PUBLIC
79  // 
80 Standard_EXPORT ISession2D_Curve(const Handle(Geom2d_Curve)& aGeom2dCurve,const Aspect_TypeOfLine aTypeOfLine = Aspect_TOL_SOLID,const Aspect_WidthOfLine aWidthOfLine = Aspect_WOL_MEDIUM,const Standard_Integer aColorIndex = 4);
81 Standard_EXPORT virtual  Standard_Integer NbPossibleSelection() ;
82 Standard_EXPORT   Aspect_TypeOfLine GetTypeOfLine() ;
83 Standard_EXPORT   void SetTypeOfLine(const Aspect_TypeOfLine aNewTypeOfLine) ;
84 Standard_EXPORT   Aspect_WidthOfLine GetWidthOfLine() ;
85 Standard_EXPORT   void SetWidthOfLine(const Aspect_WidthOfLine aNewWidthOfLine) ;
86 Standard_EXPORT   Standard_Integer GetColorIndex() ;
87 Standard_EXPORT   void SetColorIndex(const Standard_Integer aNewColorIndex) ;
88 Standard_EXPORT   Standard_Boolean GetDisplayPole() ;
89 Standard_EXPORT   void SetDisplayPole(const Standard_Boolean aNewDisplayPole) ;
90 Standard_EXPORT   Standard_Boolean GetDisplayCurbure() ;
91 Standard_EXPORT   void SetDisplayCurbure(const Standard_Boolean aNewDisplayCurbure) ;
92 Standard_EXPORT   Standard_Real GetDiscretisation() ;
93 Standard_EXPORT   void SetDiscretisation(const Standard_Real aNewDiscretisation) ;
94 Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager,const Handle(Graphic2d_GraphicObject)& aGrObj,const Standard_Integer aMode = 0) ;
95 Standard_EXPORT virtual  void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
96 Standard_EXPORT ~ISession2D_Curve();
97
98
99
100
101  // Type management
102  //
103  Standard_EXPORT friend Handle_Standard_Type& ISession2D_Curve_Type_();
104  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
105  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
106
107 protected:
108
109  // Methods PROTECTED
110  // 
111
112
113  // Fields PROTECTED
114  //
115
116
117 private: 
118
119  // Methods PRIVATE
120  // 
121
122
123  // Fields PRIVATE
124  //
125 Handle_Geom2d_Curve myGeom2dCurve;
126 Aspect_TypeOfLine myTypeOfLine;
127 Aspect_WidthOfLine myWidthOfLine;
128 Standard_Integer myColorIndex;
129 Standard_Boolean myDisplayPole;
130 Standard_Boolean myDisplayCurbure;
131 Standard_Real myDiscretisation;
132 Standard_Real myradiusmax;
133 Standard_Real myradiusratio;
134
135
136 };
137
138
139 #include <ISession2D_Curve.lxx>
140
141
142
143 // other Inline functions and methods (like "C++: function call" methods)
144 //
145
146
147 #endif