42cf5bc1 |
1 | // Created on: 1996-04-10 |
2 | // Created by: Joelle CHAUVET |
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 _AdvApp2Var_Framework_HeaderFile |
18 | #define _AdvApp2Var_Framework_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <AdvApp2Var_SequenceOfNode.hxx> |
25 | #include <AdvApp2Var_SequenceOfStrip.hxx> |
26 | #include <Standard_Boolean.hxx> |
27 | #include <Standard_Integer.hxx> |
28 | #include <GeomAbs_IsoType.hxx> |
29 | #include <Standard_Real.hxx> |
30 | #include <TColStd_HArray1OfReal.hxx> |
31 | class Standard_NoSuchObject; |
32 | class AdvApp2Var_Iso; |
33 | class AdvApp2Var_Node; |
34 | |
35 | |
36 | |
37 | class AdvApp2Var_Framework |
38 | { |
39 | public: |
40 | |
41 | DEFINE_STANDARD_ALLOC |
42 | |
43 | |
44 | Standard_EXPORT AdvApp2Var_Framework(); |
45 | |
46 | Standard_EXPORT AdvApp2Var_Framework(const AdvApp2Var_SequenceOfNode& Frame, const AdvApp2Var_SequenceOfStrip& UFrontier, const AdvApp2Var_SequenceOfStrip& VFrontier); |
47 | |
48 | //! search the Index of the first Iso not approximated, |
49 | //! if all Isos are approximated Standard_False is returned. |
50 | Standard_EXPORT Standard_Boolean FirstNotApprox (Standard_Integer& IndexIso, Standard_Integer& IndexStrip, AdvApp2Var_Iso& anIso) const; |
51 | |
52 | Standard_EXPORT Standard_Integer FirstNode (const GeomAbs_IsoType Type, const Standard_Integer IndexIso, const Standard_Integer IndexStrip) const; |
53 | |
54 | Standard_EXPORT Standard_Integer LastNode (const GeomAbs_IsoType Type, const Standard_Integer IndexIso, const Standard_Integer IndexStrip) const; |
55 | |
56 | Standard_EXPORT void ChangeIso (const Standard_Integer IndexIso, const Standard_Integer IndexStrip, const AdvApp2Var_Iso& anIso); |
57 | |
58 | const AdvApp2Var_Node& Node (const Standard_Integer IndexNode) const; |
59 | |
60 | Standard_EXPORT const AdvApp2Var_Node& Node (const Standard_Real U, const Standard_Real V) const; |
61 | |
62 | Standard_EXPORT const AdvApp2Var_Iso& IsoU (const Standard_Real U, const Standard_Real V0, const Standard_Real V1) const; |
63 | |
64 | Standard_EXPORT const AdvApp2Var_Iso& IsoV (const Standard_Real U0, const Standard_Real U1, const Standard_Real V) const; |
65 | |
66 | AdvApp2Var_Node& ChangeNode (const Standard_Integer IndexNode); |
67 | |
68 | Standard_EXPORT void UpdateInU (const Standard_Real CuttingValue); |
69 | |
70 | Standard_EXPORT void UpdateInV (const Standard_Real CuttingValue); |
71 | |
72 | Standard_EXPORT const Handle(TColStd_HArray1OfReal)& UEquation (const Standard_Integer IndexIso, const Standard_Integer IndexStrip) const; |
73 | |
74 | Standard_EXPORT const Handle(TColStd_HArray1OfReal)& VEquation (const Standard_Integer IndexIso, const Standard_Integer IndexStrip) const; |
75 | |
76 | |
77 | |
78 | |
79 | protected: |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | private: |
86 | |
87 | |
88 | |
89 | AdvApp2Var_SequenceOfNode myNodeConstraints; |
90 | AdvApp2Var_SequenceOfStrip myUConstraints; |
91 | AdvApp2Var_SequenceOfStrip myVConstraints; |
92 | |
93 | |
94 | }; |
95 | |
96 | |
97 | #include <AdvApp2Var_Framework.lxx> |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | #endif // _AdvApp2Var_Framework_HeaderFile |