0027772: Foundation Classes - define Standard_Boolean using C++ type "bool" instead...
[occt.git] / src / TopOpeBRepBuild / TopOpeBRepBuild_GTopo.hxx
CommitLineData
42cf5bc1 1// Created on: 1996-02-13
2// Created by: Jean Yves LEBEY
3// Copyright (c) 1996-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 _TopOpeBRepBuild_GTopo_HeaderFile
18#define _TopOpeBRepBuild_GTopo_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Boolean.hxx>
25#include <TopAbs_ShapeEnum.hxx>
26#include <TopOpeBRepDS_Config.hxx>
27#include <Standard_Integer.hxx>
28#include <TopAbs_State.hxx>
29#include <Standard_OStream.hxx>
30#include <Standard_Address.hxx>
31
32
33
34class TopOpeBRepBuild_GTopo
35{
36public:
37
38 DEFINE_STANDARD_ALLOC
39
40
41 Standard_EXPORT TopOpeBRepBuild_GTopo();
42
dde68833 43 Standard_EXPORT TopOpeBRepBuild_GTopo (const Standard_Boolean II, const Standard_Boolean IN, const Standard_Boolean IO,
44 const Standard_Boolean NI, const Standard_Boolean NN, const Standard_Boolean NO,
45 const Standard_Boolean OI, const Standard_Boolean ON, const Standard_Boolean OO,
46 const TopAbs_ShapeEnum t1, const TopAbs_ShapeEnum t2,
47 const TopOpeBRepDS_Config C1, const TopOpeBRepDS_Config C2);
48
42cf5bc1 49 Standard_EXPORT void Reset();
50
51 Standard_EXPORT void Set (const Standard_Boolean II, const Standard_Boolean IN, const Standard_Boolean IO, const Standard_Boolean NI, const Standard_Boolean NN, const Standard_Boolean NO, const Standard_Boolean OI, const Standard_Boolean ON, const Standard_Boolean OO);
52
53 Standard_EXPORT void Type (TopAbs_ShapeEnum& t1, TopAbs_ShapeEnum& t2) const;
54
55 Standard_EXPORT void ChangeType (const TopAbs_ShapeEnum t1, const TopAbs_ShapeEnum t2);
56
57 Standard_EXPORT TopOpeBRepDS_Config Config1() const;
58
59 Standard_EXPORT TopOpeBRepDS_Config Config2() const;
60
61 Standard_EXPORT void ChangeConfig (const TopOpeBRepDS_Config C1, const TopOpeBRepDS_Config C2);
62
63 Standard_EXPORT Standard_Boolean Value (const TopAbs_State s1, const TopAbs_State s2) const;
64
65 Standard_EXPORT Standard_Boolean Value (const Standard_Integer I1, const Standard_Integer I2) const;
66
67 Standard_EXPORT Standard_Boolean Value (const Standard_Integer II) const;
68
69 Standard_EXPORT void ChangeValue (const Standard_Integer i1, const Standard_Integer i2, const Standard_Boolean b);
70
71 Standard_EXPORT void ChangeValue (const TopAbs_State s1, const TopAbs_State s2, const Standard_Boolean b);
72
73 Standard_EXPORT Standard_Integer GIndex (const TopAbs_State S) const;
74
75 Standard_EXPORT TopAbs_State GState (const Standard_Integer I) const;
76
77 Standard_EXPORT void Index (const Standard_Integer II, Standard_Integer& i1, Standard_Integer& i2) const;
78
79 Standard_EXPORT void DumpVal (Standard_OStream& OS, const TopAbs_State s1, const TopAbs_State s2) const;
80
81 Standard_EXPORT void DumpType (Standard_OStream& OS) const;
82
83 Standard_EXPORT static void DumpSSB (Standard_OStream& OS, const TopAbs_State s1, const TopAbs_State s2, const Standard_Boolean b);
84
85 Standard_EXPORT virtual void Dump (Standard_OStream& OS, const Standard_Address s = NULL) const;
86
87 Standard_EXPORT void StatesON (TopAbs_State& s1, TopAbs_State& s2) const;
88
89 Standard_EXPORT Standard_Boolean IsToReverse1() const;
90
91 Standard_EXPORT Standard_Boolean IsToReverse2() const;
92
93 Standard_EXPORT void SetReverse (const Standard_Boolean rev);
94
95 Standard_EXPORT Standard_Boolean Reverse() const;
96
97 Standard_EXPORT TopOpeBRepBuild_GTopo CopyPermuted() const;
98
99
100
101
102protected:
103
104
105
106
107
108private:
109
110
111
112 Standard_Boolean mycases[3][3];
113 TopAbs_ShapeEnum myt1;
114 TopAbs_ShapeEnum myt2;
115 TopOpeBRepDS_Config myConfig1;
116 TopOpeBRepDS_Config myConfig2;
117 Standard_Boolean myReverseForce;
118 Standard_Boolean myReverseValue;
119
120
121};
122
123
124
125
126
127
128
129#endif // _TopOpeBRepBuild_GTopo_HeaderFile