Adjusting testing cases for current state of OCCT
[occt.git] / samples / java / inc / ISession2D_SensitiveCurve.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_SensitiveCurve_HeaderFile
17 #define _ISession2D_SensitiveCurve_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_ISession2D_SensitiveCurve_HeaderFile
23 #include <Handle_ISession2D_SensitiveCurve.hxx>
24 #endif
25
26 #ifndef _Standard_Real_HeaderFile
27 #include <Standard_Real.hxx>
28 #endif
29 #ifndef _Standard_Integer_HeaderFile
30 #include <Standard_Integer.hxx>
31 #endif
32 #ifndef _Handle_Geom2d_Curve_HeaderFile
33 #include <Handle_Geom2d_Curve.hxx>
34 #endif
35 #ifndef _Handle_TColgp_HArray1OfPnt2d_HeaderFile
36 #include <Handle_TColgp_HArray1OfPnt2d.hxx>
37 #endif
38 #ifndef _Select2D_SensitiveEntity_HeaderFile
39 #include <Select2D_SensitiveEntity.hxx>
40 #endif
41 #ifndef _Handle_SelectBasics_EntityOwner_HeaderFile
42 #include <Handle_SelectBasics_EntityOwner.hxx>
43 #endif
44 #ifndef _Standard_Boolean_HeaderFile
45 #include <Standard_Boolean.hxx>
46 #endif
47 class Geom2d_Curve;
48 class TColgp_HArray1OfPnt2d;
49 class SelectBasics_EntityOwner;
50 class SelectBasics_ListOfBox2d;
51
52
53 class ISession2D_SensitiveCurve : public Select2D_SensitiveEntity {
54
55 public:
56
57     void* operator new(size_t,void* anAddress) 
58       {
59         return anAddress;
60       }
61     void* operator new(size_t size) 
62       { 
63         return Standard::Allocate(size); 
64       }
65     void  operator delete(void *anAddress) 
66       { 
67         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
68       }
69  // Methods PUBLIC
70  // 
71 Standard_EXPORT ISession2D_SensitiveCurve(const Handle(SelectBasics_EntityOwner)& OwnerId,const Handle(Geom2d_Curve)& C,const Standard_Real CDeflect,const Standard_Integer MaxRect = 3);
72 Standard_EXPORT   void SetMaxBoxes(const Standard_Integer MaxRect) ;
73 Standard_EXPORT virtual  Standard_Integer MaxBoxes() ;
74 Standard_EXPORT   void SetCurve(const Handle(Geom2d_Curve)& aCurve) ;
75 Standard_EXPORT   Handle_Geom2d_Curve GetCurve() ;
76 Standard_EXPORT   void Compute() ;
77 Standard_EXPORT virtual  void Areas(SelectBasics_ListOfBox2d& aSeq) ;
78 Standard_EXPORT virtual  Standard_Boolean Matches(const Standard_Real XMin,const Standard_Real YMin,const Standard_Real XMax,const Standard_Real YMax,const Standard_Real aTol) ;
79 Standard_EXPORT virtual  Standard_Boolean Matches(const Standard_Real X,const Standard_Real Y,const Standard_Real aTol,Standard_Real& DMin) ;
80 Standard_EXPORT   Handle_TColgp_HArray1OfPnt2d SensitivePolygon() ;
81 Standard_EXPORT ~ISession2D_SensitiveCurve();
82
83
84
85
86  // Type management
87  //
88  Standard_EXPORT friend Handle_Standard_Type& ISession2D_SensitiveCurve_Type_();
89  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
90  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
91
92 protected:
93
94  // Methods PROTECTED
95  // 
96
97
98  // Fields PROTECTED
99  //
100
101
102 private: 
103
104  // Methods PRIVATE
105  // 
106
107
108  // Fields PRIVATE
109  //
110 Standard_Real myCDeflect;
111 Standard_Integer myMaxRect;
112 Handle_Geom2d_Curve myCurve;
113 Handle_TColgp_HArray1OfPnt2d myPolyP2d;
114
115
116 };
117
118
119 #include <ISession2D_SensitiveCurve.lxx>
120
121
122
123 // other Inline functions and methods (like "C++: function call" methods)
124 //
125
126
127 #endif