0024428: Implementation of LGPL license
[occt.git] / src / AIS / AIS_MaxRadiusDimension.cdl
CommitLineData
b311480e 1-- Created on: 1998-01-22
2-- Created by: Sergey ZARITCHNY
3-- Copyright (c) 1998-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
973c2be1 8-- This library is free software; you can redistribute it and / or modify it
9-- under the terms of the GNU Lesser General Public version 2.1 as published
10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class MaxRadiusDimension from AIS inherits EllipseRadiusDimension from AIS
18
19 ---Purpose:
20 -- Ellipse Max radius dimension of a Shape which can be Edge
21 -- or Face (planar or cylindrical(surface of extrusion or
22 -- surface of offset))
23
24uses
25 Shape from TopoDS,
26 Elips from gp,
27 Pnt from gp,
28 Pln from gp,
29 Ellipse from Geom,
30 OffsetCurve from Geom,
31 Plane from Geom,
32 Surface from Geom,
33 Presentation from Prs3d,
34 PresentationManager3d from PrsMgr,
35 Selection from SelectMgr,
36 Projector from Prs3d,
128cc8df 37 Transformation from Geom,
7fd59977 38 ExtendedString from TCollection,
39 ArrowSide from DsgPrs,
40 KindOfSurface from AIS,
41 KindOfDimension from AIS
42
43raises ConstructionError from Standard
44
45is
46
47 Create (aShape : Shape from TopoDS;
48 aVal : Real from Standard;
49 aText : ExtendedString from TCollection)
50 ---Purpose: Max Ellipse radius dimension
51 -- Shape can be edge , planar face or cylindrical face
52 --
53 returns mutable MaxRadiusDimension from AIS;
54
55 Create (aShape : Shape from TopoDS;
56 aVal : Real from Standard;
57 aText : ExtendedString from TCollection;
58 aPosition : Pnt from gp;
59 aSymbolPrs : ArrowSide from DsgPrs;
60 anArrowSize : Real from Standard = 0.0)
61 ---Purpose: Max Ellipse radius dimension with position
62 -- Shape can be edge , planar face or cylindrical face
63 --
64 returns mutable MaxRadiusDimension from AIS;
65
66
67
68
69-- Methods from PresentableObject
70
71 Compute(me : mutable;
72 aPresentationManager: PresentationManager3d from PrsMgr;
73 aPresentation : mutable Presentation from Prs3d;
74 aMode : Integer from Standard= 0)
75 is redefined private;
76
77 Compute(me:mutable;
78 aProjector: Projector from Prs3d;
79 aPresentation: mutable Presentation from Prs3d)
128cc8df 80 is redefined static private;
7fd59977 81
82 Compute(me : mutable;
83 aProjector : Projector from Prs3d;
84 aTrsf : Transformation from Geom;
85 aPresentation : mutable Presentation from Prs3d)
86 is redefined;
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 !!!
94
95-- Methods from SelectableObject
96
97 ComputeSelection(me : mutable;
98 aSelection : mutable Selection from SelectMgr;
99 aMode : Integer from Standard)
100 is redefined private;
101
102--
103-- Computation private methods
104--
105
106 ComputeEllipse(me: mutable;
107 aPresentation : mutable Presentation from Prs3d)
108 is private;
109
110 ComputeArcOfEllipse(me: mutable;
111 aPresentation : mutable Presentation from Prs3d )
112 is private;
113
114fields
115
116 myApexP : Pnt from gp;
117 myApexN : Pnt from gp;
118 myEndOfArrow : Pnt from gp;
119
120end MaxRadiusDimension;