0022795: Make possible to display some presentable objects in overlay of others,...
[occt.git] / src / AIS / AIS_InteractiveContext.cdl
index bbab429..3a5ebe4 100755 (executable)
@@ -406,6 +406,26 @@ is
     ---Purpose: Sets the display priority aPriority of the seen parts
 -- presentation of the entity anIobj.
 
+    SetZLayer( me         : mutable;
+               theIObj    : InteractiveObject from AIS;
+               theLayerId : Integer from Standard );
+    ---Purpose: Set Z layer id for interactive object. The layer can be
+    -- specified for displayed object only. The Z layers can be used to display
+    -- temporarily presentations of some object in front of the other objects
+    -- in the scene. The ids for Z layers are generated by V3d_Viewer.
+    -- Note that Z layers differ from under-/overlayer in V3d_View:
+    -- under-/overlayer are intended for specific 2D drawings that appear
+    -- behind/in front of all 3D presentations, while SetZLayer() method
+    -- applies to regular 3D presentations and does not imply any specific
+    -- drawing methods.
+
+    GetZLayer( me;
+               theIObj : InteractiveObject from AIS )
+      returns Integer from Standard;
+    ---Purpose: Get Z layer id set for displayed interactive object.
+    -- If the object doesn't exists in context or has no computed presentations,
+    -- the method returns -1.
+
     Redisplay(me     : mutable;
              aniobj : InteractiveObject from AIS;
              updateviewer : Boolean from Standard = Standard_True;