0023776: Redesign of MFC samples after V2d viewer removing
[occt.git] / samples / mfc / standard / 01_Geometry / src / ISession2D / ISession_Curve.cpp
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"
8
9 IMPLEMENT_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
10 IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
11
12 #ifdef _DEBUG
13 #undef THIS_FILE
14 static char THIS_FILE[]=__FILE__;
15 #endif
16
17 //////////////////////////////////////////////////////////////////////
18 // Construction/Destruction
19 //////////////////////////////////////////////////////////////////////
20
21
22 ISession_Curve::ISession_Curve(Handle(Geom_Curve)& aCurve)
23 :AIS_InteractiveObject(),myCurve(aCurve)
24 {
25
26 }
27
28 ISession_Curve::~ISession_Curve()
29 {
30
31 }
32 void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
33                              const Handle(Prs3d_Presentation)& aPresentation,
34                              const Standard_Integer aMode)
35 {
36     GeomAdaptor_Curve anAdaptorCurve(myCurve);
37     Handle(AIS_Drawer) aDrawer = new AIS_Drawer();
38     aDrawer->LineAspect()->SetColor(Quantity_NOC_RED);
39
40     switch (aMode)
41     {
42         case 1 :
43         StdPrs_PoleCurve::Add(aPresentation, anAdaptorCurve,aDrawer);
44         case 0 :
45         StdPrs_Curve::Add( aPresentation, anAdaptorCurve ,myDrawer);
46         break;
47     }
48 }
49
50 void ISession_Curve::Compute(const Handle(Prs3d_Projector)& aProjector,
51                              const Handle(Prs3d_Presentation)& aPresentation) 
52  {
53
54  }
55
56 void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
57                                       const Standard_Integer aMode) 
58
59 }
60
61