1 -- File: AIS_MinRadiusDimension.cdl
2 -- Created: Thu Jan 22 08:58:42 1998
3 -- Author: Sergey ZARITCHNY
4 -- <szy@androx.nnov.matra-dtv.fr>
5 ---Copyright: Matra Datavision 1998
8 class MinRadiusDimension from AIS inherits EllipseRadiusDimension from AIS
10 ---Purpose:-- Ellipse Min radius dimension of a Shape which
11 -- can be Edge or Face (planar or cylindrical(surface of
12 -- extrusion or surface of offset))
23 Presentation from Prs3d,
24 PresentationManager3d from PrsMgr,
25 Selection from SelectMgr,
27 Transformation from Geom,
28 PresentationManager2d from PrsMgr,
29 GraphicObject from Graphic2d,
30 ExtendedString from TCollection,
31 ArrowSide from DsgPrs,
32 KindOfSurface from AIS,
33 KindOfDimension from AIS
36 raises ConstructionError from Standard
41 Create (aShape : Shape from TopoDS;
42 aVal : Real from Standard;
43 aText : ExtendedString from TCollection)
44 ---Purpose: Max Ellipse radius dimension
45 -- Shape can be edge , planar face or cylindrical face
47 returns mutable MinRadiusDimension from AIS;
49 Create (aShape : Shape from TopoDS;
50 aVal : Real from Standard;
51 aText : ExtendedString from TCollection;
52 aPosition : Pnt from gp;
53 aSymbolPrs : ArrowSide from DsgPrs;
54 anArrowSize : Real from Standard = 0.0)
55 ---Purpose: Max Ellipse radius dimension with position
56 -- Shape can be edge , planar face or cylindrical face
58 returns mutable MinRadiusDimension from AIS;
63 -- Methods from PresentableObject
66 aPresentationManager: PresentationManager3d from PrsMgr;
67 aPresentation : mutable Presentation from Prs3d;
68 aMode : Integer from Standard= 0)
72 aProjector: Projector from Prs3d;
73 aPresentation: mutable Presentation from Prs3d)
74 is redefined static private;
77 aPresentationManager: PresentationManager2d from PrsMgr;
78 aPresentation: mutable GraphicObject from Graphic2d;
79 aMode: Integer from Standard = 0)
80 is redefined static private;
83 aProjector : Projector from Prs3d;
84 aTrsf : Transformation from Geom;
85 aPresentation : mutable Presentation from Prs3d)
87 ---Purpose: computes the presentation according to a point of view
88 -- given by <aProjector>.
89 -- To be Used when the associated degenerated Presentations
90 -- have been transformed by <aTrsf> which is not a Pure
91 -- Translation. The HLR Prs can't be deducted automatically
92 -- WARNING :<aTrsf> must be applied
93 -- to the object to display before computation !!!
95 -- Methods from SelectableObject
97 ComputeSelection(me : mutable;
98 aSelection : mutable Selection from SelectMgr;
99 aMode : Integer from Standard)
100 is redefined private;
103 -- Computation private methods
106 ComputeEllipse(me: mutable;
107 aPresentation : mutable Presentation from Prs3d)
110 ComputeArcOfEllipse(me: mutable;
111 aPresentation : mutable Presentation from Prs3d )
116 myApexP : Pnt from gp;
117 myApexN : Pnt from gp;
118 myEndOfArrow : Pnt from gp;
120 end MinRadiusDimension;