0024530: TKMesh - remove unused package IntPoly
[occt.git] / src / Prs3d / Prs3d_DatumAspect.cxx
CommitLineData
b311480e 1// Copyright (c) 1995-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
973c2be1 6// This library is free software; you can redistribute it and / or modify it
7// under the terms of the GNU Lesser General Public version 2.1 as published
8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
7fd59977 15#include <Prs3d_DatumAspect.ixx>
16
17Prs3d_DatumAspect::Prs3d_DatumAspect () {
18
19 myFirstAxisAspect = new Prs3d_LineAspect
20 (Quantity_NOC_PEACHPUFF,Aspect_TOL_SOLID,1.);
21 mySecondAxisAspect = new Prs3d_LineAspect
22 (Quantity_NOC_PEACHPUFF,Aspect_TOL_SOLID,1.);
23 myThirdAxisAspect = new Prs3d_LineAspect
24 (Quantity_NOC_PEACHPUFF,Aspect_TOL_SOLID,1.);
25 myDrawFirstAndSecondAxis = Standard_True;
26 myDrawThirdAxis = Standard_True;
27 myFirstAxisLength = 10.;
28 mySecondAxisLength = 10.;
29 myThirdAxisLength = 10.;
30}
31
32Handle(Prs3d_LineAspect) Prs3d_DatumAspect::FirstAxisAspect() const {
33
34 return myFirstAxisAspect;
35}
36
37Handle(Prs3d_LineAspect) Prs3d_DatumAspect::SecondAxisAspect() const {
38
39 return mySecondAxisAspect;
40}
41
42Handle(Prs3d_LineAspect) Prs3d_DatumAspect::ThirdAxisAspect() const {
43
44 return myThirdAxisAspect;
45
46}
47Standard_Boolean Prs3d_DatumAspect::DrawFirstAndSecondAxis () const {
48
49 return myDrawFirstAndSecondAxis;
50
51}
52
53void Prs3d_DatumAspect::SetDrawFirstAndSecondAxis (const Standard_Boolean draw)
54{
55 myDrawFirstAndSecondAxis = draw;
56}
57
58Standard_Boolean Prs3d_DatumAspect::DrawThirdAxis () const {
59
60 return myDrawThirdAxis;
61
62}
63
64void Prs3d_DatumAspect::SetDrawThirdAxis (const Standard_Boolean draw)
65{
66 myDrawThirdAxis = draw;
67}
68
69void Prs3d_DatumAspect::SetAxisLength (const Quantity_Length L1,
70 const Quantity_Length L2,
71 const Quantity_Length L3) {
72
73 myFirstAxisLength = L1;
74 mySecondAxisLength = L2;
75 myThirdAxisLength = L3;
76}
77
78
79Quantity_Length Prs3d_DatumAspect::FirstAxisLength () const {
80
81 return myFirstAxisLength;
82
83}
84
85Quantity_Length Prs3d_DatumAspect::SecondAxisLength () const {
86
87 return mySecondAxisLength;
88
89}
90
91Quantity_Length Prs3d_DatumAspect::ThirdAxisLength () const {
92
93 return myThirdAxisLength;
94
95}