0024420: Add methods to switch the type of sensitivity in AIS_Circle and AIS_Plane
[occt.git] / src / AIS / AIS_Plane.cdl
index 932fdd9..4b4e4ec 100755 (executable)
@@ -1,11 +1,26 @@
--- File:       AIS_Plane.cdl
--- Created:    Wed Aug  2 16:18:48 1995
--- Author:     Arnaud BOUZY/Odile Olivier
---             <adn@houblon>
+-- Created on: 1995-08-02
+-- Created by: Arnaud BOUZY/Odile Olivier
+-- Copyright (c) 1995-1999 Matra Datavision
+-- Copyright (c) 1999-2012 OPEN CASCADE SAS
+--
+-- The content of this file is subject to the Open CASCADE Technology Public
+-- License Version 6.5 (the "License"). You may not use the content of this file
+-- except in compliance with the License. Please obtain a copy of the License
+-- at http://www.opencascade.org and read it completely before using this file.
+--
+-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
+-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+--
+-- The Original Code and all software distributed under the License is
+-- distributed on an "AS IS" basis, without warranty of any kind, and the
+-- Initial Developer hereby disclaims all such warranties, including without
+-- limitation, any warranties of merchantability, fitness for a particular
+-- purpose or non-infringement. Please see the License for the specific terms
+-- and conditions governing the rights and limitations under the License.
+
 --   GG  :  GER61351 17/11/1999 Change SetColor() with a compatible Quantity_Color instead
 --                                    the restricted NameOfColor.
 --Modified by   rob Wed 11 feb 98 : add Size Methods
----Copyright:   Matra Datavision 1995
 
 
 class Plane from AIS inherits InteractiveObject from AIS
@@ -20,11 +35,10 @@ uses
     NameOfColor           from Quantity,
     Color                        from Quantity,
     Selection             from SelectMgr,
+    TypeOfSensitivity     from Select3D,
     Pnt                   from gp,
     Projector             from Prs3d,
     Transformation        from Geom,
-    PresentationManager2d from PrsMgr,
-    GraphicObject         from Graphic2d,        
     NameOfMaterial        from Graphic3d,
     TypeOfPlane           from AIS, 
     Axis2Placement        from Geom,
@@ -174,6 +188,15 @@ is
     SetContext(me:mutable; aCtx : InteractiveContext from AIS) is redefined;
        ---Purpose: connection to <aCtx> default drawer implies a recomputation of Frame values.
 
+    TypeOfSensitivity (me) returns TypeOfSensitivity from Select3D;
+    ---C++: inline
+    ---Purpose: Returns the type of sensitivity for the plane;
+
+    SetTypeOfSensitivity (me: mutable;
+                          theTypeOfSensitivity: TypeOfSensitivity from Select3D);
+    ---C++: inline
+    ---Purpose: Sets the type of sensitivity for the plane.
+
 -- Methods from PresentableObject
 
     Compute(me            : mutable;
@@ -185,13 +208,7 @@ is
     Compute(me:mutable;
                aProjector: Projector from Prs3d;
                 aPresentation: mutable Presentation from Prs3d)
-    is redefined virtual private;     
-
-    Compute(me:mutable;
-           aPresentationManager: PresentationManager2d from PrsMgr;
-            aPresentation: mutable GraphicObject from Graphic2d;
-            aMode: Integer from Standard = 0)
-    is redefined virtual private;          
+    is redefined virtual private;
 
     Compute(me            : mutable;
             aProjector    : Projector from Prs3d;
@@ -242,5 +259,6 @@ fields
     myTypeOfPlane  : TypeOfPlane from AIS;
     myIsXYZPlane   : Boolean from Standard;
     myHasOwnSize   : Boolean from Standard;
+    myTypeOfSensitivity: TypeOfSensitivity from Select3D;
     
 end Plane;