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
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 #ifndef _AdvApp2Var_Network_HeaderFile
18 #define _AdvApp2Var_Network_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <AdvApp2Var_SequenceOfPatch.hxx>
25 #include <TColStd_SequenceOfReal.hxx>
26 #include <Standard_Boolean.hxx>
27 #include <Standard_Integer.hxx>
28 #include <Standard_Real.hxx>
29 class Standard_NoSuchObject;
30 class AdvApp2Var_Patch;
34 class AdvApp2Var_Network
41 Standard_EXPORT AdvApp2Var_Network();
43 Standard_EXPORT AdvApp2Var_Network(const AdvApp2Var_SequenceOfPatch& Net, const TColStd_SequenceOfReal& TheU, const TColStd_SequenceOfReal& TheV);
45 //! search the Index of the first Patch not approximated,
46 //! if all Patches are approximated Standard_False is returned
47 Standard_EXPORT Standard_Boolean FirstNotApprox (Standard_Integer& Index) const;
49 AdvApp2Var_Patch& ChangePatch (const Standard_Integer Index);
50 AdvApp2Var_Patch& operator() (const Standard_Integer Index)
52 return ChangePatch(Index);
55 Standard_EXPORT void UpdateInU (const Standard_Real CuttingValue);
57 Standard_EXPORT void UpdateInV (const Standard_Real CuttingValue);
59 Standard_EXPORT void SameDegree (const Standard_Integer iu, const Standard_Integer iv, Standard_Integer& ncfu, Standard_Integer& ncfv);
61 Standard_EXPORT Standard_Integer NbPatch() const;
63 Standard_EXPORT Standard_Integer NbPatchInU() const;
65 Standard_EXPORT Standard_Integer NbPatchInV() const;
67 Standard_EXPORT Standard_Real UParameter (const Standard_Integer Index) const;
69 Standard_EXPORT Standard_Real VParameter (const Standard_Integer Index) const;
71 const AdvApp2Var_Patch& Patch (const Standard_Integer UIndex, const Standard_Integer VIndex) const;
72 const AdvApp2Var_Patch& operator() (const Standard_Integer UIndex, const Standard_Integer VIndex) const
74 return Patch(UIndex,VIndex);
90 AdvApp2Var_SequenceOfPatch myNet;
91 TColStd_SequenceOfReal myUParameters;
92 TColStd_SequenceOfReal myVParameters;
98 #include <AdvApp2Var_Network.lxx>
104 #endif // _AdvApp2Var_Network_HeaderFile