1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
-- File: DsgPrs.cdl
-- Created: Mon Oct 3 15:35:36 1994
-- Author: Arnaud BOUZY
-- <adn@houblon>
---Copyright: Matra Datavision 1994
package DsgPrs
---Purpose: Describes Standard Presentations for DsgIHM objects
uses Prs3d,
gp,
TCollection,
TopoDS,
Quantity,
Geom
is
enumeration ArrowSide is AS_NONE,AS_FIRSTAR,AS_LASTAR,AS_BOTHAR,AS_FIRSTPT,AS_LASTPT,AS_BOTHPT,
AS_FIRSTAR_LASTPT,AS_FIRSTPT_LASTAR;
---Purpose: Designates how many arrows will be displayed and
-- where they will be displayed in presenting a length.
class EllipseRadiusPresentation;
class LengthPresentation;
class RadiusPresentation;
class DiameterPresentation;
class FilletRadiusPresentation;
class AnglePresentation;
class Chamf2dPresentation;
class ParalPresentation;
class PerpenPresentation;
class SymmetricPresentation; -- presentation for axial symmetry
class MidPointPresentation; -- presentation for equal distance from point
class TangentPresentation;
class ConcentricPresentation;
class FixPresentation;
class IdenticPresentation;
class EqualRadiusPresentation;
class EqualDistancePresentation;
class SymbPresentation;
class ShapeDirPresentation;
class OffsetPresentation;
class DatumTool;
class DatumPrs instantiates Datum from Prs3d(Ax2 from gp,
DatumTool from DsgPrs);
class XYZAxisPresentation;
class XYZPlanePresentation;
class ShadedPlanePresentation;
ComputeSymbol(aPresentation: Presentation from Prs3d;
anAspect: AngleAspect from Prs3d;
pt1,pt2:Pnt from gp;
dir1,dir2: Dir from gp;
ArrowSide: ArrowSide from DsgPrs);
---Purpose: draws symbols ((one or two) arrows,(one or two)points
-- at thebeginning and at the end of the dimension
ComputeSymbol(aPresentation: Presentation from Prs3d;
anAspect: LengthAspect from Prs3d;
pt1,pt2:Pnt from gp;
dir1,dir2: Dir from gp;
ArrowSide: ArrowSide from DsgPrs;
drawFromCenter: Boolean = Standard_True);
---Purpose: draws symbols ((one or two) arrows,(one or two)points
-- at thebeginning and at the end of the dimension
ComputePlanarFacesLengthPresentation( FirstArrowLength : Real from Standard;
SecondArrowLength : Real from Standard;
AttachmentPoint1 : Pnt from gp;
AttachmentPoint2 : Pnt from gp;
DirAttach : Dir from gp;
OffsetPoint : Pnt from gp;
PlaneOfFaces : Pln from gp;
EndOfArrow1 : out Pnt from gp;
EndOfArrow2 : out Pnt from gp;
DirOfArrow1 : out Dir from gp );
ComputeCurvilinearFacesLengthPresentation( FirstArrowLength : Real from Standard;
SecondArrowLength : Real from Standard;
SecondSurf : Surface from Geom;
AttachmentPoint1 : Pnt from gp;
AttachmentPoint2 : Pnt from gp;
DirAttach : Dir from gp;
EndOfArrow2 : out Pnt from gp;
DirOfArrow1 : out Dir from gp;
VCurve : out Curve from Geom;
UCurve : out Curve from Geom;
FirstU : out Real from Standard;
deltaU : out Real from Standard;
FirstV : out Real from Standard;
deltaV : out Real from Standard );
ComputeFacesAnglePresentation( ArrowLength : Real from Standard;
Value : Real from Standard;
CenterPoint : Pnt from gp;
AttachmentPoint1 : Pnt from gp;
AttachmentPoint2 : Pnt from gp;
dir1 : Dir from gp;
dir2 : Dir from gp;
axisdir : Dir from gp;
isPlane : Boolean from Standard;
AxisOfSurf : Ax1 from gp;
OffsetPoint : Pnt from gp;
AngleCirc : out Circ from gp;
FirstParAngleCirc : out Real from Standard;
LastParAngleCirc : out Real from Standard;
EndOfArrow1 : out Pnt from gp;
EndOfArrow2 : out Pnt from gp;
DirOfArrow1 : out Dir from gp;
DirOfArrow2 : out Dir from gp;
ProjAttachPoint2 : out Pnt from gp;
AttachCirc : out Circ from gp;
FirstParAttachCirc : out Real from Standard;
LastParAttachCirc : out Real from Standard );
ComputeRadiusLine( aCenter : Pnt from gp;
anEndOfArrow : Pnt from gp;
aPosition : Pnt from gp;
drawFromCenter: Boolean from Standard;
aRadLineOrign : out Pnt from gp;
aRadLineEnd : out Pnt from gp);
ComputeFilletRadiusPresentation( ArrowLength : Real from Standard;
Value : Real from Standard;
Position : Pnt from gp;
NormalDir : Dir from gp;
FirstPoint : Pnt from gp;
SecondPoint : Pnt from gp;
Center : Pnt from gp;
BasePnt : Pnt from gp;
drawRevers : Boolean from Standard;
SpecCase : out Boolean from Standard;
FilletCirc : out Circ from gp;
FirstParCirc : out Real from Standard;
LastParCirc : out Real from Standard;
EndOfArrow : out Pnt from gp;
DirOfArrow : out Dir from gp;
DrawPosition : out Pnt from gp );
---Purpose: computes Geometry for fillet radius presentation;
-- special case flag SpecCase equal Standard_True if
-- radius of fillet circle = 0 or if anngle between
-- Vec1(Center, FirstPoint) and Vec2(Center,SecondPoint) equal 0 or PI
DistanceFromApex( elips : Elips from gp;
Apex : Pnt from gp;
par : Real from Standard)
returns Real from Standard;
---Purpose: computes length of ellipse arc in parametric units
end DsgPrs;
|