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_OffsetDimension_HeaderFile
0018 #define _PrsDim_OffsetDimension_HeaderFile
0019
0020 #include <PrsDim_Relation.hxx>
0021 #include <PrsDim_KindOfDimension.hxx>
0022
0023 DEFINE_STANDARD_HANDLE(PrsDim_OffsetDimension, PrsDim_Relation)
0024
0025
0026
0027
0028
0029
0030 class PrsDim_OffsetDimension : public PrsDim_Relation
0031 {
0032 DEFINE_STANDARD_RTTIEXT(PrsDim_OffsetDimension, PrsDim_Relation)
0033 public:
0034
0035
0036
0037
0038 Standard_EXPORT PrsDim_OffsetDimension(const TopoDS_Shape& FistShape, const TopoDS_Shape& SecondShape, const Standard_Real aVal, const TCollection_ExtendedString& aText);
0039
0040
0041 virtual PrsDim_KindOfDimension KindOfDimension() const Standard_OVERRIDE { return PrsDim_KOD_OFFSET; }
0042
0043
0044 virtual Standard_Boolean IsMovable() const Standard_OVERRIDE { return Standard_True; }
0045
0046
0047
0048 void SetRelativePos (const gp_Trsf& aTrsf) { myRelativePos = aTrsf; }
0049
0050 private:
0051
0052 Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
0053 const Handle(Prs3d_Presentation)& thePrs,
0054 const Standard_Integer theMode) Standard_OVERRIDE;
0055
0056 Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel,
0057 const Standard_Integer theMode) Standard_OVERRIDE;
0058
0059 Standard_EXPORT void ComputeTwoFacesOffset (const Handle(Prs3d_Presentation)& aPresentation, const gp_Trsf& aTrsf);
0060
0061 Standard_EXPORT void ComputeTwoAxesOffset (const Handle(Prs3d_Presentation)& aPresentation, const gp_Trsf& aTrsf);
0062
0063 Standard_EXPORT void ComputeAxeFaceOffset (const Handle(Prs3d_Presentation)& aPresentation, const gp_Trsf& aTrsf);
0064
0065 private:
0066
0067 gp_Pnt myFAttach;
0068 gp_Pnt mySAttach;
0069 gp_Dir myDirAttach;
0070 gp_Dir myDirAttach2;
0071 gp_Trsf myRelativePos;
0072
0073 };
0074
0075 #endif