1 // Created on: 1993-11-10
2 // Created by: Jean Marc LACHAUME
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <Standard_Stream.hxx>
18 #include <HatchGen_Domain.ixx>
20 //=======================================================================
21 // Function : HatchGen_Domain
22 // Purpose : Constructor.
23 //=======================================================================
25 HatchGen_Domain::HatchGen_Domain () :
26 myHasFirstPoint (Standard_False) ,
27 myHasSecondPoint (Standard_False)
31 //=======================================================================
32 // Function : HatchGen_Domain
33 // Purpose : Constructor.
34 //=======================================================================
36 HatchGen_Domain::HatchGen_Domain (const HatchGen_PointOnHatching& P1,
37 const HatchGen_PointOnHatching& P2) :
38 myHasFirstPoint (Standard_True) ,
40 myHasSecondPoint (Standard_True) ,
45 //=======================================================================
46 // Function : HatchGen_Domain
47 // Purpose : Constructor.
48 //=======================================================================
50 HatchGen_Domain::HatchGen_Domain (const HatchGen_PointOnHatching& P,
51 const Standard_Boolean First)
54 myHasFirstPoint = Standard_True ;
55 myHasSecondPoint = Standard_False ;
58 myHasFirstPoint = Standard_False ;
59 myHasSecondPoint = Standard_True ;
65 //=======================================================================
67 // Purpose : Dump of the domain.
68 //=======================================================================
70 void HatchGen_Domain::Dump (const Standard_Integer Index) const
72 cout << "=== Domain " ;
74 cout << "# " << setw(3) << Index << " " ;
78 cout << "=============================" << endl ;
80 if (myHasFirstPoint) {
81 myFirstPoint.Dump (1) ;
83 cout << " Has not a first point" << endl ;
86 if (myHasSecondPoint) {
87 mySecondPoint.Dump (2) ;
89 cout << " Has not a second point" << endl ;
92 cout << "==============================================" << endl ;