1 // Copyright (c) 2015 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #ifndef _StdObject_gp_Trsfs_HeaderFile
16 #define _StdObject_gp_Trsfs_HeaderFile
19 #include <StdObject_gp_Vectors.hxx>
21 #include <gp_Mat2d.hxx>
23 #include <gp_Trsf2d.hxx>
24 #include <gp_Trsf.hxx>
27 inline StdObjMgt_ReadData& operator >>
28 (StdObjMgt_ReadData::Object theReadData, gp_Mat2d& theMat)
31 theReadData >> aRow1 >> aRow2;
32 theMat.SetRows (aRow1, aRow2);
36 inline StdObjMgt_ReadData& operator >>
37 (StdObjMgt_ReadData::Object theReadData, gp_Mat& theMat)
39 gp_XYZ aRow1, aRow2, aRow3;
40 theReadData >> aRow1 >> aRow2 >> aRow3;
41 theMat.SetRows (aRow1, aRow2, aRow3);
45 inline StdObjMgt_ReadData& operator >>
46 (StdObjMgt_ReadData::Object theReadData, gp_Trsf2d& theTrsf)
49 Standard_Integer aForm;
53 theReadData >> aScale >> aForm >> aMat >> aLoc;
55 theTrsf.SetValues (aScale * aMat(1, 1), aScale * aMat(1, 2), aLoc.X(),
56 aScale * aMat(2, 1), aScale * aMat(2, 2), aLoc.Y());
61 inline StdObjMgt_ReadData& operator >>
62 (StdObjMgt_ReadData::Object theReadData, gp_Trsf& theTrsf)
65 Standard_Integer aForm;
69 theReadData >> aScale >> aForm >> aMat >> aLoc;
72 aScale * aMat(1, 1), aScale * aMat(1, 2), aScale * aMat(1, 3), aLoc.X(),
73 aScale * aMat(2, 1), aScale * aMat(2, 2), aScale * aMat(2, 3), aLoc.Y(),
74 aScale * aMat(3, 1), aScale * aMat(3, 2), aScale * aMat(3, 3), aLoc.Z());