0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / HLRAlgo / HLRAlgo_PolyInternalData.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-10-29
2// Created by: Christophe MARION
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 _HLRAlgo_PolyInternalData_HeaderFile
18#define _HLRAlgo_PolyInternalData_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Standard_Integer.hxx>
24#include <Standard_Boolean.hxx>
25#include <HLRAlgo_HArray1OfTData.hxx>
26#include <HLRAlgo_HArray1OfPISeg.hxx>
27#include <HLRAlgo_HArray1OfPINod.hxx>
25e59720 28#include <Standard_Transient.hxx>
42cf5bc1 29#include <Standard_Real.hxx>
30#include <HLRAlgo_Array1OfTData.hxx>
31#include <HLRAlgo_Array1OfPISeg.hxx>
32#include <HLRAlgo_Array1OfPINod.hxx>
33
34
35class HLRAlgo_PolyInternalData;
25e59720 36DEFINE_STANDARD_HANDLE(HLRAlgo_PolyInternalData, Standard_Transient)
42cf5bc1 37
38//! to Update OutLines.
25e59720 39class HLRAlgo_PolyInternalData : public Standard_Transient
42cf5bc1 40{
41
42public:
43
44
45 Standard_EXPORT HLRAlgo_PolyInternalData(const Standard_Integer nbNod, const Standard_Integer nbTri);
46
681f3919 47 Standard_EXPORT void UpdateLinks (HLRAlgo_Array1OfTData*& TData, HLRAlgo_Array1OfPISeg*& PISeg, HLRAlgo_Array1OfPINod*& PINod);
42cf5bc1 48
681f3919 49 Standard_EXPORT Standard_Integer AddNode (HLRAlgo_PolyInternalNode::NodeData& Nod1RValues, HLRAlgo_PolyInternalNode::NodeData& Nod2RValues, HLRAlgo_Array1OfPINod*& PINod1, HLRAlgo_Array1OfPINod*& PINod2, const Standard_Real coef1, const Standard_Real X3, const Standard_Real Y3, const Standard_Real Z3);
42cf5bc1 50
681f3919 51 Standard_EXPORT void UpdateLinks (const Standard_Integer ip1, const Standard_Integer ip2, const Standard_Integer ip3, HLRAlgo_Array1OfTData*& TData1, HLRAlgo_Array1OfTData*& TData2, HLRAlgo_Array1OfPISeg*& PISeg1, HLRAlgo_Array1OfPISeg*& PISeg2, HLRAlgo_Array1OfPINod*& PINod1, HLRAlgo_Array1OfPINod*& PINod2);
42cf5bc1 52
53 Standard_EXPORT void Dump() const;
54
681f3919 55 Standard_EXPORT void IncTData (HLRAlgo_Array1OfTData*& TData1, HLRAlgo_Array1OfTData*& TData2);
42cf5bc1 56
681f3919 57 Standard_EXPORT void IncPISeg (HLRAlgo_Array1OfPISeg*& PISeg1, HLRAlgo_Array1OfPISeg*& PISeg2);
42cf5bc1 58
681f3919 59 Standard_EXPORT void IncPINod (HLRAlgo_Array1OfPINod*& PINod1, HLRAlgo_Array1OfPINod*& PINod2);
42cf5bc1 60
61 void DecTData();
62
63 void DecPISeg();
64
65 void DecPINod();
66
67 Standard_Integer NbTData() const;
68
69 Standard_Integer NbPISeg() const;
70
71 Standard_Integer NbPINod() const;
72
73 Standard_Boolean Planar() const;
74
75 void Planar (const Standard_Boolean B);
76
77 Standard_Boolean IntOutL() const;
78
79 void IntOutL (const Standard_Boolean B);
80
81 HLRAlgo_Array1OfTData& TData() const;
82
83 HLRAlgo_Array1OfPISeg& PISeg() const;
84
85 HLRAlgo_Array1OfPINod& PINod() const;
86
87
88
89
25e59720 90 DEFINE_STANDARD_RTTIEXT(HLRAlgo_PolyInternalData,Standard_Transient)
42cf5bc1 91
92protected:
93
94
95
96
97private:
98
99
100 Standard_Integer myNbTData;
101 Standard_Integer myNbPISeg;
102 Standard_Integer myNbPINod;
103 Standard_Integer myMxTData;
104 Standard_Integer myMxPISeg;
105 Standard_Integer myMxPINod;
106 Standard_Boolean myIntOutL;
107 Standard_Boolean myPlanar;
108 Handle(HLRAlgo_HArray1OfTData) myTData;
109 Handle(HLRAlgo_HArray1OfPISeg) myPISeg;
110 Handle(HLRAlgo_HArray1OfPINod) myPINod;
111
112
113};
114
115
116#include <HLRAlgo_PolyInternalData.lxx>
117
118
119
120
121
122#endif // _HLRAlgo_PolyInternalData_HeaderFile