0024351: Test cases for AIS dimension presentations to check arrow orientation, text...
[occt.git] / src / ViewerTest / ViewerTest.cdl
index 27dcf35..641a1f2 100755 (executable)
@@ -29,13 +29,15 @@ uses
     Draw,
     TCollection,
     TColStd,
+    TColgp,
     TopAbs,
     TopTools,
     TopoDS,
     V3d,
     AIS,
     NIS,
-    MMgt
+    MMgt,
+    Quantity
 
 is
 
@@ -67,13 +69,30 @@ is
     ---Category: Create the viewer....
 
     ViewerInit ( thePxLeft,    thePxTop : Integer from Standard = 0;
-                thePxWidth, thePxHeight : Integer from Standard = 0);
-       ---Purpose:
-       --          implemented in ViewerTest_ViewerCommands.cxx
+                thePxWidth, thePxHeight : Integer from Standard = 0;
+                theViewName : CString from Standard = "";
+                theDisplayName : CString from Standard = "")
+    returns AsciiString from TCollection;
+    ---Purpose: Creates view with default or custom name
+    --          and add this name in map to manage muliple views
+    --          implemented in ViewerTest_ViewerCommands.cxx
+   
+    ---Category: Manage the name of views
+    RemoveViewName (theName: AsciiString from TCollection);
+    
+    InitViewName (theName: AsciiString from TCollection;
+                  theView: View from V3d);
+    
+    GetCurrentViewName returns AsciiString from TCollection;
+   
+    ---Category: Delete the viewer....
+    RemoveView (theViewName:AsciiString from TCollection;
+               isContextRemoved:Boolean from Standard= Standard_True);
+    ---Purpose: Removes view and clear all maps
+    --          with information about its resources if neccessary
 
     ---Category: Selection in the viewer....
 
-
     WClass returns TShared from MMgt is private;
     ---C++:     return const &
     ---Purpose: Returns a window class that implements standard behavior of
@@ -134,7 +153,7 @@ is
     GetCollectorFromContext returns Viewer from V3d;
 
     GetAISContext returns InteractiveContext from AIS;
-
+       ---C++: return const &
     GetNISContext returns InteractiveContext from NIS;
     ---C++: return &
 
@@ -143,7 +162,8 @@ is
     SetNISContext (aContext: InteractiveContext from NIS);
 
     CurrentView returns View from V3d;
-
+       ---C++: return const &
+       
     CurrentView (aViou:View from V3d);
 
     Clear ;
@@ -171,6 +191,18 @@ is
 
     StandardModeActivation(Mode  : Integer from Standard);
 
+    GetColorFromName(name: CString from Standard)
+    returns NameOfColor from Quantity;
+
+    RedrawAllViews;
+    ---Purpose: redraws all defined views.
 
+    SplitParameter (theString : AsciiString from TCollection;
+                    theName   : out AsciiString from TCollection;
+                    theValue  : out AsciiString from TCollection)
+    returns Boolean from Standard;
+    ---Purpose: Splits "parameter=value" string into separate
+    -- parameter and value strings.
+    -- @return TRUE if the string matches pattern "<string>=<empty or string>"
 
 end;