summaryrefslogtreecommitdiff
path: root/inc/HatchGen_Domain.hxx
blob: 89d4e80fae180e7b4d38cb72f7b0b44a136a6813 (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
// 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 _HatchGen_Domain_HeaderFile
#define _HatchGen_Domain_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 _HatchGen_PointOnHatching_HeaderFile
#include <HatchGen_PointOnHatching.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class Standard_DomainError;
class HatchGen_PointOnHatching;



class HatchGen_Domain  {
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); 
  }

  //! Creates an infinite domain. <br>
  Standard_EXPORT   HatchGen_Domain();
  //! Creates a domain for the curve associated to a hatching. <br>
  Standard_EXPORT   HatchGen_Domain(const HatchGen_PointOnHatching& P1,const HatchGen_PointOnHatching& P2);
  //! Creates a semi-infinite domain for the curve associated <br>
//!          to a hatching. The `First' flag means that the given <br>
//!          point is the first one. <br>
  Standard_EXPORT   HatchGen_Domain(const HatchGen_PointOnHatching& P,const Standard_Boolean First);
  //! Sets the first and the second points of the domain. <br>
        void SetPoints(const HatchGen_PointOnHatching& P1,const HatchGen_PointOnHatching& P2) ;
  //! Sets the first and the second points of the domain <br>
//!          as the infinite. <br>
        void SetPoints() ;
  //! Sets the first point of the domain. <br>
        void SetFirstPoint(const HatchGen_PointOnHatching& P) ;
  //! Sets the first point of the domain at the <br>
//!          infinite. <br>
        void SetFirstPoint() ;
  //! Sets the second point of the domain. <br>
        void SetSecondPoint(const HatchGen_PointOnHatching& P) ;
  //! Sets the second point of the domain at the <br>
//!          infinite. <br>
        void SetSecondPoint() ;
  //! Returns True if the domain has a first point. <br>
        Standard_Boolean HasFirstPoint() const;
  //! Returns the first point of the domain. <br>
//!          The exception DomainError is raised if <br>
//!          HasFirstPoint returns False. <br>
       const HatchGen_PointOnHatching& FirstPoint() const;
  //! Returns True if the domain has a second point. <br>
        Standard_Boolean HasSecondPoint() const;
  //! Returns the second point of the domain. <br>
//!          The exception DomainError is raised if <br>
//!          HasSecondPoint returns False. <br>
       const HatchGen_PointOnHatching& SecondPoint() const;
  //! Dump of the domain. <br>
  Standard_EXPORT     void Dump(const Standard_Integer Index = 0) const;





protected:





private:



Standard_Boolean myHasFirstPoint;
HatchGen_PointOnHatching myFirstPoint;
Standard_Boolean myHasSecondPoint;
HatchGen_PointOnHatching mySecondPoint;


};


#include <HatchGen_Domain.lxx>



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


#endif