1 // File: PrsMgr_Presentation2d.cxx
2 // Created: Thu Oct 21 13:11:19 1993
3 // Author: Jean-Louis FRENKEL
4 // Modified by rob 09-oct-96
8 #include <PrsMgr_Presentation2d.ixx>
9 #include <PrsMgr_PresentationManager.hxx>
11 PrsMgr_Presentation2d::PrsMgr_Presentation2d(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager)
12 :PrsMgr_Presentation(aPresentationManager), myStructure(new Graphic2d_GraphicObject(aPresentationManager->StructureManager())) {}
14 PrsMgr_KindOfPrs PrsMgr_Presentation2d::KindOfPresentation() const
15 {return PrsMgr_KOP_2D;}
17 void PrsMgr_Presentation2d::Display (){
18 myStructure->Display();}
20 void PrsMgr_Presentation2d::Erase () const {
21 myStructure->Erase();}
23 void PrsMgr_Presentation2d::Highlight () {
24 myStructure->Highlight();}
26 void PrsMgr_Presentation2d::Unhighlight () const {
27 myStructure->Unhighlight();}
29 void PrsMgr_Presentation2d::Highlight(const Standard_Integer anIndex) const{
30 myStructure->Highlight(anIndex);}
32 Standard_Boolean PrsMgr_Presentation2d::IsDisplayed () const {
33 return myStructure->IsDisplayed();
36 Standard_Boolean PrsMgr_Presentation2d::IsHighlighted () const {
37 return myStructure->IsHighlighted();
41 Standard_Integer PrsMgr_Presentation2d::DisplayPriority() const {
45 void PrsMgr_Presentation2d::SetDisplayPriority(const Standard_Integer TheNewPrior)
53 void PrsMgr_Presentation2d::EnablePlot () const {
54 myStructure->EnablePlot();
57 void PrsMgr_Presentation2d::DisablePlot () const {
58 myStructure->DisablePlot();
61 Standard_Boolean PrsMgr_Presentation2d::IsPlottable () const {
62 return myStructure->IsPlottable();
65 void PrsMgr_Presentation2d::Clear () {
66 myStructure->RemovePrimitives();
69 Handle(Graphic2d_GraphicObject) PrsMgr_Presentation2d::Presentation() const {
72 void PrsMgr_Presentation2d::SetOffset(const Standard_Integer anOffset) {
73 myStructure->SetOffSet(anOffset);}
75 Standard_Integer PrsMgr_Presentation2d::Offset () const {
76 return myStructure->OffSet();}
79 void PrsMgr_Presentation2d::Destroy () {