1 -- Created on: 2000-04-07
2 -- Created by: Tanya COOL
3 -- Copyright (c) 2000-2012 OPEN CASCADE SAS
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
23 ---Purpose: FOR APPLICATION INTERACTIVE SERVICES
25 -- This package provides the classes and methods
26 -- to the maintenance of the high level 2D visualization .
27 -- The central entity is Interactive Context for easily
28 -- piloting presentation and selection.
29 -- AIS2D package proposes the classes of standard Interactive Objects
30 -- and this one allows to implement users classes of interactive objects,
31 -- by respecting a certain rules of creating of Interactive Object.
50 enumeration KindOfIO is
61 enumeration KindOfDimension is
71 enumeration KindOfPrimitive is
121 enumeration TypeOfAxis is
129 enumeration DisplayStatus is
131 DS_Displayed, -- displayed in main viewer
132 DS_Erased, -- erased in the collector
133 DS_FullErased, -- erased but not in the collector
134 DS_Temporary, -- temporary displayed
139 enumeration SelectStatus is
147 enumeration StatusOfPick is
157 enumeration StatusOfDetection is
167 end StatusOfDetection;
169 enumeration TypeOfDetection is
177 enumeration ClearMode is
186 class InteractiveContext;
187 class InteractiveObject;
190 private class LocalStatus;
191 private class GlobalStatus;
192 private class LocalContext;
194 private class PrimitiveArchit;
196 private class SequenceOfIO instantiates Sequence from TCollection
197 ( InteractiveObject from AIS2D );
199 private class HSequenceOfIO instantiates HSequence from TCollection
200 ( InteractiveObject from AIS2D, SequenceOfIO from AIS2D );
202 private class SequenceOfPrimArchit instantiates Sequence from TCollection
203 ( PrimitiveArchit from AIS2D );
205 private class HSequenceOfPrimArchit instantiates HSequence from TCollection
206 ( PrimitiveArchit from AIS2D, SequenceOfPrimArchit from AIS2D );
208 private class DataMapOfIOStatus instantiates DataMap from TCollection
209 ( InteractiveObject from AIS2D,
210 GlobalStatus from AIS2D,
211 MapTransientHasher from TColStd );
212 -- Management of interactiveObjects Status...
214 class ListOfIO instantiates List from TCollection
215 ( InteractiveObject from AIS2D );
217 class DataMapOfPrimAspects instantiates DataMap from TCollection
218 ( Primitive from Graphic2d,
219 AspectRoot from Prs2d,
220 MapTransientHasher from TColStd);
222 private class DataMapOfLC instantiates DataMap from TCollection
223 ( Integer from Standard,
224 LocalContext from AIS2D,
225 MapIntegerHasher from TColStd );
227 private class DataMapOfLocStat instantiates DataMap from TCollection
228 ( InteractiveObject from AIS2D,
229 LocalStatus from AIS2D,
230 MapTransientHasher from TColStd );
231 -- to tell if an object is sensitive to Standard Modes Of Selection....
234 pointer PToListOfInt to ListOfInteger from TColStd;
236 Save( aCntx: InteractiveContext from AIS2D; aFile: CString from Standard )
238 Retrieve( aCntx: InteractiveContext from AIS2D; aFile: CString from Standard )
239 returns InteractiveObject from AIS2D;