mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-30 13:05:50 +03:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
71 lines
2.0 KiB
C++
71 lines
2.0 KiB
C++
// Copyright (c) 1995-1999 Matra Datavision
|
|
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#define IMP120100 //GG 01/01/00 Add SetColor() methods
|
|
|
|
#include <Prs3d_ArrowAspect.ixx>
|
|
|
|
Prs3d_ArrowAspect::Prs3d_ArrowAspect ()
|
|
: myAngle(M_PI/180.*10), myLength(1.) {
|
|
#ifdef IMP120100
|
|
myArrowAspect =
|
|
new Graphic3d_AspectLine3d (
|
|
Quantity_Color(Quantity_NOC_WHITE), Aspect_TOL_SOLID, 1.0);
|
|
#endif
|
|
}
|
|
|
|
|
|
Prs3d_ArrowAspect::Prs3d_ArrowAspect (const Quantity_PlaneAngle anAngle,
|
|
const Quantity_Length aLength)
|
|
: myAngle(anAngle), myLength(aLength) {
|
|
#ifdef IMP120100
|
|
myArrowAspect =
|
|
new Graphic3d_AspectLine3d (
|
|
Quantity_Color(Quantity_NOC_WHITE), Aspect_TOL_SOLID, 1.0);
|
|
#endif
|
|
}
|
|
|
|
void Prs3d_ArrowAspect::SetAngle ( const Quantity_PlaneAngle anAngle) {
|
|
Prs3d_InvalidAngle_Raise_if ( anAngle <= 0. ||
|
|
anAngle >= M_PI /2. , "");
|
|
myAngle = anAngle;
|
|
}
|
|
Quantity_PlaneAngle Prs3d_ArrowAspect::Angle () const
|
|
{
|
|
return myAngle;
|
|
}
|
|
|
|
void Prs3d_ArrowAspect::SetLength ( const Quantity_Length aLength)
|
|
{
|
|
myLength = aLength;
|
|
}
|
|
Quantity_Length Prs3d_ArrowAspect::Length () const
|
|
{
|
|
return myLength;
|
|
}
|
|
|
|
#ifdef IMP120100
|
|
void Prs3d_ArrowAspect::SetColor(const Quantity_Color &aColor) {
|
|
myArrowAspect->SetColor(aColor);
|
|
}
|
|
|
|
void Prs3d_ArrowAspect::SetColor(const Quantity_NameOfColor aColor) {
|
|
SetColor(Quantity_Color(aColor));
|
|
}
|
|
|
|
Handle(Graphic3d_AspectLine3d) Prs3d_ArrowAspect::Aspect() const {
|
|
return myArrowAspect;
|
|
}
|
|
#endif
|