7fd59977 |
1 | -- File: TDataXtd.cdl |
2 | -- Created: Thu May 29 14:35:52 2008 |
3 | -- Author: Sergey ZARITCHNY |
4 | -- <sergey.zaritchny@opencascade.com> |
5 | ---Copyright: Open CasCade SA 2008 |
6 | |
7 | |
8 | package TDataXtd |
9 | |
10 | ---Purpose: This package defines extension of standard attributes for |
11 | -- modelling (mainly for work with geometry). |
12 | |
13 | --- Category: GUID - AttributeID |
14 | |
15 | -- 2a96b602-ec8b-11d0-bee7-080009dc3333 TDataXtd_Constraint |
16 | -- 2a96b618-ec8b-11d0-bee7-080009dc3333 TDataXtd_Pattern |
17 | -- 2a96b61b-ec8b-11d0-bee7-080009dc3333 TDataXtd_PatternStd |
18 | -- 2a96b620-ec8b-11d0-bee7-080009dc3333 TDataXtd_Shape |
19 | -- 2a96b60d-ec8b-11d0-bee7-080009dc3333 TDataXtd_Point |
20 | -- 2a96b601-ec8b-11d0-bee7-080009dc3333 TDataXtd_Axis |
21 | -- 2a96b60c-ec8b-11d0-bee7-080009dc3333 TDataXtd_Plane |
22 | -- 2a96b604-ec8b-11d0-bee7-080009dc3333 TDataXtd_Geometry |
23 | -- 2a96b60b-ec8b-11d0-bee7-080009dc3333 TDataXtd_Placement |
24 | uses Standard, |
25 | TCollection, |
26 | TColStd, |
27 | gp, |
28 | BRep, |
29 | Geom, |
30 | TopoDS, |
31 | TDF, |
32 | TDataStd, |
33 | TNaming |
34 | |
35 | is |
36 | enumeration ConstraintEnum is |
37 | --- Purpose: The terms of this enumeration define the types |
38 | -- of available constraint. |
39 | -- ================== |
40 | RADIUS, |
41 | DIAMETER, |
42 | MINOR_RADIUS, |
43 | MAJOR_RADIUS, |
44 | TANGENT, |
45 | PARALLEL, |
46 | PERPENDICULAR, |
47 | CONCENTRIC, |
48 | COINCIDENT, |
49 | DISTANCE, |
50 | ANGLE, |
51 | EQUAL_RADIUS, |
52 | SYMMETRY, |
53 | MIDPOINT, |
54 | EQUAL_DISTANCE, |
55 | FIX, |
56 | RIGID, |
57 | |
58 | -- placement constraints |
59 | -- ===================== |
60 | FROM, |
61 | AXIS, |
62 | MATE, |
63 | ALIGN_FACES, |
64 | ALIGN_AXES, |
65 | AXES_ANGLE, |
66 | FACES_ANGLE, |
67 | ROUND, |
68 | OFFSET |
69 | end ConstraintEnum; |
70 | |
71 | enumeration GeometryEnum is |
72 | ---Purpose: |
73 | -- The terms of this enumeration define the types of geometric shapes available. |
74 | ANY_GEOM, |
75 | POINT, |
76 | LINE, |
77 | CIRCLE, |
78 | ELLIPSE, |
79 | SPLINE, |
80 | PLANE, |
81 | CYLINDER |
82 | end GeometryEnum; |
83 | |
84 | ---Category: Basic attributes for geometry |
85 | -- ============================= |
86 | |
87 | class Position; |
88 | |
89 | class Constraint; |
90 | |
91 | class Placement; |
92 | |
93 | class Geometry; |
94 | |
95 | class Point; |
96 | |
97 | class Axis; |
98 | |
99 | class Plane; |
100 | |
101 | deferred class Pattern; |
102 | |
103 | class PatternStd; |
104 | ---Purpose: LinearPattern, CircularPattern, RectangularPattern, |
105 | -- RadialCircularPattern, MirrorPattern |
106 | |
107 | class Shape; |
108 | |
109 | ---Purpose: tools |
110 | -- ===== |
111 | |
112 | class Array1OfTrsf instantiates Array1 from TCollection (Trsf from gp); |
113 | |
114 | class HArray1OfTrsf instantiates HArray1 from TCollection (Trsf from gp, |
115 | Array1OfTrsf from TDataXtd); |
116 | |
117 | IDList (anIDList : in out IDList from TDF); |
118 | ---Purpose: Appends to <anIDList> the list of the attributes |
119 | -- IDs of this package. CAUTION: <anIDList> is NOT |
120 | -- cleared before use. |
121 | |
122 | ---Purpose: Print of TDataExt enumeration |
123 | -- ============================= |
124 | |
125 | Print (GEO : GeometryEnum from TDataXtd; S : in out OStream) |
126 | ---Purpose: Prints the name of the geometry dimension <GEO> as a String on |
127 | -- the Stream <S> and returns <S>. |
128 | ---C++: return & |
129 | returns OStream; |
130 | |
131 | Print (CTR : ConstraintEnum from TDataXtd; S : in out OStream) |
132 | ---Purpose: Prints the name of the constraint <CTR> as a String on |
133 | -- the Stream <S> and returns <S>. |
134 | ---C++: return & |
135 | returns OStream; |
136 | |
137 | end TDataXtd; |