7fd59977 |
1 | // ISession_Curve.cpp: implementation of the ISession_Curve class. |
2 | // |
3 | ////////////////////////////////////////////////////////////////////// |
4 | |
5 | #include "stdafx.h" |
6 | #include "..\\GeometryApp.h" |
7 | #include "ISession_Curve.h" |
234e52be |
8 | #include <StdPrs_PoleCurve.hxx> |
7fd59977 |
9 | |
10 | IMPLEMENT_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject) |
11 | IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject) |
12 | |
7fd59977 |
13 | #ifdef _DEBUG |
14 | #undef THIS_FILE |
15 | static char THIS_FILE[]=__FILE__; |
16 | #endif |
17 | |
18 | ////////////////////////////////////////////////////////////////////// |
19 | // Construction/Destruction |
20 | ////////////////////////////////////////////////////////////////////// |
21 | |
22 | |
23 | ISession_Curve::ISession_Curve(Handle(Geom_Curve)& aCurve) |
24 | :AIS_InteractiveObject(),myCurve(aCurve) |
25 | { |
26 | |
27 | } |
28 | |
29 | ISession_Curve::~ISession_Curve() |
30 | { |
31 | |
32 | } |
33 | void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, |
34 | const Handle(Prs3d_Presentation)& aPresentation, |
35 | const Standard_Integer aMode) |
36 | { |
37 | GeomAdaptor_Curve anAdaptorCurve(myCurve); |
38 | Handle(AIS_Drawer) aDrawer = new AIS_Drawer(); |
39 | aDrawer->LineAspect()->SetColor(Quantity_NOC_RED); |
40 | |
41 | switch (aMode) |
42 | { |
43 | case 1 : |
44 | StdPrs_PoleCurve::Add(aPresentation, anAdaptorCurve,aDrawer); |
45 | case 0 : |
46 | StdPrs_Curve::Add( aPresentation, anAdaptorCurve ,myDrawer); |
47 | break; |
48 | } |
49 | } |
50 | |
51 | void ISession_Curve::Compute(const Handle(Prs3d_Projector)& aProjector, |
52 | const Handle(Prs3d_Presentation)& aPresentation) |
53 | { |
54 | |
55 | } |
56 | |
57 | void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection, |
58 | const Standard_Integer aMode) |
59 | { |
60 | } |
61 | |
62 | |