0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / StdPersistent / StdPersistent.cxx
1 // Copyright (c) 2015 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
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.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14 #include <StdPersistent.hxx>
15 #include <StdObjMgt_MapOfInstantiators.hxx>
16
17 #include <StdPersistent_TopLoc.hxx>
18 #include <StdPersistent_TopoDS.hxx>
19 #include <StdPersistent_Naming.hxx>
20 #include <StdPersistent_HArray1.hxx>
21 #include <StdLPersistent_HArray1.hxx>
22 #include <StdPersistent_DataXtd.hxx>
23 #include <StdPersistent_DataXtd_Constraint.hxx>
24 #include <StdPersistent_DataXtd_PatternStd.hxx>
25 #include <StdPersistent_PPrsStd.hxx>
26
27
28 //=======================================================================
29 //function : BindTypes
30 //purpose  : Register types
31 //=======================================================================
32 void StdPersistent::BindTypes (StdObjMgt_MapOfInstantiators& theMap)
33 {
34   // Non-attribute data
35   theMap.Bind <StdPersistent_TopLoc::Datum3D>      ("PTopLoc_Datum3D");
36   theMap.Bind <StdPersistent_TopLoc::ItemLocation> ("PTopLoc_ItemLocation");
37   theMap.Bind <StdPersistent_TopoDS::TShape>       ("PTopoDS_TShape1");
38   theMap.Bind <StdPersistent_HArray1::Shape1>      ("PTopoDS_HArray1OfShape1");
39   theMap.Bind <StdPersistent_Naming::Name>         ("PNaming_Name");
40   theMap.Bind <StdPersistent_Naming::Name_1>       ("PNaming_Name_1");
41   theMap.Bind <StdPersistent_Naming::Name_2>       ("PNaming_Name_2");
42
43   theMap.Bind <StdLPersistent_HArray1::Persistent>
44     ("PNaming_HArray1OfNamedShape");
45
46   // Attributes
47   theMap.Bind <StdPersistent_Naming::NamedShape>   ("PNaming_NamedShape");
48   theMap.Bind <StdPersistent_Naming::Naming>       ("PNaming_Naming");
49   theMap.Bind <StdPersistent_Naming::Naming_1>     ("PNaming_Naming_1");
50   theMap.Bind <StdPersistent_Naming::Naming_2>     ("PNaming_Naming_2");
51
52   theMap.Bind <StdPersistent_DataXtd::Shape>       ("PDataXtd_Shape");
53   theMap.Bind <StdPersistent_DataXtd::Point>       ("PDataXtd_Point");
54   theMap.Bind <StdPersistent_DataXtd::Axis>        ("PDataXtd_Axis");
55   theMap.Bind <StdPersistent_DataXtd::Plane>       ("PDataXtd_Plane");
56   theMap.Bind <StdPersistent_DataXtd::Placement>   ("PDataXtd_Placement");
57   theMap.Bind <StdPersistent_DataXtd::Geometry>    ("PDataXtd_Geometry");
58   theMap.Bind <StdPersistent_DataXtd::Position>    ("PDataXtd_Position");
59   theMap.Bind <StdPersistent_DataXtd_Constraint>   ("PDataXtd_Constraint");
60   theMap.Bind <StdPersistent_DataXtd_PatternStd>   ("PDataXtd_PatternStd");
61
62   theMap.Bind <StdPersistent_PPrsStd::AISPresentation>
63     ("PPrsStd_AISPresentation");
64
65   theMap.Bind <StdPersistent_PPrsStd::AISPresentation_1>
66     ("PPrsStd_AISPresentation_1");
67 }