File indexing completed on 2025-01-18 10:04:39
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Prs3d_ArrowAspect_HeaderFile
0018 #define _Prs3d_ArrowAspect_HeaderFile
0019
0020 #include <Graphic3d_AspectLine3d.hxx>
0021 #include <Prs3d_BasicAspect.hxx>
0022
0023
0024 class Prs3d_ArrowAspect : public Prs3d_BasicAspect
0025 {
0026 DEFINE_STANDARD_RTTIEXT(Prs3d_ArrowAspect, Prs3d_BasicAspect)
0027 public:
0028
0029
0030
0031
0032
0033 Standard_EXPORT Prs3d_ArrowAspect();
0034
0035
0036
0037
0038 Standard_EXPORT Prs3d_ArrowAspect(const Standard_Real anAngle, const Standard_Real aLength);
0039
0040 Standard_EXPORT Prs3d_ArrowAspect(const Handle(Graphic3d_AspectLine3d)& theAspect);
0041
0042
0043 Standard_EXPORT void SetAngle (const Standard_Real anAngle);
0044
0045
0046 Standard_Real Angle() const { return myAngle; }
0047
0048
0049 void SetLength (const Standard_Real theLength) { myLength = theLength; }
0050
0051
0052 Standard_Real Length() const { return myLength; }
0053
0054
0055 void SetZoomable (bool theIsZoomable) { myIsZoomable = theIsZoomable; }
0056
0057
0058 bool IsZoomable() const { return myIsZoomable; }
0059
0060 void SetColor (const Quantity_Color& theColor) { myArrowAspect->SetColor (theColor); }
0061
0062 const Handle(Graphic3d_AspectLine3d)& Aspect() const { return myArrowAspect; }
0063
0064 void SetAspect (const Handle(Graphic3d_AspectLine3d)& theAspect) { myArrowAspect = theAspect; }
0065
0066
0067 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0068
0069 protected:
0070
0071 Handle(Graphic3d_AspectLine3d) myArrowAspect;
0072 Standard_Real myAngle;
0073 Standard_Real myLength;
0074 Standard_Boolean myIsZoomable;
0075
0076 };
0077
0078 DEFINE_STANDARD_HANDLE(Prs3d_ArrowAspect, Prs3d_BasicAspect)
0079
0080 #endif