0028110: Configuration - specify Unicode charset instead of multibyte in project...
[occt.git] / src / ViewerTest / ViewerTest.hxx
index 96800df..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 <TopTools_HArray1OfShape.hxx>
-#include <Handle_AIS_InteractiveObject.hxx>
+#include <TopTools_ListOfShape.hxx>
 #include <AIS_KindOfInteractive.hxx>
+#include <Aspect_TypeOfLine.hxx>
 #include <TColStd_HArray1OfTransient.hxx>
-#include <Handle_V3d_Viewer.hxx>
-#include <Handle_AIS_InteractiveContext.hxx>
-#include <Handle_ViewerTest_EventManager.hxx>
 #include <Quantity_NameOfColor.hxx>
 
+
 class TCollection_AsciiString;
 class V3d_View;
 class MMgt_TShared;
@@ -124,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);
@@ -136,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);
@@ -193,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
@@ -201,7 +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();
+  static const Handle(Standard_Transient)& WClass();
 };
 
 #endif // _ViewerTest_HeaderFile