42cf5bc1 |
1 | // Created on: 2008-05-29 |
2 | // Created by: Sergey ZARITCHNY |
3 | // Copyright (c) 2008-2014 OPEN CASCADE SAS |
4 | // |
5 | // This file is part of Open CASCADE Technology software library. |
6 | // |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
12 | // |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
15 | |
16 | #ifndef _TDataXtd_HeaderFile |
17 | #define _TDataXtd_HeaderFile |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_DefineAlloc.hxx> |
21 | #include <Standard_Handle.hxx> |
22 | |
23 | #include <TDF_IDList.hxx> |
24 | #include <Standard_OStream.hxx> |
25 | #include <TDataXtd_GeometryEnum.hxx> |
26 | #include <TDataXtd_ConstraintEnum.hxx> |
27 | class TDataXtd_Position; |
28 | class TDataXtd_Constraint; |
29 | class TDataXtd_Placement; |
30 | class TDataXtd_Geometry; |
31 | class TDataXtd_Point; |
32 | class TDataXtd_Axis; |
33 | class TDataXtd_Plane; |
34 | class TDataXtd_Pattern; |
35 | class TDataXtd_PatternStd; |
36 | class TDataXtd_Shape; |
624f732f |
37 | class TDataXtd_Triangulation; |
42cf5bc1 |
38 | |
39 | //! This package defines extension of standard attributes for |
40 | //! modelling (mainly for work with geometry). |
41 | class TDataXtd |
42 | { |
43 | public: |
44 | |
45 | DEFINE_STANDARD_ALLOC |
46 | |
47 | |
48 | //! Appends to <anIDList> the list of the attributes |
49 | //! IDs of this package. CAUTION: <anIDList> is NOT |
50 | //! cleared before use. |
51 | //! Print of TDataExt enumeration |
52 | //! ============================= |
53 | Standard_EXPORT static void IDList (TDF_IDList& anIDList); |
54 | |
55 | //! Prints the name of the geometry dimension <GEO> as a String on |
56 | //! the Stream <S> and returns <S>. |
57 | Standard_EXPORT static Standard_OStream& Print (const TDataXtd_GeometryEnum GEO, Standard_OStream& S); |
58 | |
59 | //! Prints the name of the constraint <CTR> as a String on |
60 | //! the Stream <S> and returns <S>. |
61 | Standard_EXPORT static Standard_OStream& Print (const TDataXtd_ConstraintEnum CTR, Standard_OStream& S); |
62 | |
63 | |
64 | |
65 | |
66 | protected: |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | private: |
73 | |
74 | |
75 | |
76 | |
77 | friend class TDataXtd_Position; |
78 | friend class TDataXtd_Constraint; |
79 | friend class TDataXtd_Placement; |
80 | friend class TDataXtd_Geometry; |
81 | friend class TDataXtd_Point; |
82 | friend class TDataXtd_Axis; |
83 | friend class TDataXtd_Plane; |
84 | friend class TDataXtd_Pattern; |
85 | friend class TDataXtd_PatternStd; |
86 | friend class TDataXtd_Shape; |
624f732f |
87 | friend class TDataXtd_Triangulation; |
42cf5bc1 |
88 | |
89 | }; |
90 | |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | |
97 | #endif // _TDataXtd_HeaderFile |