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
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 _Plate_LinearScalarConstraint_HeaderFile
18 #define _Plate_LinearScalarConstraint_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
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;
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
45 Standard_EXPORT Plate_LinearScalarConstraint();
47 Standard_EXPORT Plate_LinearScalarConstraint(const Plate_PinpointConstraint& PPC1, const gp_XYZ& coeff);
49 Standard_EXPORT Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& PPC, const TColgp_Array1OfXYZ& coeff);
51 Standard_EXPORT Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& PPC, const TColgp_Array2OfXYZ& coeff);
53 Standard_EXPORT Plate_LinearScalarConstraint(const Standard_Integer ColLen, const Standard_Integer RowLen);
55 const Plate_Array1OfPinpointConstraint& GetPPC() const;
57 const TColgp_Array2OfXYZ& Coeff() const;
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);
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);
82 Handle(Plate_HArray1OfPinpointConstraint) myPPC;
83 Handle(TColgp_HArray2OfXYZ) myCoef;
89 #include <Plate_LinearScalarConstraint.lxx>
95 #endif // _Plate_LinearScalarConstraint_HeaderFile