// ISession_Direction.h: interface for the ISession_Direction class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_ISession_Direction_H__767C0DB3_A3B0_11D1_8DA3_0800369C8A03__INCLUDED_) #define AFX_ISession_Direction_H__767C0DB3_A3B0_11D1_8DA3_0800369C8A03__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include "gp_Dir2d.hxx" class ISession_Direction; DEFINE_STANDARD_HANDLE(ISession_Direction,AIS_InteractiveObject) class ISession_Direction : public AIS_InteractiveObject { public: TCollection_ExtendedString myText; void SetText (TCollection_ExtendedString& aText); void SetText (Standard_CString aText); void SetLineAspect (const Handle(Prs3d_LineAspect)& theAspect); ISession_Direction(); ISession_Direction (const gp_Pnt& aPnt,const gp_Dir& aDir,Standard_Real aLength=1,Standard_Real anArrowLength=1); ISession_Direction (const gp_Pnt& aPnt,const gp_Vec& aVec,Standard_Real anArrowLength=1); ISession_Direction (const gp_Pnt2d& aPnt2d,const gp_Dir2d& aDir2d,Standard_Real aLength=1); ISession_Direction (const gp_Pnt2d& aPnt2d,const gp_Vec2d& aVec2d); virtual ~ISession_Direction(); DEFINE_STANDARD_RTTIEXT(ISession_Direction,AIS_InteractiveObject) private: void Compute (const Handle(PrsMgr_PresentationManager)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode); void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ; gp_Pnt myPnt; gp_Dir myDir; Standard_Real myLength; Standard_Real myArrowLength; }; #endif // !defined(AFX_ISession_Direction_H__767C0DB3_A3B0_11D1_8DA3_0800369C8A03__INCLUDED_)