Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:38

0001 // Created on: 1998-03-24
0002 // Created by: # Andre LIEUTIER
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _Plate_LinearXYZConstraint_HeaderFile
0018 #define _Plate_LinearXYZConstraint_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Plate_HArray1OfPinpointConstraint.hxx>
0025 #include <TColStd_HArray2OfReal.hxx>
0026 #include <Plate_Array1OfPinpointConstraint.hxx>
0027 #include <TColStd_Array1OfReal.hxx>
0028 #include <TColStd_Array2OfReal.hxx>
0029 #include <Standard_Integer.hxx>
0030 #include <Standard_Real.hxx>
0031 class Plate_PinpointConstraint;
0032 
0033 
0034 //! define on or several constraints as linear combination of
0035 //! PinPointConstraint unlike the LinearScalarConstraint, usage
0036 //! of this kind of constraint preserve the X,Y and Z uncoupling.
0037 class Plate_LinearXYZConstraint 
0038 {
0039 public:
0040 
0041   DEFINE_STANDARD_ALLOC
0042 
0043   
0044   Standard_EXPORT Plate_LinearXYZConstraint();
0045   
0046   Standard_EXPORT Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& thePPC, const TColStd_Array1OfReal& theCoeff);
0047   
0048   Standard_EXPORT Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& thePPC, const TColStd_Array2OfReal& theCoeff);
0049   
0050   Standard_EXPORT Plate_LinearXYZConstraint(const Standard_Integer ColLen, const Standard_Integer RowLen);
0051   
0052     const Plate_Array1OfPinpointConstraint& GetPPC() const;
0053   
0054     const TColStd_Array2OfReal& Coeff() const;
0055   
0056   //! Sets   the PinPointConstraint of   index Index to
0057   //! Value raise if Index is greater than the length of
0058   //! PPC or the Row length of coeff or lower  than 1
0059   Standard_EXPORT void SetPPC (const Standard_Integer Index, const Plate_PinpointConstraint& Value);
0060   
0061   //! Sets the coeff  of index (Row,Col)  to Value
0062   //! raise if  Row (respectively Col)  is greater than the
0063   //! Row (respectively Column) length of coeff
0064   Standard_EXPORT void SetCoeff (const Standard_Integer Row, const Standard_Integer Col, const Standard_Real Value);
0065 
0066 
0067 
0068 
0069 protected:
0070 
0071 
0072 
0073 
0074 
0075 private:
0076 
0077 
0078 
0079   Handle(Plate_HArray1OfPinpointConstraint) myPPC;
0080   Handle(TColStd_HArray2OfReal) myCoef;
0081 
0082 
0083 };
0084 
0085 
0086 #include <Plate_LinearXYZConstraint.lxx>
0087 
0088 
0089 
0090 
0091 
0092 #endif // _Plate_LinearXYZConstraint_HeaderFile