summaryrefslogtreecommitdiff
path: root/inc/IntRes2d_IntersectionSegment.hxx
blob: 58b2ea1d249e83e6826433e7e286d912b05a9bc4 (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
// 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_IntersectionSegment_HeaderFile
#define _IntRes2d_IntersectionSegment_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_IntersectionPoint_HeaderFile
#include <IntRes2d_IntersectionPoint.hxx>
#endif
#ifndef _Standard_Storable_HeaderFile
#include <Standard_Storable.hxx>
#endif
#ifndef _Standard_PrimitiveTypes_HeaderFile
#include <Standard_PrimitiveTypes.hxx>
#endif
class Standard_DomainError;
class IntRes2d_IntersectionPoint;


Standard_EXPORT const Handle(Standard_Type)& STANDARD_TYPE(IntRes2d_IntersectionSegment);

//! Definition of an intersection curve between <br>
//!          two 2D curves. <br>
class IntRes2d_IntersectionSegment  {

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); 
  }

  //! Empty constructor. <br>
  Standard_EXPORT   IntRes2d_IntersectionSegment();
  
      IntRes2d_IntersectionSegment(const IntRes2d_IntersectionPoint& P1,const IntRes2d_IntersectionPoint& P2,const Standard_Boolean Oppos,const Standard_Boolean ReverseFlag);
  
      IntRes2d_IntersectionSegment(const IntRes2d_IntersectionPoint& P,const Standard_Boolean First,const Standard_Boolean Oppos,const Standard_Boolean ReverseFlag);
  //! Creates an infinite segment of intersection. <br>
      IntRes2d_IntersectionSegment(const Standard_Boolean Oppos);
  //! Returns TRUE if the intersection segment has got <br>
//!          the same orientation on both curves. <br>
        Standard_Boolean IsOpposite() const;
  //! Returns True if the segment is  limited by a first <br>
//!          point.   This  point defines  the lowest parameter <br>
//!          admitted on the first  curve for the  segment.  If <br>
//!          IsOpposite  returns  False, it  defines the lowest <br>
//!          parameter on the  second curve, otherwise,  it  is <br>
//!          the highest parameter on the second curve. <br>
        Standard_Boolean HasFirstPoint() const;
  //! Returns the  first point   of the segment    as an <br>
//!          IntersectionPoint (with    a    transition).   The <br>
//!          exception  DomainError  is raised if HasFirstPoint <br>
//!          returns False. <br>
       const IntRes2d_IntersectionPoint& FirstPoint() const;
  //! Returns True if the segment  is  limited by a last <br>
//!          point.  This point  defines  the highest parameter <br>
//!          admitted on the  first curve for  the segment.  If <br>
//!          IsOpposite returns  False, it  defines the highest <br>
//!          parameter on  the  second curve, otherwise, it  is <br>
//!          the lowest parameter on the second curve. <br>
        Standard_Boolean HasLastPoint() const;
  //! Returns   the  last point  of the    segment as an <br>
//!          IntersectionPoint   (with  a    transition).   The <br>
//!          exception        DomainError     is   raised    if <br>
//!          HasLastExtremity returns False. <br>
       const IntRes2d_IntersectionPoint& LastPoint() const;
    Standard_Boolean _CSFDB_GetIntRes2d_IntersectionSegmentoppos() const { return oppos; }
    void _CSFDB_SetIntRes2d_IntersectionSegmentoppos(const Standard_Boolean p) { oppos = p; }
    Standard_Boolean _CSFDB_GetIntRes2d_IntersectionSegmentfirst() const { return first; }
    void _CSFDB_SetIntRes2d_IntersectionSegmentfirst(const Standard_Boolean p) { first = p; }
    Standard_Boolean _CSFDB_GetIntRes2d_IntersectionSegmentlast() const { return last; }
    void _CSFDB_SetIntRes2d_IntersectionSegmentlast(const Standard_Boolean p) { last = p; }
    const IntRes2d_IntersectionPoint& _CSFDB_GetIntRes2d_IntersectionSegmentptfirst() const { return ptfirst; }
    const IntRes2d_IntersectionPoint& _CSFDB_GetIntRes2d_IntersectionSegmentptlast() const { return ptlast; }



protected:




private: 


Standard_Boolean oppos;
Standard_Boolean first;
Standard_Boolean last;
IntRes2d_IntersectionPoint ptfirst;
IntRes2d_IntersectionPoint ptlast;


};


#include <IntRes2d_IntersectionSegment.lxx>



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


#endif