193bb9082f0e73c0ae4bf0cce19e771d94f04742
[occt.git] / src / Plate / Plate_LinearScalarConstraint.hxx
1 // Created on: 1998-03-23
2 // Created by: # Andre LIEUTIER
3 // Copyright (c) 1998-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 _Plate_LinearScalarConstraint_HeaderFile
18 #define _Plate_LinearScalarConstraint_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <Plate_HArray1OfPinpointConstraint.hxx>
25 #include <TColgp_HArray2OfXYZ.hxx>
26 #include <Plate_Array1OfPinpointConstraint.hxx>
27 #include <TColgp_Array1OfXYZ.hxx>
28 #include <TColgp_Array2OfXYZ.hxx>
29 #include <Standard_Integer.hxx>
30 class Standard_DimensionMismatch;
31 class Standard_OutOfRange;
32 class Plate_PinpointConstraint;
33 class gp_XYZ;
34
35
36 //! define on or several constraints  as linear combination of
37 //! the X,Y and Z components of a set of PinPointConstraint
38 class Plate_LinearScalarConstraint 
39 {
40 public:
41
42   DEFINE_STANDARD_ALLOC
43
44   
45   Standard_EXPORT Plate_LinearScalarConstraint();
46   
47   Standard_EXPORT Plate_LinearScalarConstraint(const Plate_PinpointConstraint& PPC1, const gp_XYZ& coeff);
48   
49   Standard_EXPORT Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& PPC, const TColgp_Array1OfXYZ& coeff);
50   
51   Standard_EXPORT Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& PPC, const TColgp_Array2OfXYZ& coeff);
52   
53   Standard_EXPORT Plate_LinearScalarConstraint(const Standard_Integer ColLen, const Standard_Integer RowLen);
54   
55     const Plate_Array1OfPinpointConstraint& GetPPC() const;
56   
57     const TColgp_Array2OfXYZ& Coeff() const;
58   
59   //! Sets   the PinPointConstraint of   index Index to
60   //! Value raise if Index is greater than the length of
61   //! PPC or the Row length of coeff or lower  than 1
62   Standard_EXPORT void SetPPC (const Standard_Integer Index, const Plate_PinpointConstraint& Value);
63   
64   //! Sets the coeff  of index (Row,Col)  to Value
65   //! raise if  Row (respectively Col)  is greater than the
66   //! Row (respectively Column) length of coeff
67   Standard_EXPORT void SetCoeff (const Standard_Integer Row, const Standard_Integer Col, const gp_XYZ& Value);
68
69
70
71
72 protected:
73
74
75
76
77
78 private:
79
80
81
82   Handle(Plate_HArray1OfPinpointConstraint) myPPC;
83   Handle(TColgp_HArray2OfXYZ) myCoef;
84
85
86 };
87
88
89 #include <Plate_LinearScalarConstraint.lxx>
90
91
92
93
94
95 #endif // _Plate_LinearScalarConstraint_HeaderFile