X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FViewerTest%2FViewerTest.hxx;h=e4d57833a4578833554bf90f2bd829c17760b82f;hp=2e7cc4e3b33e0d9b65046993bf18307d43ed6ae5;hb=ad03c2344920e9a5ddcb6527aab24470970a026f;hpb=d09dda092917333ad264fed700a5ec6b98bee868 diff --git a/src/ViewerTest/ViewerTest.hxx b/src/ViewerTest/ViewerTest.hxx index 2e7cc4e3b3..e4d57833a4 100644 --- a/src/ViewerTest/ViewerTest.hxx +++ b/src/ViewerTest/ViewerTest.hxx @@ -22,33 +22,25 @@ #include #include #include -#include #include -#include #include -#include -#include +#include +#include #include -#include -#include -#include -#include +#include +#include #include + 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