// 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" DEFINE_STANDARD_HANDLE(ISession_Direction,AIS_InteractiveObject) class ISession_Direction : public AIS_InteractiveObject { public: TCollection_ExtendedString myText; void SetText(TCollection_ExtendedString& aText); ISession_Direction(); ISession_Direction(gp_Pnt& aPnt,gp_Dir& aDir,Standard_Real aLength=1,Standard_Real anArrowLength=1); ISession_Direction(gp_Pnt& aPnt,gp_Vec& aVec,Standard_Real anArrowLength=1); ISession_Direction(gp_Pnt2d& aPnt2d,gp_Dir2d& aDir2d,Standard_Real aLength=1); ISession_Direction(gp_Pnt2d& aPnt2d,gp_Vec2d& aVec2d); virtual ~ISession_Direction(); DEFINE_STANDARD_RTTI(ISession_Direction) private: void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode); void Compute (const Handle(Prs3d_Projector)& aProjector, const Handle(Prs3d_Presentation)& aPresentation) ; virtual void Compute(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager, const Handle(Graphic2d_GraphicObject)& aGrObj, const Standard_Integer aMode = 0) ; void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ; gp_Pnt myPnt; gp_Dir myDir; Standard_Real myLength; Quantity_Length myArrowLength; }; #endif // !defined(AFX_ISession_Direction_H__767C0DB3_A3B0_11D1_8DA3_0800369C8A03__INCLUDED_)