0026377: Passing Handle objects as arguments to functions as non-const reference...
[occt.git] / src / Plate / Plate_LinearXYZConstraint.hxx
CommitLineData
42cf5bc1 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
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_LinearXYZConstraint_HeaderFile
18#define _Plate_LinearXYZConstraint_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Plate_HArray1OfPinpointConstraint.hxx>
25#include <TColStd_HArray2OfReal.hxx>
26#include <Plate_Array1OfPinpointConstraint.hxx>
27#include <TColStd_Array1OfReal.hxx>
28#include <TColStd_Array2OfReal.hxx>
29#include <Standard_Integer.hxx>
30#include <Standard_Real.hxx>
31class Standard_DimensionMismatch;
32class Standard_OutOfRange;
33class Plate_PinpointConstraint;
34
35
36//! define on or several constraints as linear combination of
37//! PinPointConstraint unlike the LinearScalarConstraint, usage
38//! of this kind of constraint preserve the X,Y and Z uncoupling.
39class Plate_LinearXYZConstraint
40{
41public:
42
43 DEFINE_STANDARD_ALLOC
44
45
46 Standard_EXPORT Plate_LinearXYZConstraint();
47
76363522 48 Standard_EXPORT Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& thePPC, const TColStd_Array1OfReal& theCoeff);
42cf5bc1 49
76363522 50 Standard_EXPORT Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& thePPC, const TColStd_Array2OfReal& theCoeff);
42cf5bc1 51
52 Standard_EXPORT Plate_LinearXYZConstraint(const Standard_Integer ColLen, const Standard_Integer RowLen);
53
54 const Plate_Array1OfPinpointConstraint& GetPPC() const;
55
56 const TColStd_Array2OfReal& Coeff() const;
57
58 //! Sets the PinPointConstraint of index Index to
59 //! Value raise if Index is greater than the length of
60 //! PPC or the Row length of coeff or lower than 1
61 Standard_EXPORT void SetPPC (const Standard_Integer Index, const Plate_PinpointConstraint& Value);
62
63 //! Sets the coeff of index (Row,Col) to Value
64 //! raise if Row (respectively Col) is greater than the
65 //! Row (respectively Column) length of coeff
66 Standard_EXPORT void SetCoeff (const Standard_Integer Row, const Standard_Integer Col, const Standard_Real Value);
67
68
69
70
71protected:
72
73
74
75
76
77private:
78
79
80
81 Handle(Plate_HArray1OfPinpointConstraint) myPPC;
82 Handle(TColStd_HArray2OfReal) myCoef;
83
84
85};
86
87
88#include <Plate_LinearXYZConstraint.lxx>
89
90
91
92
93
94#endif // _Plate_LinearXYZConstraint_HeaderFile