0025773: Visualization - remove AIS_Drawer class and transfer its Link() logic to...
[occt.git] / samples / mfc / standard / 10_Convert / src / ISession / ISession_Curve.cpp
CommitLineData
7fd59977 1// ISession_Curve.cpp: implementation of the ISession_Curve class.
2//
3//////////////////////////////////////////////////////////////////////
4
5#include "stdafx.h"
6#include "ISession_Curve.h"
7#include <Prs3d_LineAspect.hxx>
8#include <StdPrs_Curve.hxx>
9#include <GeomAdaptor_Curve.hxx>
6262338c 10#include <Prs3d_Drawer.hxx>
7fd59977 11#include <Prs3d_ArrowAspect.hxx>
12
13IMPLEMENT_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
14IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
15
16#ifdef _DEBUG
17#undef THIS_FILE
18static char THIS_FILE[]=__FILE__;
19#endif
20
21//////////////////////////////////////////////////////////////////////
22// Construction/Destruction
23//////////////////////////////////////////////////////////////////////
24
25
26ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
27:AIS_InteractiveObject(),myCurve(aCurve)
28{
29}
30
31ISession_Curve::~ISession_Curve()
32{
33
34}
5c573e69 35void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
7fd59977 36 const Handle(Prs3d_Presentation)& aPresentation,
37 const Standard_Integer /*aMode*/)
38{
39 GeomAdaptor_Curve anAdaptorCurve(myCurve);
40 if (hasOwnColor)
41 myDrawer->LineAspect()->SetColor(myOwnColor);
42 myDrawer->Link()->SetDiscretisation(100);
43 myDrawer->Link()->SetMaximalParameterValue(500);
44
45 StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
46}
47
5c573e69 48void ISession_Curve::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
49 const Handle(Prs3d_Presentation)& /*aPresentation*/)
7fd59977 50 {
51
52 }
53
5c573e69 54void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
55 const Standard_Integer /*aMode*/)
7fd59977 56{
57}
58
59