0025695: Visualization, AIS_InteractiveContext - define default HilightMode
[occt.git] / samples / mfc / occtdemo / Common / 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
13
7fd59977 14//
15// Foreach ancestors, we add a IMPLEMENT_STANDARD_SUPERTYPE and
16// a IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY macro.
17// We must respect the order: from the direct ancestor class
18// to the base class.
19//
92efcf78 20
21
22
23
24
25
26
27
28
29
30
31
32
7fd59977 33
34#ifdef _DEBUG
35#undef THIS_FILE
36static char THIS_FILE[]=__FILE__;
37#endif
38
39//////////////////////////////////////////////////////////////////////
40// Construction/Destruction
41//////////////////////////////////////////////////////////////////////
42
43
44ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
45:AIS_InteractiveObject(),myCurve(aCurve)
46{
47}
48
49ISession_Curve::~ISession_Curve()
50{
51
52}
53void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
54 const Handle(Prs3d_Presentation)& aPresentation,
55 const Standard_Integer /*aMode*/)
56{
57 GeomAdaptor_Curve anAdaptorCurve(myCurve);
58 if (hasOwnColor)
f838dac4 59 myDrawer->LineAspect()->SetColor (myDrawer->Color());
7fd59977 60 myDrawer->Link()->SetDiscretisation(100);
61 myDrawer->Link()->SetMaximalParameterValue(500);
62
63 StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
64}
65
66void ISession_Curve::Compute(const Handle(Prs3d_Projector)& aProjector,
67 const Handle(Prs3d_Presentation)& aPresentation)
68 {
69
70 }
71
72void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
73 const Standard_Integer aMode)
74{
75}
76
77