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_Chamf2dDimension_HeaderFile
0018 #define _PrsDim_Chamf2dDimension_HeaderFile
0019
0020 #include <PrsDim_Relation.hxx>
0021 #include <DsgPrs_ArrowSide.hxx>
0022 #include <gp_Dir.hxx>
0023
0024 class Geom_Plane;
0025
0026 DEFINE_STANDARD_HANDLE(PrsDim_Chamf2dDimension, PrsDim_Relation)
0027
0028
0029
0030
0031
0032 class PrsDim_Chamf2dDimension : public PrsDim_Relation
0033 {
0034 DEFINE_STANDARD_RTTIEXT(PrsDim_Chamf2dDimension, PrsDim_Relation)
0035 public:
0036
0037
0038
0039
0040 Standard_EXPORT PrsDim_Chamf2dDimension(const TopoDS_Shape& aFShape, const Handle(Geom_Plane)& aPlane, const Standard_Real aVal, const TCollection_ExtendedString& aText);
0041
0042
0043
0044
0045
0046
0047 Standard_EXPORT PrsDim_Chamf2dDimension(const TopoDS_Shape& aFShape, const Handle(Geom_Plane)& aPlane, const Standard_Real aVal, const TCollection_ExtendedString& aText, const gp_Pnt& aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize = 0.0);
0048
0049
0050 virtual PrsDim_KindOfDimension KindOfDimension() const Standard_OVERRIDE { return PrsDim_KOD_LENGTH; }
0051
0052
0053 virtual Standard_Boolean IsMovable() const Standard_OVERRIDE { return Standard_True; }
0054
0055 private:
0056
0057 Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
0058 const Handle(Prs3d_Presentation)& thePrs,
0059 const Standard_Integer theMode) Standard_OVERRIDE;
0060
0061 Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel,
0062 const Standard_Integer theMode) Standard_OVERRIDE;
0063
0064 private:
0065
0066 gp_Pnt myPntAttach;
0067 gp_Dir myDir;
0068
0069 };
0070
0071 #endif