1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
#include "stdafx.h"
#include "ISession2D_ObjectOwner.h"
#include <PrsMgr_PresentationManager2d.hxx>
IMPLEMENT_STANDARD_HANDLE(ISession2D_ObjectOwner,SelectMgr_EntityOwner)
IMPLEMENT_STANDARD_RTTIEXT(ISession2D_ObjectOwner,SelectMgr_EntityOwner)
ISession2D_ObjectOwner::ISession2D_ObjectOwner(const Standard_Integer aPriority) //= 0
:SelectMgr_EntityOwner(aPriority)
{}
ISession2D_ObjectOwner::ISession2D_ObjectOwner(const Handle(SelectMgr_SelectableObject)& aSO,
const Standard_Integer aPriority ) //= 0
:SelectMgr_EntityOwner(aSO,aPriority)
{}
// Presentation Management
void ISession2D_ObjectOwner::Hilight(const Handle(PrsMgr_PresentationManager)& aPM,
const Standard_Integer aMode) // = 0
{
ASSERT(aPM->IsKind(STANDARD_TYPE(PrsMgr_PresentationManager2d)));
if (myGo.IsNull())
{
Handle(Graphic2d_View) aView = Handle(PrsMgr_PresentationManager2d)::DownCast(aPM)->StructureManager();
myGo = new Graphic2d_GraphicObject(aView);
}
Handle(Graphic2d_Text) text;
text = new Graphic2d_Text(myGo, myDumpMessage, 0, 0, 0,Aspect_TOT_SOLID,1.5);
text->SetZoomable(Standard_False);
myGo->Display();
}
void ISession2D_ObjectOwner::Unhilight(const Handle(PrsMgr_PresentationManager)& aPM,
const Standard_Integer aMode) // = 0
{
if (myGo.IsNull()) return;
myGo->RemovePrimitives();
myGo->Display();
myGo->Remove();
}