summaryrefslogtreecommitdiff
path: root/inc/IntRes2d_Intersection.hxx
blob: b3b8ed2af631f6a394f63cfff03f9adfb5fbf708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IntRes2d_Intersection_HeaderFile
#define _IntRes2d_Intersection_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _IntRes2d_SequenceOfIntersectionPoint_HeaderFile
#include <IntRes2d_SequenceOfIntersectionPoint.hxx>
#endif
#ifndef _IntRes2d_SequenceOfIntersectionSegment_HeaderFile
#include <IntRes2d_SequenceOfIntersectionSegment.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class StdFail_NotDone;
class Standard_OutOfRange;
class IntRes2d_IntersectionPoint;
class IntRes2d_IntersectionSegment;


//! Defines  the root   class  of  all  the  Intersections <br>
//!          between  two 2D-Curves, and  provides all  the methods <br>
//!          about the results of the Intersections Algorithms. <br>
class IntRes2d_Intersection  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! returns TRUE when the computation was successful. <br>
        Standard_Boolean IsDone() const;
  //! Returns TRUE if there is no intersection between the <br>
//!          given arguments. <br>
//!          The exception NotDone is raised if IsDone returns FALSE. <br>
        Standard_Boolean IsEmpty() const;
  //! This function returns the number of intersection <br>
//!          points between the 2 curves. <br>
//!          The exception NotDone is raised if IsDone returns FALSE. <br>
        Standard_Integer NbPoints() const;
  //! This function returns the intersection point <br>
//!          of range N; <br>
//!          The exception NotDone is raised if IsDone returns FALSE. <br>
//!          The exception OutOfRange is raised if (N <= 0) <br>
//!          or (N > NbPoints). <br>
       const IntRes2d_IntersectionPoint& Point(const Standard_Integer N) const;
  //! This function returns the number of intersection <br>
//!          segments between the two curves. <br>
//!          The exception NotDone is raised if IsDone returns FALSE. <br>
        Standard_Integer NbSegments() const;
  //! This function returns the intersection segment <br>
//!          of range N; <br>
//!          The exception NotDone is raised if IsDone returns FALSE. <br>
//!          The exception OutOfRange is raised if (N <= 0) <br>
//!          or (N > NbPoints). <br>
       const IntRes2d_IntersectionSegment& Segment(const Standard_Integer N) const;
  
        void SetReversedParameters(const Standard_Boolean Reverseflag) ;





protected:

  //! Empty constructor. <br>
      IntRes2d_Intersection();
  
      IntRes2d_Intersection(const IntRes2d_Intersection& Other);
  
  Standard_EXPORT     void SetValues(const IntRes2d_Intersection& Inter) ;
  
  Standard_EXPORT     void Append(const IntRes2d_Intersection& Inter,const Standard_Real FirstParam1,const Standard_Real LastParam1,const Standard_Real FirstParam2,const Standard_Real LastParam2) ;
  
        void Append(const IntRes2d_IntersectionSegment& Seg) ;
  
        void Append(const IntRes2d_IntersectionPoint& Pnt) ;
  
  Standard_EXPORT     void Insert(const IntRes2d_IntersectionPoint& Pnt) ;
  
        void ResetFields() ;
  
        Standard_Boolean ReversedParameters() const;


Standard_Boolean done;


private:



Standard_Boolean reverse;
IntRes2d_SequenceOfIntersectionPoint lpnt;
IntRes2d_SequenceOfIntersectionSegment lseg;


};


#include <IntRes2d_Intersection.lxx>



// other Inline functions and methods (like "C++: function call" methods)


#endif