0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / AIS / AIS_MinRadiusDimension.cdl
CommitLineData
b311480e 1-- Created on: 1998-01-22
2-- Created by: Sergey ZARITCHNY
3-- Copyright (c) 1998-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class MinRadiusDimension from AIS inherits EllipseRadiusDimension from AIS
24
25 ---Purpose:-- Ellipse Min radius dimension of a Shape which
26 -- can be Edge or Face (planar or cylindrical(surface of
27 -- extrusion or surface of offset))
28
29uses
30
31 Shape from TopoDS,
32 Elips from gp,
33 Pnt from gp,
34 Pln from gp,
35 Ellipse from Geom,
36 Plane from Geom,
37 Surface from Geom,
38 Presentation from Prs3d,
39 PresentationManager3d from PrsMgr,
40 Selection from SelectMgr,
41 Projector from Prs3d,
128cc8df 42 Transformation from Geom,
7fd59977 43 ExtendedString from TCollection,
44 ArrowSide from DsgPrs,
45 KindOfSurface from AIS,
46 KindOfDimension from AIS
47
48
49raises ConstructionError from Standard
50
51is
52
53
54 Create (aShape : Shape from TopoDS;
55 aVal : Real from Standard;
56 aText : ExtendedString from TCollection)
57 ---Purpose: Max Ellipse radius dimension
58 -- Shape can be edge , planar face or cylindrical face
59 --
60 returns mutable MinRadiusDimension from AIS;
61
62 Create (aShape : Shape from TopoDS;
63 aVal : Real from Standard;
64 aText : ExtendedString from TCollection;
65 aPosition : Pnt from gp;
66 aSymbolPrs : ArrowSide from DsgPrs;
67 anArrowSize : Real from Standard = 0.0)
68 ---Purpose: Max Ellipse radius dimension with position
69 -- Shape can be edge , planar face or cylindrical face
70 --
71 returns mutable MinRadiusDimension from AIS;
72
73
74
75
76-- Methods from PresentableObject
77
78 Compute(me : mutable;
79 aPresentationManager: PresentationManager3d from PrsMgr;
80 aPresentation : mutable Presentation from Prs3d;
81 aMode : Integer from Standard= 0)
82 is redefined private;
83
84 Compute(me:mutable;
85 aProjector: Projector from Prs3d;
86 aPresentation: mutable Presentation from Prs3d)
87 is redefined static private;
7fd59977 88
89 Compute(me : mutable;
90 aProjector : Projector from Prs3d;
91 aTrsf : Transformation from Geom;
92 aPresentation : mutable Presentation from Prs3d)
93 is redefined;
94 ---Purpose: computes the presentation according to a point of view
95 -- given by <aProjector>.
96 -- To be Used when the associated degenerated Presentations
97 -- have been transformed by <aTrsf> which is not a Pure
98 -- Translation. The HLR Prs can't be deducted automatically
99 -- WARNING :<aTrsf> must be applied
100 -- to the object to display before computation !!!
101
102-- Methods from SelectableObject
103
104 ComputeSelection(me : mutable;
105 aSelection : mutable Selection from SelectMgr;
106 aMode : Integer from Standard)
107 is redefined private;
108
109--
110-- Computation private methods
111--
112
113 ComputeEllipse(me: mutable;
114 aPresentation : mutable Presentation from Prs3d)
115 is private;
116
117 ComputeArcOfEllipse(me: mutable;
118 aPresentation : mutable Presentation from Prs3d )
119 is private;
120
121fields
122
123 myApexP : Pnt from gp;
124 myApexN : Pnt from gp;
125 myEndOfArrow : Pnt from gp;
126
127end MinRadiusDimension;