Integration of OCCT 6.5.0 from SVN
[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 #include "StdPrs_Curve.hxx"
13 #include "GeomAdaptor_Curve.hxx"
14 #include "StdPrs_PoleCurve.hxx"
15 #ifdef _DEBUG
16 #undef THIS_FILE
17 static char THIS_FILE[]=__FILE__;
18 #endif
19
20 //////////////////////////////////////////////////////////////////////
21 // Construction/Destruction
22 //////////////////////////////////////////////////////////////////////
23
24
25 ISession_Curve::ISession_Curve(Handle(Geom_Curve)& aCurve)
26 :AIS_InteractiveObject(),myCurve(aCurve)
27 {
28
29 }
30
31 ISession_Curve::~ISession_Curve()
32 {
33
34 }
35 void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
36                              const Handle(Prs3d_Presentation)& aPresentation,
37                              const Standard_Integer aMode)
38 {
39     GeomAdaptor_Curve anAdaptorCurve(myCurve);
40     Handle(AIS_Drawer) aDrawer = new AIS_Drawer();
41     aDrawer->LineAspect()->SetColor(Quantity_NOC_RED);
42
43     switch (aMode)
44     {
45         case 1 :
46         StdPrs_PoleCurve::Add(aPresentation, anAdaptorCurve,aDrawer);
47         case 0 :
48         StdPrs_Curve::Add( aPresentation, anAdaptorCurve ,myDrawer);
49         break;
50     }
51 }
52
53 void ISession_Curve::Compute(const Handle(Prs3d_Projector)& aProjector,
54                              const Handle(Prs3d_Presentation)& aPresentation) 
55  {
56
57  }
58
59 void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
60                                       const Standard_Integer aMode) 
61
62 }
63
64