summaryrefslogtreecommitdiff
path: root/src/PrsMgr/PrsMgr_Presentation2d.cxx
blob: b6e141ce22d183ace662b325ff485fde0ed47039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// File:	PrsMgr_Presentation2d.cxx
// Created:	Thu Oct 21 13:11:19 1993
// Author:	Jean-Louis FRENKEL
// Modified by  rob 09-oct-96
//		<jlf@stylox>


#include <PrsMgr_Presentation2d.ixx>
#include <PrsMgr_PresentationManager.hxx>

PrsMgr_Presentation2d::PrsMgr_Presentation2d(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager)
:PrsMgr_Presentation(aPresentationManager), myStructure(new Graphic2d_GraphicObject(aPresentationManager->StructureManager())) {}

PrsMgr_KindOfPrs PrsMgr_Presentation2d::KindOfPresentation() const
{return PrsMgr_KOP_2D;}

void PrsMgr_Presentation2d::Display (){
  myStructure->Display();}

void PrsMgr_Presentation2d::Erase () const {
  myStructure->Erase();}

void PrsMgr_Presentation2d::Highlight () {
  myStructure->Highlight();}

void PrsMgr_Presentation2d::Unhighlight () const {
  myStructure->Unhighlight();}

void PrsMgr_Presentation2d::Highlight(const Standard_Integer anIndex) const{ 
  myStructure->Highlight(anIndex);}

Standard_Boolean PrsMgr_Presentation2d::IsDisplayed () const {
  return myStructure->IsDisplayed();
}        

Standard_Boolean PrsMgr_Presentation2d::IsHighlighted () const {
  return myStructure->IsHighlighted();
}


Standard_Integer PrsMgr_Presentation2d::DisplayPriority() const {
return -1;
}

void PrsMgr_Presentation2d::SetDisplayPriority(const Standard_Integer TheNewPrior)
{
  // peut etre Raise ?
}




void PrsMgr_Presentation2d::EnablePlot () const {
  myStructure->EnablePlot();
}

void PrsMgr_Presentation2d::DisablePlot () const {
  myStructure->DisablePlot();
}

Standard_Boolean PrsMgr_Presentation2d::IsPlottable () const {
  return myStructure->IsPlottable();
}

void PrsMgr_Presentation2d::Clear () {
  myStructure->RemovePrimitives();
}

Handle(Graphic2d_GraphicObject) PrsMgr_Presentation2d::Presentation() const {
  return myStructure;
}
void PrsMgr_Presentation2d::SetOffset(const Standard_Integer anOffset) { 
  myStructure->SetOffSet(anOffset);}

Standard_Integer PrsMgr_Presentation2d::Offset () const {
  return myStructure->OffSet();}


void PrsMgr_Presentation2d::Destroy () {
}