summaryrefslogtreecommitdiff
path: root/src/Prs3d/Prs3d_AngleAspect.cxx
blob: 6d9cda06e7924d7c3b670616ee5837772f2404d8 (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
#include <Prs3d_AngleAspect.ixx>

Prs3d_AngleAspect::Prs3d_AngleAspect() {
  myLineAspect = new Prs3d_LineAspect 
                          (Quantity_NOC_LAWNGREEN,Aspect_TOL_SOLID,1.); 
  myArrowAspect = new Prs3d_ArrowAspect;
  myTextAspect = new Prs3d_TextAspect;
}

Handle (Prs3d_LineAspect) Prs3d_AngleAspect::LineAspect () const {
  return myLineAspect;}

void Prs3d_AngleAspect::SetLineAspect(const Handle(Prs3d_LineAspect)& anAspect) {
  myLineAspect = anAspect;}

Handle(Prs3d_ArrowAspect) Prs3d_AngleAspect::ArrowAspect () const {
  return myArrowAspect;}

void Prs3d_AngleAspect::SetArrowAspect (
				  const Handle(Prs3d_ArrowAspect)& anAspect) {
  myArrowAspect = anAspect;
}

Handle(Prs3d_TextAspect) Prs3d_AngleAspect::TextAspect () const {
  return myTextAspect;}

void Prs3d_AngleAspect::SetTextAspect (
				  const Handle(Prs3d_TextAspect)& anAspect) {
  myTextAspect = anAspect;
}

void Prs3d_AngleAspect::Print (Standard_OStream& s) const {
  
  s << "AngleAspect: " << endl;
  s << "                 " ; myLineAspect->Print(s); s << endl;
  s << "         arrow   " ; myArrowAspect->Print(s); s << endl;
  s << "                 " ; myTextAspect->Print(s); s << endl;
}