// 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 _StdSelect_ViewerSelector3d_HeaderFile #define _StdSelect_ViewerSelector3d_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_StdSelect_ViewerSelector3d_HeaderFile #include #endif #ifndef _Handle_Select3D_Projector_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Graphic3d_Group_HeaderFile #include #endif #ifndef _Handle_Graphic3d_Structure_HeaderFile #include #endif #ifndef _SelectMgr_ViewerSelector_HeaderFile #include #endif #ifndef _Handle_SelectMgr_Selection_HeaderFile #include #endif #ifndef _Handle_V3d_View_HeaderFile #include #endif class Select3D_Projector; class Graphic3d_Group; class Graphic3d_Structure; class SelectMgr_Selection; class V3d_View; class TColgp_Array1OfPnt2d; //! Selector Usable by Viewers from V3d
//!
class StdSelect_ViewerSelector3d : public SelectMgr_ViewerSelector { public: //! Constructs an empty 3D selector object.
Standard_EXPORT StdSelect_ViewerSelector3d(); //! Constructs a 3D selector object defined by the projector aProj.
Standard_EXPORT StdSelect_ViewerSelector3d(const Handle(Select3D_Projector)& aProj); //! Processes the projection of the sensitive primitives
//! in the active view ; to be done before the selection action...
Standard_EXPORT void Convert(const Handle(SelectMgr_Selection)& aSelection) ; //! Sets the sensitivity aSensitivity.
Standard_EXPORT void Set(const Standard_Integer aSensitivity) ; //! Sets the new projector aProj to replace the one used at construction time.
Standard_EXPORT void Set(const Handle(Select3D_Projector)& aProj) ; //! Picks the sensitive entity at the pixel coordinates of
//! the mouse Xpix and Ypix. The selector looks for touched areas and owners.
Standard_EXPORT void Pick(const Standard_Integer XPix,const Standard_Integer YPix,const Handle(V3d_View)& aView) ; //! Picks the sensitive entity according to the minimum
//! and maximum pixel values XPMin, YPMin, XPMax
//! and YPMax defining a 2D area for selection in the 3D view aView.
Standard_EXPORT void Pick(const Standard_Integer XPMin,const Standard_Integer YPMin,const Standard_Integer XPMax,const Standard_Integer YPMax,const Handle(V3d_View)& aView) ; //! pick action - input pixel values for polyline selection for selection.
Standard_EXPORT void Pick(const TColgp_Array1OfPnt2d& Polyline,const Handle(V3d_View)& aView) ; //! Returns the current Projector.
const Handle_Select3D_Projector& Projector() const; //! Puts back the address of the current projector in sensitive primitives...
Standard_EXPORT void ReactivateProjector() ; //! Displays sensitive areas found in the view aView.
Standard_EXPORT void DisplayAreas(const Handle(V3d_View)& aView) ; //! Clears the view aView of sensitive areas found in it.
Standard_EXPORT void ClearAreas(const Handle(V3d_View)& aView) ; //! Displays the selection aSel found in the view aView.
Standard_EXPORT void DisplaySensitive(const Handle(V3d_View)& aView) ; Standard_EXPORT void ClearSensitive(const Handle(V3d_View)& aView) ; Standard_EXPORT void DisplaySensitive(const Handle(SelectMgr_Selection)& aSel,const Handle(V3d_View)& aView,const Standard_Boolean ClearOthers = Standard_True) ; Standard_EXPORT void DisplayAreas(const Handle(SelectMgr_Selection)& aSel,const Handle(V3d_View)& aView,const Standard_Boolean ClearOthers = Standard_True) ; DEFINE_STANDARD_RTTI(StdSelect_ViewerSelector3d) protected: private: Standard_EXPORT Standard_Boolean UpdateProj(const Handle(V3d_View)& aView) ; Standard_EXPORT void ComputeSensitivePrs(const Handle(SelectMgr_Selection)& aSel) ; Standard_EXPORT void ComputeAreasPrs(const Handle(SelectMgr_Selection)& aSel) ; Handle_Select3D_Projector myprj; Standard_Real mycoeff[14]; Standard_Real myprevcoeff[14]; Standard_Real mycenter[2]; Standard_Real myprevcenter[2]; Standard_Real mylastzoom; Standard_Integer mypixtol; Standard_Boolean myupdatetol; Handle_Graphic3d_Group myareagroup; Handle_Graphic3d_Group mysensgroup; Handle_Graphic3d_Structure mystruct; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif