0022795: Make possible to display some presentable objects in overlay of others,...
[occt.git] / src / PrsMgr / PrsMgr_Presentation2d.cxx
CommitLineData
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
11PrsMgr_Presentation2d::PrsMgr_Presentation2d(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager)
12:PrsMgr_Presentation(aPresentationManager), myStructure(new Graphic2d_GraphicObject(aPresentationManager->StructureManager())) {}
13
14PrsMgr_KindOfPrs PrsMgr_Presentation2d::KindOfPresentation() const
15{return PrsMgr_KOP_2D;}
16
17void PrsMgr_Presentation2d::Display (){
18 myStructure->Display();}
19
20void PrsMgr_Presentation2d::Erase () const {
21 myStructure->Erase();}
22
23void PrsMgr_Presentation2d::Highlight () {
24 myStructure->Highlight();}
25
26void PrsMgr_Presentation2d::Unhighlight () const {
27 myStructure->Unhighlight();}
28
29void PrsMgr_Presentation2d::Highlight(const Standard_Integer anIndex) const{
30 myStructure->Highlight(anIndex);}
31
32Standard_Boolean PrsMgr_Presentation2d::IsDisplayed () const {
33 return myStructure->IsDisplayed();
34}
35
36Standard_Boolean PrsMgr_Presentation2d::IsHighlighted () const {
37 return myStructure->IsHighlighted();
38}
39
40
41Standard_Integer PrsMgr_Presentation2d::DisplayPriority() const {
42return -1;
43}
44
45void PrsMgr_Presentation2d::SetDisplayPriority(const Standard_Integer TheNewPrior)
46{
47 // peut etre Raise ?
48}
49
50
51
52
53void PrsMgr_Presentation2d::EnablePlot () const {
54 myStructure->EnablePlot();
55}
56
57void PrsMgr_Presentation2d::DisablePlot () const {
58 myStructure->DisablePlot();
59}
60
61Standard_Boolean PrsMgr_Presentation2d::IsPlottable () const {
62 return myStructure->IsPlottable();
63}
64
65void PrsMgr_Presentation2d::Clear () {
66 myStructure->RemovePrimitives();
67}
68
69Handle(Graphic2d_GraphicObject) PrsMgr_Presentation2d::Presentation() const {
70 return myStructure;
71}
72void PrsMgr_Presentation2d::SetOffset(const Standard_Integer anOffset) {
73 myStructure->SetOffSet(anOffset);}
74
75Standard_Integer PrsMgr_Presentation2d::Offset () const {
76 return myStructure->OffSet();}
77
78
79void PrsMgr_Presentation2d::Destroy () {
80}
59f45b7c 81
82//=======================================================================
83//function : SetZLayer
84//purpose :
85//=======================================================================
86
87void PrsMgr_Presentation2d::SetZLayer (Standard_Integer theLayer)
88{
89}
90
91//=======================================================================
92//function : GetZLayer
93//purpose :
94//=======================================================================
95
96Standard_Integer PrsMgr_Presentation2d::GetZLayer () const
97{
98 return 0;
99}