7fd59977 |
1 | // ISession_Direction.h: interface for the ISession_Direction class. |
2 | // |
3 | ////////////////////////////////////////////////////////////////////// |
4 | |
5 | #if !defined(AFX_ISession_Direction_H__767C0DB3_A3B0_11D1_8DA3_0800369C8A03__INCLUDED_) |
6 | #define AFX_ISession_Direction_H__767C0DB3_A3B0_11D1_8DA3_0800369C8A03__INCLUDED_ |
7 | |
8 | #if _MSC_VER >= 1000 |
9 | #pragma once |
10 | #endif // _MSC_VER >= 1000 |
11 | #include "gp_Dir2d.hxx" |
9e3ca93a |
12 | class ISession_Direction; |
7fd59977 |
13 | DEFINE_STANDARD_HANDLE(ISession_Direction,AIS_InteractiveObject) |
14 | class ISession_Direction : public AIS_InteractiveObject |
15 | { |
16 | public: |
5c1f974e |
17 | TCollection_ExtendedString myText; |
e5b32824 |
18 | void SetText (TCollection_ExtendedString& aText); |
19 | void SetText (Standard_CString aText); |
20 | void SetLineAspect (const Handle(Prs3d_LineAspect)& theAspect); |
5c1f974e |
21 | ISession_Direction(); |
e5b32824 |
22 | ISession_Direction (const gp_Pnt& aPnt,const gp_Dir& aDir,Standard_Real aLength=1,Standard_Real anArrowLength=1); |
23 | ISession_Direction (const gp_Pnt& aPnt,const gp_Vec& aVec,Standard_Real anArrowLength=1); |
7fd59977 |
24 | |
e5b32824 |
25 | ISession_Direction (const gp_Pnt2d& aPnt2d,const gp_Dir2d& aDir2d,Standard_Real aLength=1); |
26 | ISession_Direction (const gp_Pnt2d& aPnt2d,const gp_Vec2d& aVec2d); |
7fd59977 |
27 | |
5c1f974e |
28 | virtual ~ISession_Direction(); |
92efcf78 |
29 | DEFINE_STANDARD_RTTIEXT(ISession_Direction,AIS_InteractiveObject) |
7fd59977 |
30 | |
31 | private: |
32 | |
33 | void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, |
34 | const Handle(Prs3d_Presentation)& aPresentation, |
35 | const Standard_Integer aMode); |
36 | void Compute (const Handle(Prs3d_Projector)& aProjector, |
37 | const Handle(Prs3d_Presentation)& aPresentation) ; |
7fd59977 |
38 | void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ; |
39 | |
40 | gp_Pnt myPnt; |
41 | gp_Dir myDir; |
42 | Standard_Real myLength; |
43 | Quantity_Length myArrowLength; |
44 | }; |
45 | |
46 | #endif // !defined(AFX_ISession_Direction_H__767C0DB3_A3B0_11D1_8DA3_0800369C8A03__INCLUDED_) |