File indexing completed on 2025-01-18 10:04:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _PrsDim_EllipseRadiusDimension_HeaderFile
0018 #define _PrsDim_EllipseRadiusDimension_HeaderFile
0019
0020 #include <gp_Elips.hxx>
0021 #include <PrsDim_Relation.hxx>
0022 #include <PrsDim_KindOfSurface.hxx>
0023
0024 class Geom_OffsetCurve;
0025 class TopoDS_Shape;
0026 class TCollection_ExtendedString;
0027 class Geom_Surface;
0028
0029 DEFINE_STANDARD_HANDLE(PrsDim_EllipseRadiusDimension, PrsDim_Relation)
0030
0031
0032
0033
0034 class PrsDim_EllipseRadiusDimension : public PrsDim_Relation
0035 {
0036 DEFINE_STANDARD_RTTIEXT(PrsDim_EllipseRadiusDimension, PrsDim_Relation)
0037 public:
0038
0039 virtual PrsDim_KindOfDimension KindOfDimension() const Standard_OVERRIDE { return PrsDim_KOD_ELLIPSERADIUS; }
0040
0041 virtual Standard_Boolean IsMovable() const Standard_OVERRIDE { return Standard_True; }
0042
0043 Standard_EXPORT void ComputeGeometry();
0044
0045 protected:
0046
0047 Standard_EXPORT PrsDim_EllipseRadiusDimension(const TopoDS_Shape& aShape, const TCollection_ExtendedString& aText);
0048
0049 protected:
0050
0051 gp_Elips myEllipse;
0052 Standard_Real myFirstPar;
0053 Standard_Real myLastPar;
0054 Standard_Boolean myIsAnArc;
0055 Handle(Geom_OffsetCurve) myOffsetCurve;
0056 Standard_Real myOffset;
0057 Standard_Boolean myIsOffset;
0058
0059 private:
0060
0061 Standard_EXPORT void ComputeFaceGeometry();
0062
0063 Standard_EXPORT void ComputeCylFaceGeometry (const PrsDim_KindOfSurface aSurfType, const Handle(Geom_Surface)& aSurf, const Standard_Real Offset);
0064
0065 Standard_EXPORT void ComputePlanarFaceGeometry();
0066
0067 Standard_EXPORT void ComputeEdgeGeometry();
0068
0069 };
0070
0071 #endif