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