Commit | Line | Data |
---|---|---|
7fd59977 | 1 | deferred class SensitivePoly from Select3D |
2 | inherits SensitiveEntity from Select3D | |
3 | ||
4 | ---Purpose: Sensitive Entity to make a face selectable. | |
ceae62f0 A |
5 | -- In some cases this class can raise Standard_ConstructionError and |
6 | -- Standard_OutOfRange exceptions from its member Select3D_PointData | |
7 | -- mypolyg. | |
7fd59977 | 8 | |
9 | uses | |
10 | EntityOwner from SelectBasics, | |
11 | Projector from Select3D, | |
12 | ListOfBox2d from SelectBasics, | |
13 | Array1OfPnt from TColgp, | |
14 | HArray1OfPnt from TColgp, | |
ceae62f0 A |
15 | Array1OfPnt2d from TColgp, |
16 | Box2d from Select3D, | |
17 | PointData from Select3D | |
18 | ||
19 | raises | |
20 | ConstructionError from Standard, | |
21 | OutOfRange from Standard | |
7fd59977 | 22 | |
23 | is | |
24 | ||
25 | Initialize (OwnerId : EntityOwner from SelectBasics; | |
26 | ThePoints : Array1OfPnt from TColgp) | |
27 | returns mutable SensitivePoly; | |
28 | ---Level: Public | |
29 | ---Purpose: Constructs a sensitive face object defined by the | |
30 | -- owner OwnerId, the array of points ThePoints, and | |
31 | -- the sensitivity type Sensitivity. | |
32 | -- The array of points is the outer polygon of the geometric face. | |
33 | ||
34 | Initialize (OwnerId : EntityOwner from SelectBasics; | |
35 | ThePoints : HArray1OfPnt from TColgp) | |
36 | returns mutable SensitivePoly; | |
37 | ---Level: Public | |
38 | ---Purpose: Constructs a sensitive face object defined by the | |
39 | -- owner OwnerId, the array of points ThePoints, and | |
40 | -- the sensitivity type Sensitivity. | |
41 | -- The array of points is the outer polygon of the geometric face. | |
42 | ||
43 | Initialize(OwnerId : EntityOwner from SelectBasics; | |
44 | NbOfPoints : Integer = 6) | |
45 | returns mutable SensitivePoly; | |
46 | ---Level: Public | |
47 | ---Purpose: Constructs the sensitive circle object defined by the | |
48 | -- owner OwnerId, the circle Circle, the Boolean | |
ac04d101 | 49 | -- FilledCircle and the number of points NbOfPoints. |
7fd59977 | 50 | |
51 | Project (me:mutable;aProjector : Projector from Select3D) is redefined virtual; | |
52 | ---Level: Public | |
53 | ---Purpose: projection of the sensitive primitive in order to | |
54 | -- get 2D boxes for the Sort Algorithm | |
55 | ||
56 | Areas (me:mutable ; boxes : in out ListOfBox2d from SelectBasics) is redefined static; | |
57 | ---Level: Public | |
58 | ---Purpose: stores in <boxes> the 2D Boxes which represent the sensitive face | |
59 | -- in the selection algorithm. | |
60 | ||
61 | Points3D(me:mutable; theHArrayOfPnt : in out HArray1OfPnt from TColgp); | |
62 | ---Purpose: Returns the 3D points of the array used at construction time. | |
63 | ---C++: inline | |
64 | ||
65 | Points2D(me:mutable; theArrayOfPnt2d : in out Array1OfPnt2d from TColgp); | |
66 | ---Purpose: Returns the 2D points of the array used at construction time. | |
67 | ---C++: inline | |
68 | ||
7fd59977 | 69 | fields |
70 | ||
7fd59977 | 71 | mybox2d : Box2d from Select3D is protected; |
ceae62f0 | 72 | mypolyg : PointData from Select3D is protected; |
ac04d101 | 73 | end SensitivePoly; |