b311480e |
1 | -- Created on: 1995-03-08 |
2 | -- Created by: Mister rmi |
3 | -- Copyright (c) 1995-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 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
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. |
b311480e |
16 | |
7fd59977 |
17 | --Modified by ROB : Add ShapeFilters. |
18 | -- GG : 5/10/99 BUC60576 Add Cone to TypeOfFace enum |
7fd59977 |
19 | |
20 | |
21 | package StdSelect |
22 | |
23 | ---Purpose: The StdSelect package provides the following services |
24 | -- - the definition of selection modes for topological shapes |
25 | -- - the definition of several concrete filtertandard |
26 | -- Selection2d.ap classes |
27 | -- - 2D and 3D viewer selectors. |
28 | -- Note that each new Interactive Object must have all |
29 | -- its selection modes defined. |
30 | -- Standard Classes is useful to build |
31 | -- 3D Selectable Objects, and to process |
32 | -- 3D Selections: |
33 | -- |
34 | -- - Implementation of View Selector for dynamic selection |
35 | -- in Views from V3d. |
36 | -- |
37 | -- - Implementation of Tool class to decompose 3D BRep Objects |
38 | -- into sensitive Primitives for every desired mode of selection |
39 | -- (selection of vertex,edges,wires,faces,...) |
40 | -- |
41 | -- - Implementation of dedicated Sensitives Entities: |
42 | -- Text for 2D Views (linked to Specific 2D projectors.) |
43 | uses |
44 | MMgt, |
45 | Standard, |
46 | TCollection, |
47 | TopLoc, |
48 | TopoDS, |
49 | SelectMgr, |
50 | TopAbs, |
51 | TColStd, |
52 | gp, |
53 | Select3D, |
f751596e |
54 | Graphic3d, |
55 | Visual3d, |
7fd59977 |
56 | Quantity, |
57 | Prs3d, |
7fd59977 |
58 | V3d, |
59 | PrsMgr, |
60 | SelectBasics, |
61 | TopTools, |
62 | Bnd, |
63 | Geom, |
64 | TColgp |
65 | |
66 | is |
67 | |
68 | enumeration TypeOfResult is TOR_SIMPLE,TOR_MULTIPLE |
69 | end TypeOfResult; |
70 | ---Purpose: Provides values for type of result. |
71 | -- These are used to specify whether the result is to |
72 | -- be simple or whether it may be multiple. |
73 | |
74 | enumeration DisplayMode is DM_Wireframe,DM_Shading,DM_HLR |
75 | end DisplayMode; |
76 | |
77 | -- enumeration TypeOfFace is AnyFace,Plane,Cylinder,Sphere,Torus,Revol; |
78 | enumeration TypeOfFace is AnyFace,Plane,Cylinder,Sphere,Torus,Revol,Cone; |
79 | ---Purpose: Provides values for different types of faces. These |
80 | -- values are used to filter faces in frameworks inheriting |
81 | -- StdSelect_FaceFilter. |
82 | |
83 | enumeration TypeOfEdge is AnyEdge,Line,Circle; |
84 | ---Purpose: Provides values for different types of edges. These |
85 | -- values are used to filter edges in frameworks |
86 | -- inheriting StdSelect_EdgeFilter. |
3c982548 |
87 | |
88 | enumeration SensitivityMode is SM_WINDOW, SM_VIEW; |
89 | ---Purpose: Selection sensitivity mode. SM_WINDOW mode uses the |
90 | -- specified pixel tolerance to compute the sensitivity value, |
91 | -- SM_VIEW mode allows to define the sensitivity manually. |
f751596e |
92 | |
93 | |
7fd59977 |
94 | class BRepSelectionTool; |
7fd59977 |
95 | |
96 | class BRepOwner; |
ff8178ef |
97 | |
7fd59977 |
98 | |
6a866b32 |
99 | ---Category: Shape Filters |
7fd59977 |
100 | |
7fd59977 |
101 | class EdgeFilter; |
102 | class FaceFilter; |
103 | class ShapeTypeFilter; |
7fd59977 |
104 | |
f751596e |
105 | imported transient class ViewerSelector3d; |
106 | |
6a866b32 |
107 | ---Category: Private Classes |
7fd59977 |
108 | |
109 | private class Prs; |
6a866b32 |
110 | |
7fd59977 |
111 | private class Shape; |
112 | |
df8d3970 |
113 | imported IndexedDataMapOfOwnerPrs; |
7fd59977 |
114 | |
f751596e |
115 | SetDrawerForBRepOwner(aSelection: Selection from SelectMgr; |
116 | aDrawer : Drawer from Prs3d); |
117 | ---Purpose: puts The same drawer in every BRepOwner Of SensitivePrimitive |
118 | -- Used Only for hilight Of BRepOwner... |
7fd59977 |
119 | |
120 | end StdSelect; |