mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-06 10:36:12 +03:00
Multiple PrsMgr_PresentableObject::Compute() methods have been replaced by single one PrsMgr_PresentableObject::computeHLR(). Dummy implementations of previously declared methods have been removed from AIS classes not implementng HLR presentation. Class Prs3d_Projector has been removed and Graphic3d_Camera is now passed directly, so that redundant dependency from HLRAlgo_Projector in Prs3d interfaces has been eliminated. StdPrs_HLRShape and StdPrs_HLRPolyShape now implement common interface StdPrs_HLRShapeI.
53 lines
1.4 KiB
C++
Executable File
53 lines
1.4 KiB
C++
Executable File
// ISession_Curve.cpp: implementation of the ISession_Curve class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "stdafx.h"
|
|
#include "ISession_Curve.h"
|
|
#include <Prs3d_LineAspect.hxx>
|
|
#include <StdPrs_Curve.hxx>
|
|
#include <GeomAdaptor_Curve.hxx>
|
|
#include <Prs3d_Drawer.hxx>
|
|
#include <Prs3d_ArrowAspect.hxx>
|
|
|
|
IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
|
|
:AIS_InteractiveObject(),myCurve(aCurve)
|
|
{
|
|
}
|
|
|
|
ISession_Curve::~ISession_Curve()
|
|
{
|
|
|
|
}
|
|
void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
|
const Handle(Prs3d_Presentation)& aPresentation,
|
|
const Standard_Integer /*aMode*/)
|
|
{
|
|
GeomAdaptor_Curve anAdaptorCurve(myCurve);
|
|
if (hasOwnColor)
|
|
myDrawer->LineAspect()->SetColor (myDrawer->Color());
|
|
myDrawer->Link()->SetDiscretisation(100);
|
|
myDrawer->Link()->SetMaximalParameterValue(500);
|
|
|
|
StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
|
|
}
|
|
|
|
void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
|
const Standard_Integer /*aMode*/)
|
|
{
|
|
}
|
|
|
|
|