0028110: Configuration - specify Unicode charset instead of multibyte in project...
[occt.git] / src / ViewerTest / ViewerTest.hxx
index 2e7cc4e..e4d5783 100644 (file)
 #include <Draw_Interpretor.hxx>
 #include <Standard_Integer.hxx>
 #include <Standard_CString.hxx>
-#include <Handle_V3d_View.hxx>
 #include <Standard_Boolean.hxx>
-#include <Handle_MMgt_TShared.hxx>
 #include <TopAbs_ShapeEnum.hxx>
-#include <Handle_TopTools_HArray1OfShape.hxx>
-#include <Handle_AIS_InteractiveObject.hxx>
+#include <TopTools_HArray1OfShape.hxx>
+#include <TopTools_ListOfShape.hxx>
 #include <AIS_KindOfInteractive.hxx>
-#include <Handle_TColStd_HArray1OfTransient.hxx>
-#include <Handle_V3d_Viewer.hxx>
-#include <Handle_AIS_InteractiveContext.hxx>
-#include <Handle_ViewerTest_EventManager.hxx>
+#include <Aspect_TypeOfLine.hxx>
+#include <TColStd_HArray1OfTransient.hxx>
 #include <Quantity_NameOfColor.hxx>
 
+
 class TCollection_AsciiString;
 class V3d_View;
 class MMgt_TShared;
 class TopoDS_Shape;
-class TopTools_HArray1OfShape;
 class AIS_InteractiveObject;
-class TColStd_HArray1OfTransient;
 class V3d_Viewer;
 class AIS_InteractiveContext;
 class ViewerTest_EventManager;
 class ViewerTest_EventManager;
-class ViewerTest_DoubleMapOfInteractiveAndName;
-class ViewerTest_DoubleMapNodeOfDoubleMapOfInteractiveAndName;
-class ViewerTest_DoubleMapIteratorOfDoubleMapOfInteractiveAndName;
 class Quantity_Color;
 
 class ViewerTest
@@ -129,8 +121,6 @@ public:
 
   Standard_EXPORT static void Commands (Draw_Interpretor& theCommands);
 
-  Standard_EXPORT static void AviCommands (Draw_Interpretor& theCommands);
-
   Standard_EXPORT static void ViewerCommands (Draw_Interpretor& theCommands);
 
   Standard_EXPORT static void MyCommands (Draw_Interpretor& theCommands);
@@ -141,8 +131,6 @@ public:
 
   Standard_EXPORT static void FilletCommands (Draw_Interpretor& theCommands);
 
-  Standard_EXPORT static void VoxelCommands (Draw_Interpretor& theCommands);
-
   Standard_EXPORT static void OpenGlCommands (Draw_Interpretor& theCommands);
 
   Standard_EXPORT static void GetMousePosition (Standard_Integer& xpix, Standard_Integer& ypix);
@@ -198,6 +186,20 @@ public:
                                                           TCollection_AsciiString&       theName,
                                                           TCollection_AsciiString&       theValue);
 
+  //! Parses boolean argument.
+  //! Handles either flag specified by 0|1 or on|off.
+  Standard_EXPORT static Standard_Boolean ParseOnOff (Standard_CString  theArg,
+                                                      Standard_Boolean& theIsOn);
+
+  //! Returns list of selected shapes.
+  Standard_EXPORT static void GetSelectedShapes (TopTools_ListOfShape& theShapes);
+
+
+  //! Parses line type argument.
+  //! Handles either enumeration (integer) value or string constant.
+  Standard_EXPORT static Standard_Boolean ParseLineType (Standard_CString   theArg,
+                                                         Aspect_TypeOfLine& theType);
+
 private:
 
   //! Returns a window class that implements standard behavior of
@@ -206,13 +208,7 @@ private:
   //! Ctrl+MB2 for pan, etc) and keyboard shortcuts.
   //! This method is relevant for MS Windows only and respectively
   //! returns WNT_WClass handle.
-  Standard_EXPORT static const Handle(MMgt_TShared)& WClass();
-
-friend class ViewerTest_EventManager;
-friend class ViewerTest_DoubleMapOfInteractiveAndName;
-friend class ViewerTest_DoubleMapNodeOfDoubleMapOfInteractiveAndName;
-friend class ViewerTest_DoubleMapIteratorOfDoubleMapOfInteractiveAndName;
-
+  static const Handle(Standard_Transient)& WClass();
 };
 
 #endif // _ViewerTest_HeaderFile