0032630: Coding - get rid of unsused forward declarations [BinMDF to IFSelect]
[occt.git] / src / HatchGen / HatchGen_Domain.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-11-05
2// Created by: Jean Marc LACHAUME
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _HatchGen_Domain_HeaderFile
18#define _HatchGen_Domain_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Boolean.hxx>
25#include <HatchGen_PointOnHatching.hxx>
26#include <Standard_Integer.hxx>
42cf5bc1 27
28
29
30class HatchGen_Domain
31{
32public:
33
34 DEFINE_STANDARD_ALLOC
35
36
37 //! Creates an infinite domain.
38 Standard_EXPORT HatchGen_Domain();
39
40 //! Creates a domain for the curve associated to a hatching.
41 Standard_EXPORT HatchGen_Domain(const HatchGen_PointOnHatching& P1, const HatchGen_PointOnHatching& P2);
42
43 //! Creates a semi-infinite domain for the curve associated
44 //! to a hatching. The `First' flag means that the given
45 //! point is the first one.
46 Standard_EXPORT HatchGen_Domain(const HatchGen_PointOnHatching& P, const Standard_Boolean First);
47
48 //! Sets the first and the second points of the domain.
49 void SetPoints (const HatchGen_PointOnHatching& P1, const HatchGen_PointOnHatching& P2);
50
51 //! Sets the first and the second points of the domain
52 //! as the infinite.
53 void SetPoints();
54
55 //! Sets the first point of the domain.
56 void SetFirstPoint (const HatchGen_PointOnHatching& P);
57
58 //! Sets the first point of the domain at the
59 //! infinite.
60 void SetFirstPoint();
61
62 //! Sets the second point of the domain.
63 void SetSecondPoint (const HatchGen_PointOnHatching& P);
64
65 //! Sets the second point of the domain at the
66 //! infinite.
67 void SetSecondPoint();
68
69 //! Returns True if the domain has a first point.
70 Standard_Boolean HasFirstPoint() const;
71
72 //! Returns the first point of the domain.
73 //! The exception DomainError is raised if
74 //! HasFirstPoint returns False.
75 const HatchGen_PointOnHatching& FirstPoint() const;
76
77 //! Returns True if the domain has a second point.
78 Standard_Boolean HasSecondPoint() const;
79
80 //! Returns the second point of the domain.
81 //! The exception DomainError is raised if
82 //! HasSecondPoint returns False.
83 const HatchGen_PointOnHatching& SecondPoint() const;
84
85 //! Dump of the domain.
86 Standard_EXPORT void Dump (const Standard_Integer Index = 0) const;
87
88
89
90
91protected:
92
93
94
95
96
97private:
98
99
100
101 Standard_Boolean myHasFirstPoint;
102 HatchGen_PointOnHatching myFirstPoint;
103 Standard_Boolean myHasSecondPoint;
104 HatchGen_PointOnHatching mySecondPoint;
105
106
107};
108
109
110#include <HatchGen_Domain.lxx>
111
112
113
114
115
116#endif // _HatchGen_Domain_HeaderFile