7fd59977 |
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 |
5 | // <jlf@stylox> |
6 | |
7 | |
8 | #include <PrsMgr_Presentation2d.ixx> |
9 | #include <PrsMgr_PresentationManager.hxx> |
10 | |
11 | PrsMgr_Presentation2d::PrsMgr_Presentation2d(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager) |
12 | :PrsMgr_Presentation(aPresentationManager), myStructure(new Graphic2d_GraphicObject(aPresentationManager->StructureManager())) {} |
13 | |
14 | PrsMgr_KindOfPrs PrsMgr_Presentation2d::KindOfPresentation() const |
15 | {return PrsMgr_KOP_2D;} |
16 | |
17 | void PrsMgr_Presentation2d::Display (){ |
18 | myStructure->Display();} |
19 | |
20 | void PrsMgr_Presentation2d::Erase () const { |
21 | myStructure->Erase();} |
22 | |
23 | void PrsMgr_Presentation2d::Highlight () { |
24 | myStructure->Highlight();} |
25 | |
26 | void PrsMgr_Presentation2d::Unhighlight () const { |
27 | myStructure->Unhighlight();} |
28 | |
29 | void PrsMgr_Presentation2d::Highlight(const Standard_Integer anIndex) const{ |
30 | myStructure->Highlight(anIndex);} |
31 | |
32 | Standard_Boolean PrsMgr_Presentation2d::IsDisplayed () const { |
33 | return myStructure->IsDisplayed(); |
34 | } |
35 | |
36 | Standard_Boolean PrsMgr_Presentation2d::IsHighlighted () const { |
37 | return myStructure->IsHighlighted(); |
38 | } |
39 | |
40 | |
41 | Standard_Integer PrsMgr_Presentation2d::DisplayPriority() const { |
42 | return -1; |
43 | } |
44 | |
45 | void PrsMgr_Presentation2d::SetDisplayPriority(const Standard_Integer TheNewPrior) |
46 | { |
47 | // peut etre Raise ? |
48 | } |
49 | |
50 | |
51 | |
52 | |
53 | void PrsMgr_Presentation2d::EnablePlot () const { |
54 | myStructure->EnablePlot(); |
55 | } |
56 | |
57 | void PrsMgr_Presentation2d::DisablePlot () const { |
58 | myStructure->DisablePlot(); |
59 | } |
60 | |
61 | Standard_Boolean PrsMgr_Presentation2d::IsPlottable () const { |
62 | return myStructure->IsPlottable(); |
63 | } |
64 | |
65 | void PrsMgr_Presentation2d::Clear () { |
66 | myStructure->RemovePrimitives(); |
67 | } |
68 | |
69 | Handle(Graphic2d_GraphicObject) PrsMgr_Presentation2d::Presentation() const { |
70 | return myStructure; |
71 | } |
72 | void PrsMgr_Presentation2d::SetOffset(const Standard_Integer anOffset) { |
73 | myStructure->SetOffSet(anOffset);} |
74 | |
75 | Standard_Integer PrsMgr_Presentation2d::Offset () const { |
76 | return myStructure->OffSet();} |
77 | |
78 | |
79 | void PrsMgr_Presentation2d::Destroy () { |
80 | } |