File indexing completed on 2025-01-18 10:04:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _PrsDim_MaxRadiusDimension_HeaderFile
0018 #define _PrsDim_MaxRadiusDimension_HeaderFile
0019
0020 #include <PrsDim_EllipseRadiusDimension.hxx>
0021 #include <DsgPrs_ArrowSide.hxx>
0022
0023 DEFINE_STANDARD_HANDLE(PrsDim_MaxRadiusDimension, PrsDim_EllipseRadiusDimension)
0024
0025
0026
0027
0028 class PrsDim_MaxRadiusDimension : public PrsDim_EllipseRadiusDimension
0029 {
0030 DEFINE_STANDARD_RTTIEXT(PrsDim_MaxRadiusDimension, PrsDim_EllipseRadiusDimension)
0031 public:
0032
0033
0034
0035 Standard_EXPORT PrsDim_MaxRadiusDimension(const TopoDS_Shape& aShape, const Standard_Real aVal, const TCollection_ExtendedString& aText);
0036
0037
0038
0039 Standard_EXPORT PrsDim_MaxRadiusDimension(const TopoDS_Shape& aShape, const Standard_Real aVal, const TCollection_ExtendedString& aText, const gp_Pnt& aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize = 0.0);
0040
0041 private:
0042
0043 Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
0044 const Handle(Prs3d_Presentation)& thePrs,
0045 const Standard_Integer theMode) Standard_OVERRIDE;
0046
0047 Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel,
0048 const Standard_Integer theMode) Standard_OVERRIDE;
0049
0050 Standard_EXPORT void ComputeEllipse (const Handle(Prs3d_Presentation)& aPresentation);
0051
0052 Standard_EXPORT void ComputeArcOfEllipse (const Handle(Prs3d_Presentation)& aPresentation);
0053
0054 private:
0055
0056 gp_Pnt myApexP;
0057 gp_Pnt myApexN;
0058 gp_Pnt myEndOfArrow;
0059
0060 };
0061
0062 #endif