1 -- Created on: 1991-11-25
2 -- Created by: NW,JPB,CAL
3 -- Copyright (c) 1991-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class ContextPick from Visual3d
21 ---Purpose: This class allows the creation and update of
22 -- a pick context for one view of the viewer.
23 -- A context allows the control of different parameters
24 -- before the activation of a pick.
26 -- * the pick aperture.
27 -- * the depth of pick, the number of sub-structures selected.
28 -- * the order of picking, the possibility to traverse
29 -- the pick structures starting from the root
32 ---Keywords: Pick, Context, Aperture, Depth, Order, Structure
39 TypeOfOrder from Visual3d
43 ContextPickDefinitionError from Visual3d
48 returns ContextPick from Visual3d;
50 ---Purpose: Creates a context from default values
54 -- Order : TOO_TOPFIRST
56 Create ( Aperture : Real from Standard;
57 Depth : Integer from Standard;
58 Order : TypeOfOrder from Visual3d )
59 returns ContextPick from Visual3d
61 ---Purpose: Creates a context with the values defined
62 -- Warning: Raises ContextPickDefinitionError if <Depth> or
63 -- <Aperture> is a negative value.
64 raises ContextPickDefinitionError;
66 -----------------------------------------------------
67 -- Category: Methods to modifies the class definition
68 -----------------------------------------------------
70 SetAperture ( me : in out;
71 Aperture : Real from Standard )
73 ---Purpose: Modifies the size of the pick window.
74 -- Category: Methods to modifies the class definition
75 -- Warning: Raises ContextPickDefinitionError if <Aperture> is
77 raises ContextPickDefinitionError is static;
79 SetDepth ( me : in out;
80 Depth : Integer from Standard )
82 ---Purpose: Modifies the pick depth a priori.
83 -- Category: Methods to modifies the class definition
84 -- Warning: Raises ContextPickDefinitionError if <Depth> is
86 raises ContextPickDefinitionError is static;
88 SetOrder ( me : in out;
89 Order : TypeOfOrder from Visual3d ) is static;
91 ---Purpose: Modifies the order of picking.
93 -- TypeOfOrder : TOO_TOPFIRST
96 ---Category: Methods to modifies the class definition
98 ----------------------------
99 -- Category: Inquire methods
100 ----------------------------
103 returns Real from Standard is static;
105 ---Purpose: Returns the size of the pick window <me>.
106 ---Category: Inquire methods
109 returns Integer from Standard is static;
111 ---Purpose: Returns the effective pick depth of <me>.
112 ---Category: Inquire methods
115 returns TypeOfOrder from Visual3d is static;
117 ---Purpose: Returns the order of picking of <me>.
119 -- TypeOfOrder : TOO_TOPFIRST
122 ---Category: Inquire methods
129 -- Class : Visual3d_ContextPick
131 -- Purpose : Declaration of variables specific to
134 -- Reminders : A pick context is defined by:
135 -- - the pick aperture
136 -- - the depth demanded
137 -- - the order of traversing the structure
140 MyAperture : Real from Standard;
143 MyDepth : Integer from Standard;
145 -- order of traversing pick structures
146 MyOrder : TypeOfOrder from Visual3d;