1 #define IMP120100 //GG 01/01/00 Add SetColor() methods
3 #include <Prs3d_ArrowAspect.ixx>
5 Prs3d_ArrowAspect::Prs3d_ArrowAspect ()
6 : myAngle(M_PI/180.*10), myLength(1.) {
9 new Graphic3d_AspectLine3d (
10 Quantity_Color(Quantity_NOC_WHITE), Aspect_TOL_SOLID, 1.0);
15 Prs3d_ArrowAspect::Prs3d_ArrowAspect (const Quantity_PlaneAngle anAngle,
16 const Quantity_Length aLength)
17 : myAngle(anAngle), myLength(aLength) {
20 new Graphic3d_AspectLine3d (
21 Quantity_Color(Quantity_NOC_WHITE), Aspect_TOL_SOLID, 1.0);
25 void Prs3d_ArrowAspect::SetAngle ( const Quantity_PlaneAngle anAngle) {
26 Prs3d_InvalidAngle_Raise_if ( anAngle <= 0. ||
27 anAngle >= M_PI /2. , "");
30 Quantity_PlaneAngle Prs3d_ArrowAspect::Angle () const
35 void Prs3d_ArrowAspect::SetLength ( const Quantity_Length aLength)
39 Quantity_Length Prs3d_ArrowAspect::Length () const
44 void Prs3d_ArrowAspect::Print (Standard_OStream& s) const {
46 s << "ArrowAspect: Length: " << myLength << " Angle: " << myAngle;
51 void Prs3d_ArrowAspect::SetColor(const Quantity_Color &aColor) {
52 myArrowAspect->SetColor(aColor);
55 void Prs3d_ArrowAspect::SetColor(const Quantity_NameOfColor aColor) {
56 SetColor(Quantity_Color(aColor));
59 Handle(Graphic3d_AspectLine3d) Prs3d_ArrowAspect::Aspect() const {