File: HatchGen_Domain.hxx

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (107 lines) | stat: -rw-r--r-- 2,791 bytes parent folder | download | duplicates (5)
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
// 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

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Standard_Boolean.hxx>
#include <HatchGen_PointOnHatching.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class HatchGen_PointOnHatching;



class HatchGen_Domain 
{
public:

  DEFINE_STANDARD_ALLOC

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





#endif // _HatchGen_Domain_HeaderFile