1 -- Created on: 1998-03-24
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 class LinearXYZConstraint from Plate
18 ---Purpose : define on or several constraints as linear combination of
19 -- PinPointConstraint unlike the LinearScalarConstraint, usage
20 -- of this kind of constraint preserve the X,Y and Z uncoupling.
25 PinpointConstraint from Plate,
26 Array1OfPinpointConstraint from Plate,
27 HArray1OfPinpointConstraint from Plate,
28 Array1OfReal from TColStd,
29 Array2OfReal from TColStd,
30 HArray2OfReal from TColStd
33 DimensionMismatch from Standard,
34 OutOfRange from Standard
37 Create returns LinearXYZConstraint;
39 Create (PPC : Array1OfPinpointConstraint; coeff : Array1OfReal )
40 returns LinearXYZConstraint
41 raises DimensionMismatch from Standard;
42 -- the length of PPC have to be the Row lentgth of coeff
44 Create (PPC : Array1OfPinpointConstraint; coeff : Array2OfReal )
45 returns LinearXYZConstraint
46 raises DimensionMismatch from Standard;
47 -- the length of PPC have to be the Row lentgth of coeff
49 Create (ColLen,RowLen : Integer )
50 -- initialize with 0 valued PPC and Coeffs
51 returns LinearXYZConstraint;
54 GetPPC(me) returns Array1OfPinpointConstraint;
56 ---C++: return const &
58 Coeff(me) returns Array2OfReal;
60 ---C++: return const &
63 Index: Integer from Standard;
64 Value: PinpointConstraint)
65 ---Purpose: Sets the PinPointConstraint of index Index to
66 -- Value raise if Index is greater than the length of
67 -- PPC or the Row length of coeff or lower than 1
68 raises OutOfRange from Standard;
70 SetCoeff (me : in out;
71 Row, Col: Integer from Standard;
73 ---Purpose: Sets the coeff of index (Row,Col) to Value
74 -- raise if Row (respectively Col) is greater than the
75 -- Row (respectively Column) length of coeff
76 raises OutOfRange from Standard;
80 myPPC : HArray1OfPinpointConstraint;
81 myCoef : HArray2OfReal;