// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _ViewerTest_HeaderFile #define _ViewerTest_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_MMgt_TShared_HeaderFile #include #endif #ifndef _TopAbs_ShapeEnum_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_TopTools_HArray1OfShape_HeaderFile #include #endif #ifndef _Handle_AIS_InteractiveObject_HeaderFile #include #endif #ifndef _AIS_KindOfInteractive_HeaderFile #include #endif #ifndef _Handle_TColStd_HArray1OfTransient_HeaderFile #include #endif #ifndef _Handle_V3d_Viewer_HeaderFile #include #endif #ifndef _Handle_AIS_InteractiveContext_HeaderFile #include #endif #ifndef _NIS_InteractiveContext_HeaderFile #include #endif #ifndef _Handle_V3d_View_HeaderFile #include #endif #ifndef _Handle_ViewerTest_EventManager_HeaderFile #include #endif class Draw_Interpretor; class MMgt_TShared; class TopoDS_Shape; class TopTools_HArray1OfShape; class AIS_InteractiveObject; class TColStd_HArray1OfTransient; class V3d_Viewer; class AIS_InteractiveContext; class V3d_View; class ViewerTest_EventManager; class ViewerTest_Tool; class ViewerTest_EventManager; class ViewerTest_DoubleMapOfInteractiveAndName; class ViewerTest_DoubleMapNodeOfDoubleMapOfInteractiveAndName; class ViewerTest_DoubleMapIteratorOfDoubleMapOfInteractiveAndName; class ViewerTest { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Loads all Draw commands of V2d & V3d. Used for plugin.
Standard_EXPORT static void Factory(Draw_Interpretor& theDI) ; //! implemented in ViewerTest_ViewerCommands.cxx
Standard_EXPORT static void ViewerInit(const Standard_Integer thePxLeft = 0,const Standard_Integer thePxTop = 0,const Standard_Integer thePxWidth = 0,const Standard_Integer thePxHeight = 0) ; //! waits until a shape of type is picked in the AIS Viewer and returns it.
//! if == TopAbs_Shape, any shape can be picked...
//! MaxPick is the Max number before exiting, if no pick is successfull
Standard_EXPORT static TopoDS_Shape PickShape(const TopAbs_ShapeEnum aType,const Standard_Integer MaxPick = 5) ; //! wait until the array is filled with picked shapes.
//! returns True if the array is filled.
//! exit if number of unsuccesfull picks =
Standard_EXPORT static Standard_Boolean PickShapes(const TopAbs_ShapeEnum aType,Handle(TopTools_HArray1OfShape)& thepicked,const Standard_Integer MaxPick = 5) ; //! waits until an interactive object of a given Type
//! and signature is picked (defaut values authorize
//! selection of any Interactive Object)
//! exit if number of unsuccesfull picks =
Standard_EXPORT static Handle_AIS_InteractiveObject PickObject(const AIS_KindOfInteractive Type = AIS_KOI_None,const Standard_Integer Signature = -1,const Standard_Integer MaxPick = 5) ; //! selection of several interactive objects. Number is given
//! by the size of
//! exit if number of unsuccesfull picks =
Standard_EXPORT static Standard_Boolean PickObjects(Handle(TColStd_HArray1OfTransient)& thepicked,const AIS_KindOfInteractive Type = AIS_KOI_None,const Standard_Integer Signature = -1,const Standard_Integer MaxPick = 5) ; 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) ; Standard_EXPORT static void RelationCommands(Draw_Interpretor& theCommands) ; Standard_EXPORT static void ObjectCommands(Draw_Interpretor& theCommands) ; Standard_EXPORT static void FilletCommands(Draw_Interpretor& theCommands) ; Standard_EXPORT static void VoxelCommands(Draw_Interpretor& theCommands) ; Standard_EXPORT static void GetMousePosition(Standard_Integer& xpix,Standard_Integer& ypix) ; Standard_EXPORT static Handle_V3d_Viewer GetViewerFromContext() ; Standard_EXPORT static Handle_V3d_Viewer GetCollectorFromContext() ; Standard_EXPORT static Handle_AIS_InteractiveContext GetAISContext() ; Standard_EXPORT static NIS_InteractiveContext& GetNISContext() ; Standard_EXPORT static void SetAISContext(const Handle(AIS_InteractiveContext)& aContext) ; Standard_EXPORT static void SetNISContext(const NIS_InteractiveContext& aContext) ; Standard_EXPORT static Handle_V3d_View CurrentView() ; Standard_EXPORT static void CurrentView(const Handle(V3d_View)& aViou) ; Standard_EXPORT static void Clear() ; //! puts as current eventmanager (the
//! move,select,...will be applied to
Standard_EXPORT static void SetEventManager(const Handle(ViewerTest_EventManager)& aMgr) ; //! removes the last EventManager from the list.
Standard_EXPORT static void UnsetEventManager() ; //! clear the list of EventManagers and
//! sets the default EventManager as current
Standard_EXPORT static void ResetEventManager() ; Standard_EXPORT static Handle_ViewerTest_EventManager CurrentEventManager() ; Standard_EXPORT static void RemoveSelected() ; Standard_EXPORT static void StandardModeActivation(const Standard_Integer Mode) ; protected: private: //! Returns a window class that implements standard behavior of
//! all windows of the ViewerTest. This includes usual Open CASCADE
//! view conventions for mouse buttons (e.g. Ctrl+MB1 for zoom,
//! 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_Tool; friend class ViewerTest_EventManager; friend class ViewerTest_DoubleMapOfInteractiveAndName; friend class ViewerTest_DoubleMapNodeOfDoubleMapOfInteractiveAndName; friend class ViewerTest_DoubleMapIteratorOfDoubleMapOfInteractiveAndName; }; // other Inline functions and methods (like "C++: function call" methods) #endif